Template:Categorize Location: Difference between revisions

From HorizonXI Wiki
(Undo revision 59841 by Aramachus (talk))
Tag: Undo
(added categorization outlands to kazham norg and rabao)
Line 19: Line 19:
| al zahbi = [[Category:{{{category type|}}}/Al Zahbi]][[Category:{{{category type|}}}/Aht Urhgan]]
| al zahbi = [[Category:{{{category type|}}}/Al Zahbi]][[Category:{{{category type|}}}/Aht Urhgan]]
| aht urhgan whitegate = [[Category:{{{category type|}}}/Aht Urhgan Whitegate]][[Category:{{{category type|}}}/Aht Urhgan]]
| aht urhgan whitegate = [[Category:{{{category type|}}}/Aht Urhgan Whitegate]][[Category:{{{category type|}}}/Aht Urhgan]]
| kazham | norg | rabao = [[Category:{{{category type|}}}/{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}]][[Category:{{{category type|}}}/Outlands]]
| #default = {{#ifexist:{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}|[[Category:{{{category type|}}}/{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}]]}}}}<!--
| #default = {{#ifexist:{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}|[[Category:{{{category type|}}}/{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}]]}}}}<!--
-->}}</onlyinclude></includeonly>
-->}}</onlyinclude></includeonly>

Revision as of 20:05, 14 August 2024

Usage

Template used to categorize according to a location. Arguments:

  • location: expects a Template:Location return.
  • category type: actual category type which is put after the location

Note: The template does not return anything, only categorizes based on the location input to the chosen type category of that area.

For city areas, will categorize to the city as well as the specific map/part of the city.

Examples

{{Categorize Location
|location={{Location|Selbina|H-7}}
|category type=Quests
}}

will categorize the page as Category:Quests/Selbina

{{Categorize Location
|location={{Location|Southern San d'Oria|H-7}}
|category type=Quests
}}

will categorize the page as Category:Quests/Southern San d'Oria and Category:Quests/San d'Oria

{{Categorize Location
|location={{Location|Southern San d'Oria|H-7}}
|category type=NPCs
}}

will categorize the page as Category:NPCs/Southern San d'Oria and NPCs/Category:San d'Oria