Template:Category: Difference between revisions

Template page
m (Click moved page Template:Entity Category to Template:Category over redirect)
No edit summary
Line 1: Line 1:
{{#if:{{{race}}}|[[Category:{{{race}}}]]}}
{{#if:{{{race}}}|[[Category:{{{race}}}]]}}
{{#if:{{{entity-type1}}}|[[Category:{{{entity-type1}}}s]]}}
{{#if:{{{item-type}}}|[[Category:{{{item-type}}}]]}}
{{#if:{{{entity-type2}}}|[[Category:{{{entity-type2}}}s]]}}
{{#if:{{{material-type}}}|[[Category:{{{material-type}}}]]}}
{{#if:{{{entity-type}}}|[[Category:{{{entity-type}}}]]}}
{{#if:{{{unit-type}}}|[[Category:{{{unit-type}}}]]}}


<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 22:28, 8 August 2023

[[Category:{{{race}}}]] [[Category:{{{item-type}}}]] [[Category:{{{material-type}}}]] [[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)