Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
fix>AxelOxenstierna |
Zachary Yan (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{ | + | <table cellspacing="0" style="border:1px solid #aaa; width:100%; margin:auto; clear:both; font-size:88%; text-align:center; padding:2px; background:#fdfdfd;"><tr><td style="padding:2px;"> |
− | | | + | <table cellspacing="0" class="nowraplinks ;;"> |
− | | | + | <tr><th style="text-align:center; padding-left:1em; padding-right:1em; background:#ccccff; background:#ddddff;;{{{titlestyle|}}}" colspan=3> |
− | | | + | <div style="float:left; width:6em;text-align:left;">{{if|test={{{nav|}}}|then={{tnavbar|{{{nav|}}}}}|else= }}</div> |
− | | | + | <span style="font-size:110%;">{{{title|}}}</span> |
− | | | + | </th></tr> |
− | | | + | <tr style="height:2px;"><td></td></tr> |
+ | {{if|test={{{abovetext|}}}|then=<tr><td style="text-align:center; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;" colspan="3">{{{abovetext|}}}</td></tr>}} | ||
+ | <tr style="height:2px;"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group1|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-odd"> | ||
+ | <div style="padding:0em 0.25em">{{{list1|}}}</div> | ||
+ | </td> | ||
+ | <td style="width:0%;padding:0px 0px 0px 2px;" rowspan=21>{{{image|}}}</td> | ||
+ | </tr> | ||
+ | <!-----Remaining groups/lists-----> | ||
+ | {{if|test={{{group2|}}}{{{list2|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group2|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list2|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group3|}}}{{{list3|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group3|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list3|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group4|}}}{{{list4|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group4|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list4|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group5|}}}{{{list5|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group5|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list5|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group6|}}}{{{list6|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group6|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list6|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group7|}}}{{{list7|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group7|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list7|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group8|}}}{{{list8|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group8|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list8|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group9|}}}{{{list9|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group9|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list9|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group10|}}}{{{list10|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group10|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list10|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group11|}}}{{{list11|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group11|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list11|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group12|}}}{{{list12|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group12|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list12|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group13|}}}{{{list13|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group13|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list13|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group14|}}}{{{list14|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group14|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:#f7f7f7;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list14|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{if|test={{{group15|}}}{{{list15|}}}|then= | ||
+ | <tr style="height:2px"><td></td></tr> | ||
+ | <tr> | ||
+ | <td style="white-space:nowrap; text-align:right; font-weight:bold; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;;{{{groupstyle|}}};">{{{group15|}}}</td> | ||
+ | <td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | ||
+ | <div style="padding:0em 0.25em">{{{list15|}}}</div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | }} | ||
+ | <!-----Below-----> | ||
+ | {{if|test={{{belowtext|}}}|then=<tr style="height:2px;"><td></td></tr> | ||
+ | <tr><td style="text-align:center; padding-left:1em; padding-right:1em; background:#ddddff; background:#e6e6ff;" colspan="3">{{{belowtext|}}}</td></tr>}} | ||
+ | |||
+ | </table> | ||
+ | </td></tr></table><noinclude>This template is not the same as [[wikipedia:Template:Navbox]], even though the use is similar. | ||
− | + | This template has been edited to use pure-wiki code, and not requiring any specific extension found on Wikipedia. | |
− | + | It has also been heavily simplified. Expand with more parameters if you (really) want to. | |
− | + | {{Navbox | |
+ | |title=[[Movement]] | ||
+ | |group1=[[Movement]] | ||
+ | |list1=[[WaveSurfing]]{{dot}}[[PatternMovement]]{{dot}}[[CornerMovement]] | ||
+ | }} | ||
− | + | <pre> | |
− | | | + | {{Navbox |
− | + | |title=[[Movement]] | |
− | + | |group1=[[Movement]] | |
+ | |list1=[[WaveSurfing]]{{dot}}[[PatternMovement]]{{dot}}[[CornerMovement]] | ||
+ | }}</pre> | ||
− | | | + | Other parameters are: |
− | |below = | + | * <tt>|nav={{{MAINPAGENAME}}}</tt> (Set if you want to include {{tl|tnavbar}} to the left of the title) |
+ | * <tt>|abovetext=</tt> (Additional text below title but above groups) | ||
+ | * <tt>|belowtext=</tt> (Additional text below groups) | ||
+ | * <tt>|image=</tt> (Image to the right of the groups) | ||
+ | * <tt>|groupstyle=</tt> (Customizable the style of the groupboxen) | ||
+ | * <tt>|titlestyle=</tt> (Customizable the style of the titlebox) | ||
− | + | See [[wikipedia:Template:Navbox]] for examples. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 12:40, 27 January 2014
|
This template is not the same as wikipedia:Template:Navbox, even though the use is similar.
This template has been edited to use pure-wiki code, and not requiring any specific extension found on Wikipedia.
It has also been heavily simplified. Expand with more parameters if you (really) want to.
|
{{Navbox |title=[[Movement]] |group1=[[Movement]] |list1=[[WaveSurfing]]{{dot}}[[PatternMovement]]{{dot}}[[CornerMovement]] }}
Other parameters are:
- |nav={{{MAINPAGENAME}}} (Set if you want to include {{tnavbar}}
to the left of the title)
- |abovetext= (Additional text below title but above groups)
- |belowtext= (Additional text below groups)
- |image= (Image to the right of the groups)
- |groupstyle= (Customizable the style of the groupboxen)
- |titlestyle= (Customizable the style of the titlebox)
See wikipedia:Template:Navbox for examples.