Difference between revisions of "Template:Navbox"
From WikiTemp, the GBAtemp wiki
(Added possibility to add image.) |
m |
||
Line 8: | Line 8: | ||
{{#if:{{{list1|}}}|{{NavBoxGroup{{!}}{{{group1|}}}{{!}}{{{list1|}}}}} | {{#if:{{{list1|}}}|{{NavBoxGroup{{!}}{{{group1|}}}{{!}}{{{list1|}}}}} | ||
{{#if:{{{image|}}}| | {{#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|}}}|{{{ | + | {{!}}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}}}]] |
}}}} | }}}} | ||
|- | |- |
Revision as of 17:59, 6 December 2010
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 |