Difference between revisions of "Template:Navbox"
From WikiTemp, the GBAtemp wiki
m |
m |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {| class="navbox {{#ifeq:{{lc:{{{collapse|auto}}}}}|disable||collapsible {{#switch:{{lc:{{{collapse|auto}}}}}|yes=collapsed|no=|auto|#default=autocollapse}}}}" | |
− | + | !class="navbox-title" colspan="{{#expr:2{{#if:{{{image|}}}|{{#if:{{{list1|}}}|+1}}}}}}" style="padding-top:3px;padding-bottom:3px; padding-left:70px; color:#222; font-size:11px; {{#ifeq:{{lc:{{{collapse|auto}}}}}|disable|padding-right:70px;}}"|'''{{{title|Navigation}}}''' | |
− | + | ||
− | {| | + | |
{{#if:{{{above|}}}| | {{#if:{{{above|}}}| | ||
{{!}}- | {{!}}- | ||
− | ! | + | {{!}}class="navbox-abovebelow" colspan="{{#expr:2{{#if:{{{image|}}}|{{#if:{{{list1|}}}|+1}}}}}}" style="padding:3px;"{{!}}{{{above}}} |
}} | }} | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{list1|}}}|{{NavBoxGroup|{{{group1|}}}|{{{list1|}}}}} |
+ | {{#if:{{{image|}}}| | ||
+ | {{!}}style="width:{{{imagewidth|100px}}};" rowspan="{{#expr:0{{#if:{{{list1|}}}|+1}}{{#if:{{{list2|}}}|+1}}{{#if:{{{list3|}}}|+1}}{{#if:{{{list4|}}}|+1}}{{#if:{{{list5|}}}|+1}}{{#if:{{{list6|}}}|+1}}{{#if:{{{list7|}}}|+1}}}}"{{!}}[[{{{image|}}}|{{{imagewidth|100px}}}]] | ||
+ | }}}} | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{list2|}}}|{{NavBoxGroup|{{{group2|}}}|{{{list2|}}}}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{list3|}}}|{{NavBoxGroup|{{{group3|}}}|{{{list3|}}}}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{list4|}}}|{{NavBoxGroup|{{{group4|}}}|{{{list4|}}}}}}} |
|- | |- | ||
− | {{#if:{{{group5|}}}|{{NavBoxGroup{{ | + | {{#if:{{{list5|}}}|{{NavBoxGroup|{{{group5|}}}|{{{list5|}}}}}}} |
+ | |- | ||
+ | {{#if:{{{list6|}}}|{{NavBoxGroup|{{{group6|}}}|{{{list6|}}}}}}} | ||
+ | |- | ||
+ | {{#if:{{{list7|}}}|{{NavBoxGroup|{{{group7|}}}|{{{list7|}}}}}}} | ||
|- | |- | ||
{{#if:{{{below|}}}| | {{#if:{{{below|}}}| | ||
{{!}}- | {{!}}- | ||
− | ! | + | {{!}}class="navbox-abovebelow" colspan="{{#expr:2{{#if:{{{image|}}}|{{#if:{{{list1|}}}|+1}}}}}}"{{!}}{{{below}}} |
}} | }} | ||
− | |} | + | |}<noinclude> |
− | + | ||
− | + | ||
+ | <nowiki/> | ||
[[Category:Navigation Templates]] | [[Category:Navigation Templates]] | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 08:09, 12 May 2011
Navigation |
---|
↑ Template Documentation ↓ [Edit • Reload] | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This template is mainly to be used in Navigation templates. It is also possible to use it directly on a page though. Parameters
Notes
Example{{NavBox |title = Click show on the right |collapse = Auto <!-- To see this in effect, see the difference between the Template page and the /doc subpage --> |above = Top text |group1 = First |list1 = Test |group4 = Second? |list4 = [[Main Page]] |list3 = ''List can go before the group'' |group3 = Third? |list5 = This list has no group, so is centered. |group7 = This group has no list, so doesn't show. |image = Image:Ak22.jpg |imagewidth = 70px |below = '''Bottom text'''}} The text above produces:
| ||||||||||||||||||
The above documentation was Transcluded from the /doc subpage |