Template:Categorize Location: Difference between revisions
From HorizonXI Wiki
mNo edit summary |
m (seems to be "other" not "others") |
||
Line 43: | Line 43: | ||
others (mhaura, selbina, tavnazia and some odd quests outside of towns) - yes it's an official category, see e.g. https://www.bg-wiki.com/ffxi/Category:Other_Quests | others (mhaura, selbina, tavnazia and some odd quests outside of towns) - yes it's an official category, see e.g. https://www.bg-wiki.com/ffxi/Category:Other_Quests | ||
--> | --> | ||
| mhaura | selbina | tavnazian safehold = [[Category:{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}/{{{category type|}}}]][[Category: | | mhaura | selbina | tavnazian safehold = [[Category:{{#sub:{{#explode:{{#explode:{{{location}}}|,|0}}|(|0}}|2|-2}}/{{{category type|}}}]][[Category:Other/{{{category type|}}}]]<!-- | ||
rest - setting it to "Unallocated" so there is a category to catch all these which we can monitor and redistribute if necessary | rest - setting it to "Unallocated" so there is a category to catch all these which we can monitor and redistribute if necessary | ||
Line 66: | Line 66: | ||
</pre> | </pre> | ||
''will categorize the page as '' [[:Category:Selbina/Quests]] ''and'' [[:Category: | ''will categorize the page as '' [[:Category:Selbina/Quests]] ''and'' [[:Category:Other/Quests]] | ||
<pre> | <pre> |
Revision as of 13:26, 17 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:Selbina/Quests and Category:Other/Quests
{{Categorize Location |location={{Location|Southern San d'Oria|H-7}} |category type=Quests }}
will categorize the page as Category:Southern San d'Oria/Quests and Category:San d'Oria/Quests
{{Categorize Location |location={{Location|Southern San d'Oria|H-7}} |category type=NPCs }}
will categorize the page as Category:Southern San d'Oria/NPCs and Category:San d'Oria/NPCs