Difference between revisions of "Template:Nav"

From RimWorld Wiki
Jump to navigation Jump to search
(More fixing, aaa)
m
 
(43 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
<hr style="margin: 1em 0em; clear: both;" />
 
<hr style="margin: 1em 0em; clear: both;" />
<div class="nav {{#if:{{{1|}}} | {{#switch:{{{1}}} | ai = c_07 | animal = c_08 | plant = c_14 | weapon = c_06 | zone = c_11 | structure = c_02 | floor = c_02 | | building = c_25 | security = c_10 | furniture = c_01 | }}}} {{#if:{{{2|}}}|{{{2}}}}}">
+
<div class="nav {{#if:{{{1|}}} | {{#switch:{{lc:{{{1}}}}} | ai = c_07 | animal = c_08 | plant = c_14 | weapon = c_06 | zone = c_11 | structure = c_02 | body parts = c_01 | floor = c_02 | joy = c_05 | building = c_25 | security = c_10 | furniture = c_01 | temperature = c_25 | ideology = c_06 | biotech = c_01 | anomaly = c_14| materials = c_03 | clothing = c_03 | food = c_10 | utility = c_17 | stats = c_01 | mechanoid = c_22 |  status levels = c_01 | psycasts = c_07 | }}}} {{#if:{{{2|}}}|{{{2}}}}}">
<div class="box"><div class="heading">{{#switch:{{{1}}} | ai = [[AI Storytellers|
+
<div class="box"><div class="heading">{{#switch:{{lc:{{{1}}}}} | ai = [[AI Storytellers]] | factions = [[Factions]] |animal = [[Animals]] | plant = [[Plants]] | weapon = [[Weapons]] | clothing = [[Apparel]] | food = [[Food]] | materials = [[Materials]] | utility = [[Utility]] | body parts = [[Artificial body parts]] | stats = [[Stat]]s |  mechanoid = [[Mechanoids]] |status levels = Status levels | psycasts = [[Psycasts]] | entity = [[Entities]] | [[Architect]]}}</div>
AI Storytellers]] | animal = [[Animals|
+
<div class="wrapper">{{#switch:{{lc:{{{1|}}}}} |<!--  
Animals]] | plant = [[Plants|
+
--> ai           = <dl>{{nav/ai}}</dl>{{nav/sep}}|<!--  
Plants]] | weapon = [[Weapons|
+
--> factions     = <dl>{{nav/factions}}</dl>{{nav/sep}}|<!--
Weapons]] | [[Architect|
+
--> animal      = <dl>{{nav/animals}}</dl>{{nav/sep}}|<!--
Architect]]}}</div>
+
--> plant        = <dl>{{nav/plants}}</dl>{{nav/sep}}|<!--  
<div class="wrapper">{{#switch:{{{1|}}} |<!--  
+
--> weapon       = <dl>{{nav/weapons}}</dl>{{nav/sep}}|<!--
--> ai           = <dl>{{TNT|nav/ai}}</dl>{{nav/sep}}|<!--  
+
--> order        = <dl>{{nav/orders}}</dl>{{nav/sep}}|<!--  
--> animal     = <dl>{{TNT|nav/animals}}</dl>{{nav/sep}}|
+
--> zone         = <dl>{{nav/zones}}</dl>{{nav/sep}}|<!--
--> plant        = <dl>{{TNT|nav/plants}}</dl>{{nav/sep}}|<!--  
+
--> structure   = <dl>{{nav/structure}}</dl>{{nav/sep}}|<!--
--> weapon   = <dl>{{TNT|nav/weapons}}</dl>{{nav/sep}}|<!--
+
--> production  = <dl>{{nav/production}}</dl>{{nav/sep}}|<!--
--> order        = <dl>{{TNT|nav/orders}}</dl>{{nav/sep}}|<!--  
+
--> furniture    = <dl>{{nav/furniture}}</dl>{{nav/sep}}|<!--
--> zone       = <dl>{{TNT|nav/zones}}</dl>{{nav/sep}}|<!--
+
--> power        = <dl>{{nav/power}}</dl>{{nav/sep}}|<!--
--> structure = <dl>{{TNT|nav/structure}}</dl>{{nav/sep}}|<!--
+
--> security    = <dl>{{nav/security}}</dl>{{nav/sep}}|<!--
--> floor        = <dl>{{TNT|nav/floor}}</dl>{{nav/sep}}|<!--
+
--> misc        = <dl>{{nav/misc}}</dl>{{nav/sep}}|<!--
--> building    = <dl>{{TNT|nav/buildings}}</dl>{{nav/sep}}|<!--
+
--> floor       = <dl>{{nav/floor}}</dl>{{nav/sep}}|<!--
--> security    = <dl>{{TNT|nav/security}}</dl>{{nav/sep}}|<!--
+
--> joy          = <dl>{{nav/joy}}</dl>{{nav/sep}}|<!--
--> furniture    = <dl>{{TNT|nav/furniture}}</dl>{{nav/sep}}|<!--
+
--> ship         = <dl>{{nav/ship}}</dl>{{nav/sep}}|<!--
--><dl>{{TNT|nav/orders}}{{TNT|nav/zones}}{{TNT|nav/structure}}{{TNT|nav/floor}}{{TNT|nav/buildings}}{{TNT|nav/security}}{{TNT|nav/furniture}}</dl>{{nav/sep}}}}</div></div></div>
+
--> temperature  = <dl>{{nav/temperature}}</dl>{{nav/sep}}|<!--
<noinclude>{{nav/doc}}</noinclude>
+
--> special      = <dl>{{nav/special}}</dl>{{nav/sep}}|<!--
 +
--> ideology    = <dl>{{nav/ideology}}</dl>{{nav/sep}}|<!--
 +
--> biotech      = <dl>{{nav/biotech}}</dl>{{nav/sep}}|<!--
 +
--> anomaly      = <dl>{{nav/anomaly}}</dl>{{nav/sep}}|<!--
 +
--> entity      = <dl>{{nav/entities}}</dl>{{nav/sep}}|<!--
 +
--> clothing    = <dl>{{nav/Clothing}}</dl>{{nav/sep}}|<!--
 +
--> food        = <dl>{{nav/Food}}</dl>{{nav/sep}}|<!--
 +
--> materials    = <dl>{{nav/materials}}</dl>{{nav/sep}}|<!--
 +
--> utility      = <dl>{{nav/Utility}}</dl>{{nav/sep}}|<!--
 +
--> body parts  = <dl>{{nav/body parts}}</dl>{{nav/sep}}|<!--
 +
--> stats        = <dl>{{nav/stats}}</dl>{{nav/sep}}|<!--
 +
--> mechanoid    = <dl>{{nav/mechanoids}}</dl>{{nav/sep}}|<!--
 +
--> status levels    = <dl>{{nav/status levels}}</dl>{{nav/sep}}|<!--
 +
--> psycasts    = <dl>{{nav/psycasts}}</dl>{{nav/sep}}|<!--
 +
--><dl>{{nav/orders}}{{nav/zones}}{{nav/structure}}{{nav/production}}{{nav/furniture}}{{nav/power}}{{nav/security}}{{nav/misc}}{{nav/floor}}{{nav/joy}}{{nav/ship}}{{nav/temperature}}</dl>{{nav/sep}}}}</div></div></div>
 +
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:59, 27 August 2024


Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

Nav boxes are used for linking related things together, by having a handy box at the bottom of the page.

Here's how to use them properly:

{{nav|category|optional style}}

The category options are:

ai, animal, body parts, clothing, factions, floor, food, furniture, joy, main, materials, mechanoid, misc, order, plant, power, production, psycasts, security, ship, stats, status levels, structure, temperature, utility, weapons, zone

The only optional style available is

wide

Examples[edit]

{{nav|animal}}


{{nav|plant|wide}}


Links to the templates[edit]

Other navigation templates[edit]

Note that although looking similar Template:Nav/disease, Template:Nav/drugs, Template:Nav/guides and Template:Nav/questitems must be used with:

{{Nav/disease}}
{{Nav/drugs}}
{{Nav/guides}}
{{Nav/questitems}}