Template:Navbox: Difference between revisions
Jump to navigation
Jump to search
Created page with "{| class="navbox" cellspacing="0" style="border:1px solid #aaa; width:100%; clear:both; font-size:88%; text-align:center; padding:1px; margin:1em auto 0; background:#f9f9f9;" |- {{#if:{{{title|}}}|! style="background:#ccccff; padding:2px;" {{!}} {{#if:{{{name|}}}|{{Tnavbar|{{{name}}}|mini=1}} }}<span style="font-size:110%;">{{{title}}}</span>}} {{#if:{{{above|}}}| |- ! style="background:#ddddff; padding:2px;" {{!}} {{{above}}}}} {{#if:{{{list1|}}}| |- {{#if:{{{group1|}}}..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{| class="navbox" cellspacing="0" style="border:1px solid #aaa; width:100%; clear:both; font-size:88%; text-align:center; padding:1px; margin:1em auto 0; background:#f9f9f9;" | <includeonly>{| class="navbox" cellspacing="0" style="border:1px solid #aaa; width:100%; clear:both; font-size:88%; text-align:center; padding:1px; margin:1em auto 0; background:#f9f9f9;" | ||
|- | |- | ||
! style="background:#ccccff; padding:2px;" | {{#if:{{{name|}}}|{{Tnavbar|{{{name}}}|mini=1}} }}<span style="font-size:110%;">{{{title}}}</span> | |||
{{#if:{{{above|}}}| | {{#if:{{{above|}}}| | ||
{{!}}- | |||
! style="background:#ddddff; padding:2px;" {{!}} {{{above}}}}} | ! style="background:#ddddff; padding:2px;" {{!}} {{{above}}} | ||
}} | |||
{{#if:{{{list1|}}}| | {{#if:{{{list1|}}}| | ||
{{!}}- | |||
{{#if:{{{group1|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group1}}} | {{#if:{{{group1|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list1}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list1}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group1}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list1}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list1}}} | |||
}} | |||
}} | |||
{{#if:{{{list2|}}}| | {{#if:{{{list2|}}}| | ||
{{!}}- | |||
{{#if:{{{group2|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group2}}} | {{#if:{{{group2|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list2}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list2}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group2}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list2}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list2}}} | |||
}} | |||
}} | |||
{{#if:{{{list3|}}}| | {{#if:{{{list3|}}}| | ||
{{!}}- | |||
{{#if:{{{group3|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group3}}} | {{#if:{{{group3|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list3}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list3}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group3}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list3}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list3}}} | |||
}} | |||
}} | |||
{{#if:{{{list4|}}}| | {{#if:{{{list4|}}}| | ||
{{!}}- | |||
{{#if:{{{group4|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group4}}} | {{#if:{{{group4|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list4}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list4}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group4}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list4}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list4}}} | |||
}} | |||
}} | |||
{{#if:{{{list5|}}}| | {{#if:{{{list5|}}}| | ||
{{!}}- | |||
{{#if:{{{group5|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group5}}} | {{#if:{{{group5|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list5}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list5}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group5}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list5}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list5}}} | |||
}} | |||
}} | |||
{{#if:{{{list6|}}}| | {{#if:{{{list6|}}}| | ||
{{!}}- | |||
{{#if:{{{group6|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group6}}} | {{#if:{{{group6|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list6}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list6}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group6}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list6}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list6}}} | |||
}} | |||
}} | |||
{{#if:{{{list7|}}}| | {{#if:{{{list7|}}}| | ||
{{!}}- | |||
{{#if:{{{group7|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group7}}} | {{#if:{{{group7|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list7}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list7}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group7}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list7}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list7}}} | |||
}} | |||
}} | |||
{{#if:{{{list8|}}}| | {{#if:{{{list8|}}}| | ||
{{!}}- | |||
{{#if:{{{group8|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group8}}} | {{#if:{{{group8|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list8}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list8}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group8}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list8}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list8}}} | |||
}} | |||
}} | |||
{{#if:{{{list9|}}}| | {{#if:{{{list9|}}}| | ||
{{!}}- | |||
{{#if:{{{group9|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group9}}} | {{#if:{{{group9|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list9}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list9}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group9}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list9}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list9}}} | |||
}} | |||
}} | |||
{{#if:{{{list10|}}}| | {{#if:{{{list10|}}}| | ||
{{!}}- | |||
{{#if:{{{group10|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group10}}} | {{#if:{{{group10|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list10}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list10}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group10}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list10}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list10}}} | |||
}} | |||
}} | |||
{{#if:{{{list11|}}}| | {{#if:{{{list11|}}}| | ||
{{!}}- | |||
{{#if:{{{group11|}}}|! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group11}}} | {{#if:{{{group11|}}}| | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list11}}}|! style="background:#ffffff; padding:2px;" {{!}} {{{list11}}}}} | ! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group11}}} | ||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list11}}} | |||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list11}}} | |||
}} | |||
}} | |||
{{#if:{{{list12|}}}| | {{#if:{{{list12|}}}| | ||
{{!}}- | |||
{{#if:{{{group12|}}}| | |||
! style="background:#eeeeee; padding:2px; width:15%; text-align:right;" {{!}} {{{group12}}} | |||
{{#if:{{{ | {{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{list12}}} | ||
| | |||
! style="background:#ffffff; padding:2px;" {{!}} {{{list12}}} | |||
{{!}} style="background:#ffffff; padding:2px; text-align:left;" {{!}} {{{ | }} | ||
}} | |||
{{#if:{{{below|}}}| | {{#if:{{{below|}}}| | ||
{{!}}- | |||
! style="background:#ddddff; padding:2px;" {{!}} {{{below}}}}} | ! style="background:#ddddff; padding:2px;" {{!}} {{{below}}} | ||
|}<noinclude> | }} | ||
|}</includeonly><noinclude> | |||
== Usage == | == Usage == | ||
This is a meta-template for creating navigation boxes. Use it to build specific navboxes for different topics. | This is a meta-template for creating navigation boxes. Use it to build specific navboxes for different topics. | ||
| Line 124: | Line 138: | ||
* '''title''' - Main title of the navbox | * '''title''' - Main title of the navbox | ||
* '''above''' - Text above all groups (optional) | * '''above''' - Text above all groups (optional) | ||
* '''group1- | * '''group1-12''' - Group headers (optional) | ||
* '''list1- | * '''list1-12''' - Content for each group/list | ||
* '''below''' - Text below all groups (optional) | * '''below''' - Text below all groups (optional) | ||
[[Category:Metatemplates]] | [[Category:Metatemplates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 11:19, 26 June 2025
Usage
This is a meta-template for creating navigation boxes. Use it to build specific navboxes for different topics.
Basic Usage
{{Navbox
| name = TemplateName
| title = Navigation Title
| group1 = Group Name
| list1 = [[Link1]] • [[Link2]] • [[Link3]]
| group2 = Another Group
| list2 = [[Link4]] • [[Link5]]
}}
Parameters
- name - Template name (for edit links)
- title - Main title of the navbox
- above - Text above all groups (optional)
- group1-12 - Group headers (optional)
- list1-12 - Content for each group/list
- below - Text below all groups (optional)