Difference between revisions of "Template:Nav"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
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 | building = c_25 | security = c_10 | furniture = c_01 | }}}} {{#if:{{{2|}}}|{{{2}}}}}">
+
<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="box"><div class="heading">{{#switch:{{{1}}} | ai = [[AI Storytellers|<translate><!--T:6-->
 
<div class="box"><div class="heading">{{#switch:{{{1}}} | ai = [[AI Storytellers|<translate><!--T:6-->
 
AI Storytellers</translate>]] | animal = [[Animals|<translate><!--T:7-->
 
AI Storytellers</translate>]] | animal = [[Animals|<translate><!--T:7-->
Line 15: Line 15:
 
--> zone        = <dl>{{TNT|nav/zones}}</dl>{{nav/sep}}|<!--
 
--> zone        = <dl>{{TNT|nav/zones}}</dl>{{nav/sep}}|<!--
 
--> structure  = <dl>{{TNT|nav/structure}}</dl>{{nav/sep}}|<!--
 
--> structure  = <dl>{{TNT|nav/structure}}</dl>{{nav/sep}}|<!--
 +
--> floor        = <dl>{{TNT|nav/floor}}</dl>{{nav/sep}}|<!--
 
--> building    = <dl>{{TNT|nav/buildings}}</dl>{{nav/sep}}|<!--
 
--> building    = <dl>{{TNT|nav/buildings}}</dl>{{nav/sep}}|<!--
 
--> security    = <dl>{{TNT|nav/security}}</dl>{{nav/sep}}|<!--
 
--> security    = <dl>{{TNT|nav/security}}</dl>{{nav/sep}}|<!--
 
--> furniture    = <dl>{{TNT|nav/furniture}}</dl>{{nav/sep}}|<!--
 
--> furniture    = <dl>{{TNT|nav/furniture}}</dl>{{nav/sep}}|<!--
--><dl>{{TNT|nav/orders}}{{TNT|nav/zones}}{{TNT|nav/structure}}{{TNT|nav/buildings}}{{TNT|nav/security}}{{TNT|nav/furniture}}</dl>{{nav/sep}}}}</div></div></div>
+
--><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>
 
<noinclude>{{nav/doc}}</noinclude>
 
<noinclude>{{nav/doc}}</noinclude>

Revision as of 14:54, 14 April 2014



Usage

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

{{nav|animal}}


{{nav|plant|wide}}


Links to the templates

Other navigation templates

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}}