Template:Forerunner: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}|array=
{{Navbox
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|The Forerunners]]
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = background:#B3B3B3;
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titlestyle = color:#000;
|titleclass = light
|liststyle  = background:none;
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
 
|list1      = {{Forerunner/Array|noheading=1}}
|list1=
|list2      = {{Forerunner/Array/Components|noheading=1}}
{{#switch:{{{1|}}}
|list3      = {{Forerunner/Array/Others|noheading=1}}
|array=
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
{{Forerunner/Array}}
{{Forerunner/Array/Components}}
{{Forerunner/Array/Others}}
|technology=
{{Forerunner/Technology|yes}}
|ships=
{{Forerunner/Ships|yes}}
|sentinel=
{{Forerunner/Sentinel|yes}}
|weapons=
{{Forerunner/Weaponry|yes}}
|artifacts=
{{Forerunner/Artifacts|yes}}
|#default=
{{Forerunner/Array}}
{{Forerunner/Array/Components}}
{{Forerunner/Array/Others}}
{{Forerunner/Technology}}
{{Forerunner/Ships}}
{{Forerunner/Sentinel}}
{{Forerunner/Weaponry}}
{{Forerunner/Artifacts}}
}}
}}
|technology=
 
{{Navbox|noheading={{{noheading|}}}
|below= {{#if:{{{1|}}}|For a complete list, check out [[:Category:Forerunner|our Forerunner category]].}}
|name      = Forerunner
}}<noinclude>
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Technology|noheading=1}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|ships=
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Ships|noheading=1}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|sentinel=
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Sentinel|noheading=1}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|weapons=
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Weaponry|noheading=1}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|artifacts=
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Artifacts|noheading=1}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:Forerunners|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|#default=
{{Navbox|noheading={{{noheading|}}}
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style      = width:100%; background:#B3B3B3; border-radius:.5em;
|titleclass = light
|titlestyle = background:#B3B3B3; text-align:center; color:#FFF;
|list1      = {{Forerunner/Array|noheading=1}}
|list2      = {{Forerunner/Array/Components|noheading=1}}
|list3      = {{Forerunner/Array/Others|noheading=1}}
|list4      = {{Forerunner/Technology|noheading=1}}
|list5      = {{Forerunner/Ships|noheading=1}}
|list6      = {{Forerunner/Sentinel|noheading=1}}
|list7      = {{Forerunner/Weaponry|noheading=1}}
|list8      = {{Forerunner/Artifacts|noheading=1}}
}}}}<noinclude>
== About ==
== About ==
This template has been adjusted to display certain child templates at a time. Placing one of the following in the field will instruct the template to only display those child templates. By default, it will display all of them.
This template has been adjusted to display certain child templates at a time. Placing one of the following in the field will instruct the template to only display those child templates. By default, it will display all of them.
Line 94: Line 45:
*<code>weapons</code> - displays [[/Weaponry]]
*<code>weapons</code> - displays [[/Weaponry]]
*<code>artifacts</code> - displays [[/Artifacts]]
*<code>artifacts</code> - displays [[/Artifacts]]
*specifying <code>|category=</code> will remove the Forerunner directory.


;Examples
;Examples
Adding <code>array</code> in the template (i.e. <code><nowiki>{{Forerunner|array}}</nowiki></code>) will create the following:
Adding <code>array</code> in the template (i.e. <code><nowiki>{{Forerunner|array}}</nowiki></code>) will create the following:
{{Forerunner|array|category=no}}
{{Forerunner|array}}


Similarly, adding <code>weapons</code> in the template (i.e. <code><nowiki>{{Forerunner|weapons}}</nowiki></code>) will create the following:
Similarly, adding <code>weapons</code> in the template (i.e. <code><nowiki>{{Forerunner|weapons}}</nowiki></code>) will create the following:
{{Forerunner|weapons|category=no}}
{{Forerunner|weapons}}
 
If you want to remove the category, specifying anything in the <code>|category=</code> field will remove the Forerunner category. For example, <code><nowiki>{{Forerunner|category=no}}</nowiki></code>.


[[Category:Special navigation boxes]]</noinclude>
[[Category:Special navigation templates]]</noinclude>