Template:Forerunner: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
No edit summary
 
(35 intermediate revisions by 3 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:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style     = background:#B3B3B3;
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle = color:#000;
|titlestyle= background:#555; text-align:center; color:#FFF;
|liststyle  = background:none;
|list1      = {{Forerunner/Array}}
 
|list2      = {{Forerunner/Array/Components}}
|list1=
|list3      = {{Forerunner/Array/Others}}
{{#switch:{{{1|}}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; 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:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Technology}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|ships=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Ships}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|sentinel=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Sentinel}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|weapons=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Weaponry}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|artifacts=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]] <span style="font-size:smaller;">(''[[:Category:Forerunners|complete list]]'')</span>
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Artifacts}}
|list4      = <div style="text-align:center; font-style:italic; font-size:smaller; color:#fff;">For a complete list, check out [[:Category:Forerunners|<span style="color:#fff; text-decoration:underline;">our Forerunner directory</span>]].</div>
}}
|#default=
{{Navbox
|name      = Forerunner
|state      = plain
|title      = [[Forerunner|<span style="color:#fff;">The Forerunners</span>]]
|style= width:100%; background:#555; border-radius:.5em; margin:0 auto;
|titlestyle= background:#555; text-align:center; color:#FFF;
|list1      = {{Forerunner/Array}}
|list2      = {{Forerunner/Array/Components}}
|list3      = {{Forerunner/Array/Others}}
|list4      = {{Forerunner/Technology}}
|list5      = {{Forerunner/Ships}}
|list6      = {{Forerunner/Sentinel}}
|list7      = {{Forerunner/Weaponry}}
|list8      = {{Forerunner/Artifacts}}
}}}}
<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 89: 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:Navigation boxes]]
[[Category:Special navigation templates]]</noinclude>
</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: