Difference between revisions of "Template:Navbox subgroup"

From CWCki
Jump to navigation Jump to search
(Repaired conditions.)
 
(One intermediate revision by one other user not shown)
Line 108: Line 108:
|list20style = {{{list20style|}}}
|list20style = {{{list20style|}}}


|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}
|{{#if:{{{evenodd|}}}|evenodd = {{{evenodd}}}}}
|{{#if:{{{listpadding|}}}|listpadding|void}} = {{{listpadding|}}}
|{{#if:{{{listpadding|}}}|listpadding = {{{listpadding}}}}}


}}<noinclude>{{Usage|1=This is a metatemplate for constructing navigational templates. The format for using this template is as follows:<br />
}}<noinclude>{{Usage|1=This is a metatemplate for constructing subgroups within a {{tl|Navbox}}. The format for using this template is as follows:<br />


<pre>{{Navbox subgroup
<pre>{{Navbox subgroup
    | group1 =
    | list1  =


| group1 =  
    | group2 =  
| list1 =  
    | list2 =  


| group2 =  
    | group3 =  
| list2 =  
    | list3 =  
    }}</pre>


| group3 =  
Example:
| list3  =  
 
<pre>{{Navbox
| name  = Sonichu
| title  = ''[[Sonichu (comic)|Sonichu]]''
 
| group1 = Issues
| list1  = {{Navbox subgroup
    | group1 = Standard
    | list1  = [[Sonichu 0|#0]]{{•}} [[Sonichu 1|#1]]
 
    | group2 = Special
    | list2  = [[Sonichu Special 1|#1]]{{•}} [[Wedding Comic|#2]]
    }}
 
| group2 = [[List of Sonichu characters|Characters]]
| list2  = {{Navbox subgroup
    | group1 = Protagonists
    | list1  = [[Sonichu (character)|Sonichu]] ([[Ultra Sonichu]]{{•}} [[Metonic]])
 
    | group2 = Villains
    | list2  = [[Count Graduon]]{{•}} [[Mary Lee Walsh]]
 
    | group3 = Minor
    | list3  = [[Allison Amber]]{{•}} [[Bionic the Hedgehog|Bionic]]
    }}
 
| group3 = Locations
| list3  = [[CWCville]]{{•}} [[RuleCWC]]
}}</pre>
}}</pre>
Output:
{{Navbox
| name  = Sonichu
| title  = ''[[Sonichu (comic)|Sonichu]]''
| group1 = Issues
| list1  = {{Navbox subgroup
    | group1 = Standard
    | list1  = [[Sonichu 0|#0]]{{•}} [[Sonichu 1|#1]]
    | group2 = Special
    | list2  = [[Sonichu Special 1|#1]]{{•}} [[Wedding Comic|#2]]
    }}
| group2 = [[List of Sonichu characters|Characters]]
| list2  = {{Navbox subgroup
    | group1 = Protagonists
    | list1  = [[Sonichu (character)|Sonichu]] ([[Ultra Sonichu]]{{•}} [[Metonic]])
    | group2 = Villains
    | list2  = [[Count Graduon]]{{•}} [[Mary Lee Walsh]]
    | group3 = Minor
    | list3  = [[Allison Amber]]{{•}} [[Bionic the Hedgehog|Bionic]]
    }}
| group3 = Locations
| list3  = [[CWCville]]{{•}} [[RuleCWC]]
}}
}}


[[Category:Metatemplates|{{PAGENAME}}]]</noinclude>
[[Category:Metatemplates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:50, 29 May 2019

Usage

These usage notes will not be included in articles bearing this template.

This is a metatemplate for constructing subgroups within a {{Navbox}} (Usage). The format for using this template is as follows:

{{Navbox subgroup
    | group1 = 
    | list1  = 

    | group2 = 
    | list2  = 

    | group3 = 
    | list3  = 
    }}

Example:

{{Navbox
| name   = Sonichu
| title  = ''[[Sonichu (comic)|Sonichu]]''

| group1 = Issues
| list1  = {{Navbox subgroup
    | group1 = Standard
    | list1  = [[Sonichu 0|#0]]{{•}} [[Sonichu 1|#1]]

    | group2 = Special
    | list2  = [[Sonichu Special 1|#1]]{{•}} [[Wedding Comic|#2]]
    }}

| group2 = [[List of Sonichu characters|Characters]]
| list2  = {{Navbox subgroup
    | group1 = Protagonists
    | list1  = [[Sonichu (character)|Sonichu]] ([[Ultra Sonichu]]{{•}} [[Metonic]])

    | group2 = Villains
    | list2  = [[Count Graduon]]{{•}} [[Mary Lee Walsh]]

    | group3 = Minor
    | list3  = [[Allison Amber]]{{•}} [[Bionic the Hedgehog|Bionic]]
    }}

| group3 = Locations
| list3  = [[CWCville]]{{•}} [[RuleCWC]]
}}

Output: