Template:Infobox Character/CreatureTypeCategorization

From Itora Wiki
Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]

Description

This autocategorization template is used by {{Infobox Character}} to take the CreatureType parameter fed into the infobox and then automatically categorize the infobox's page.  It only works when transcluded into the mainspace.

For example, the character page "Pike Trickfoot" uses {{Infobox Character}}, and {{{CreatureType}}} is defined as Humanoid.  The infobox then calls {{Infobox Character/CreatureTypeCategorization}}, which tells it to add the "Pike Trickfoot" page to "Category:Humanoids".

Dependencies

Syntax

Type {{Infobox Character/CreatureTypeCategorization|CreatureType=}}, where {{{CreatureType}}} is one (or more) of the following creature types:

  • aberration
  • beast
  • celestial
  • construct
  • deity
  • demon
  • devil
  • dragon
  • elemental
  • fey
  • fiend
  • giant
  • humanoid
  • monstrosity
  • ooze
  • plant
  • sentient item
  • undead

The creature type must be spelled exactly as listed above, although it is not case-sensitive and it may be preceded or followed by any other text.

Sample Output

{{Infobox Character/CreatureTypeCategorization|CreatureType=Dragon}}
produces...
[[Category:Dragons]]


{{Infobox Character/CreatureTypeCategorization|CreatureType=The Raven Queen was formerly humanoid and is now a deity.}}
produces...
[[Category:Humanoids]][[Category:Deities]]

See Also

The above text is transcluded from Template:Infobox Character/CreatureTypeCategorization/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to Template:Infobox Character/CreatureTypeCategorization/doc. (View all subpages of this page.)