Difference between revisions of "Template:Navbox"
Jump to navigation
Jump to search
m (Test) |
m (Expanding to 15 rows) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<table cellspacing="0" class="nowraplinks ;;"> | <table cellspacing="0" class="nowraplinks ;;"> | ||
<tr><th style="text-align:center; padding-left:1em; padding-right:1em; background:#ccccff; background:#ddddff;;{{{titlestyle|}}}" colspan=3> | <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={{ | + | <div style="float:left; width:6em;text-align:left;">{{if|test={{{nav|}}}|then={{tnavbar|{{{nav|}}}}}|else= }}</div> |
<span style="font-size:110%;">{{{title|}}}</span> | <span style="font-size:110%;">{{{title|}}}</span> | ||
</th></tr> | </th></tr> | ||
Line 13: | Line 13: | ||
<div style="padding:0em 0.25em">{{{list1|}}}</div> | <div style="padding:0em 0.25em">{{{list1|}}}</div> | ||
</td> | </td> | ||
− | <td style="width:0%;padding:0px 0px 0px 2px;" rowspan= | + | <td style="width:0%;padding:0px 0px 0px 2px;" rowspan=21>{{{image|}}}</td> |
</tr> | </tr> | ||
<!-----Remaining groups/lists-----> | <!-----Remaining groups/lists-----> | ||
Line 67: | Line 67: | ||
<td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px; background:transparent;;;" class="navbox-list navbox-even"> | <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> | <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> | </td> | ||
</tr> | </tr> | ||
Line 79: | Line 151: | ||
This template has been edited to use pure-wiki code, and not requiring any specific extension found on Wikipedia. | 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. | + | It has also been heavily simplified. Expand with more parameters if you (really) want to. |
{{Navbox | {{Navbox | ||
− | |||
|title=[[Movement]] | |title=[[Movement]] | ||
|group1=[[Movement]] | |group1=[[Movement]] | ||
Line 88: | Line 159: | ||
}} | }} | ||
− | </noinclude> | + | <pre> |
+ | {{Navbox | ||
+ | |title=[[Movement]] | ||
+ | |group1=[[Movement]] | ||
+ | |list1=[[WaveSurfing]]{{dot}}[[PatternMovement]]{{dot}}[[CornerMovement]] | ||
+ | }}</pre> | ||
+ | |||
+ | Other parameters are: | ||
+ | * <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. | ||
+ | |||
+ | [[Category:Wikipedia Templates]]</noinclude> |
Latest revision as of 14:14, 26 September 2008
|
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.