Difference between revisions of "Template:Navbox"
From WikiTemp, the GBAtemp wiki
m |
m (Made auto the default.) |
||
Line 1: | Line 1: | ||
− | {| class="navbox collapsible {{#switch:{{lc:{{{collapse}}}}}|yes=collapsed|no=|auto | + | {| class="navbox collapsible {{#switch:{{lc:{{{collapse}}}}}|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;"|'''{{{title|Navigation}}}''' | !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;"|'''{{{title|Navigation}}}''' | ||
{{#if:{{{above|}}}| | {{#if:{{{above|}}}| | ||
Line 29: | Line 29: | ||
|}<noinclude> | |}<noinclude> | ||
+ | |||
+ | <nowiki/> | ||
[[Category:Navigation Templates]] | [[Category:Navigation Templates]] | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Revision as of 18:45, 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 |