Difference between revisions of "Template:Toponym tag"
Jump to navigation
Jump to search
m (try this) |
m (Add mirandus to Category: Dark One characters) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{toponym|{{{1}}}|}}<!-- |
+ | <includeonly><span class="cm-tag cm-toponym-tag">{{#if:{{toponym|{{{1}}}|}}<!-- |
− | -->|[[{{toponym|{{{1}}}|}}]]<!-- |
+ | -->|[[{{toponym link|{{{1}}}|}}|{{ucfirst:{{toponym|{{{1}}}|}}}}]]<!-- |
− | -->{{#if:{{ |
+ | -->{{#if:{{{2|}}}<!-- |
− | -->|[[Category: {{ |
+ | -->|[[Category: {{{2}}} {{toponym|{{{1}}}|}}]]<!-- |
− | -->|{{#if:{{ |
+ | -->|{{#if:{{demonym|{{{1}}}|}}<!-- |
− | -->|[[Category: {{ |
+ | -->|[[Category: {{demonym|{{{1}}}|plural=y}}]]<!-- |
− | -->|{{ |
+ | -->|{{#switch:{{lc:{{{1}}}}}<!-- |
+ | -->|mirandus=[[Category: Dark One characters]]<!-- |
||
+ | -->|{{toponym tag missing category|{{{1}}}|}}<!-- |
||
+ | -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->|<span class="error" title="{{tag/toponym}}">?</span><!-- |
-->|<span class="error" title="{{tag/toponym}}">?</span><!-- |
||
− | -->}}</includeonly><noinclude> |
+ | -->}}</span></includeonly><noinclude>[[category: link macros]] |
This template should be used to link to a place and add the page to a plural-demonym category |
This template should be used to link to a place and add the page to a plural-demonym category |
||
− | It uses {{t|toponym}} to generate a link and the category is either <code>[[category: {{[[template: demonym|demonym]]|plural= |
+ | It uses {{t|toponym}} to generate a link and the category is either <code>[[category: {{[[template: demonym|demonym]]|plural=y}}]</code> or <code>[[category: {{{2}}} of {{[[template: toponym|toponym]]|{{{1}}}|}}]]</code> |
If you wish to tag as a toponym use {{t|place tag}}, if you wish to tag a demonym use <code>{{[[Template: demonym tag|demonym tag]]}}</code> |
If you wish to tag as a toponym use {{t|place tag}}, if you wish to tag a demonym use <code>{{[[Template: demonym tag|demonym tag]]}}</code> |
||
+ | {{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full list of pages using this template|here}} |
||
− | [[Category: Link macros]] |
Revision as of 04:29, 1 July 2020
This template should be used to link to a place and add the page to a plural-demonym category
It uses {{toponym}}
to generate a link and the category is either [[category: {{demonym|plural=y}}]
or [[category: {{{2}}} of {{toponym|{{{1}}}|}}]]
If you wish to tag as a toponym use {{place tag}}
, if you wish to tag a demonym use {{demonym tag}}