Template:Forerunner: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
 
(44 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{clear}}
{{#switch:{{{1|}}}|array=
{{Navbox
{{Navbox
|name      = Forerunner
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|The Forerunners]]
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = background:#B3B3B3;
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = color:#000;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|liststyle  = background:none;
|list1     = {{Template:Forerunner/Array}}
 
|list2      = {{Template:Forerunner/Array/Components}}
|list1=
|list3      = {{Template:Forerunner/Array/Others}}
{{#switch:{{{1|}}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
|array=
{{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
|below= {{#if:{{{1|}}}|For a complete list, check out [[:Category:Forerunner|our Forerunner category]].}}
|name      = Forerunner
}}<noinclude>
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Technology}}
|list2      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|ships=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Ships}}
|list2      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|sentinel=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Sentinel}}
|list2      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|weapons=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Weaponry}}
|list2      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|artifacts=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:The Forerunner|complete list]]'')</span>
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Artifacts}}
|list2      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#000;">For a complete list, check out [[:Category:The Forerunner|<span style="color:#000; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|#default=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#000000;">The Forerunners</span>]]
|style      = width:660px; background:#F5F5F5; border: 1px solid #999999; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; margin:0 auto;
|titlestyle = background:#C0C0C0; border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-align:center;
|list1      = {{Template:Forerunner/Array}}
|list2      = {{Template:Forerunner/Array/Components}}
|list3      = {{Template:Forerunner/Array/Others}}
|list4      = {{Template:Forerunner/Technology}}
|list5      = {{Template:Forerunner/Ships}}
|list6      = {{Template:Forerunner/Sentinel}}
|list7      = {{Template:Forerunner/Weaponry}}
|list8      = {{Template:Forerunner/Artifacts}}
}}}}<includeonly>{{#if: {{{category|}}}||[[Category:The Forerunner|{{PAGENAME}}]]}}</includeonly>
<noinclude>
== About ==
== About ==
This template puts a [[:Category:The Forerunner|Forerunner directory]] wherever it is placed. This template has been adjusted to display certain child templates at a time. Placing one of the following 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.


;List of fields
*<code>array</code> - displays [[/Array]], [[/Array/Components]] and [[/Array/Others]]
*<code>array</code> - displays [[/Array]], [[/Array/Components]] and [[/Array/Others]]
*<code>technology</code> - displays [[/Technology]]
*<code>technology</code> - displays [[/Technology]]
Line 88: 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.


[[Category:Navigation boxes]]
;Examples
</noinclude>
Adding <code>array</code> in the template (i.e. <code><nowiki>{{Forerunner|array}}</nowiki></code>) will create the following:
{{Forerunner|array}}
 
Similarly, adding <code>weapons</code> in the template (i.e. <code><nowiki>{{Forerunner|weapons}}</nowiki></code>) will create the following:
{{Forerunner|weapons}}
 
[[Category:Special navigation templates]]</noinclude>

Latest revision as of 12:38, August 27, 2023

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.

List of fields
Examples

Adding array in the template (i.e. {{Forerunner|array}}) will create the following:

Similarly, adding weapons in the template (i.e. {{Forerunner|weapons}}) will create the following: