Template:Category: Difference between revisions

Template page
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{{race}}}|{{{{{race}}}nav}}}}
{{#if: {{{item-type}}} | {{{{{item-type}}}Nav}} }}
{{#ifexist:{{{item-type}}}|{{{{{item-type}}}nav}}}}
{{#if: {{{entity-type}}} | {{{{{entity-type}}}Nav}} }}
{{#ifexist:{{{entity-type}}}|{{{{{entity-type}}}nav}}}}
{{#ifexist:{{{unit-type}}}|{{{{{unit-type}}}nav}}}}
 
{{#ifexist:{{{race}}}|[[Category:{{{race}}}]]}}
{{#ifexist:{{{item-type}}}|[[Category:{{{item-type}}}]]}}
{{#ifexist:{{{entity-type}}}|[[Category:{{{entity-type}}}]]}}
{{#ifexist:{{{unit-type}}}|[[Category:{{{unit-type}}}]]}}


{{#if: {{{race}}} | [[Category:{{{race}}}]] }}
{{#ifexist: {{{item-type}}} | [[Category:{{{item-type}}}]] }}
{{#if: {{{entity-type}}} | [[Category:{{{entity-type}}}]] }}
{{#if: {{{unit-type}}} | [[Category:{{{unit-type}}}]] }}
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:57, 14 August 2023

{{{{{item-type}}}Nav}} {{{{{entity-type}}}Nav}}

[[Category:{{{race}}}]]

[[Category:{{{entity-type}}}]] [[Category:{{{unit-type}}}]]

Documentation


Documentation:

{{Category
|race =
|item-type =
|material-type =
|entity-type =
|unit-type =
}}

  • race = Aliens / Bugs / Humans / Robots ...
  • item-type = Components / Resources / Materials / Research / Packages ...
  • material-type = Simple / Advanced / High-tech ...
  • entity-type = Building / Unit ...
  • unit-type = Alien / Bug / Human / Bot / Space ...

Notes:

  • Empty output if no result for all parameters e.g. ' unit-type = '
  • Races end in 's' compared to Units.
  • Unit - Bot (not Robot)

Future parameter use (for other templates):

  • (item-type=Research = research - component navbox)
  • (item-type=Package = drones, satellite - unit navbox)

    The above Template documentation is transcluded from Template:Category/doc. (edit | history)