Difference between revisions of "Template:Toponym tag"

From The Coppermind
Jump to navigation Jump to search
(I think swapping the order of these if statements will fix the residents categories without causing any other problems)
m (+css)
Line 1: Line 1:
<includeonly>{{#if:{{toponym|{{{1}}}|}}<!--
<includeonly><span class="cm-tag cm-toponym-tag">{{#if:{{toponym|{{{1}}}|}}<!--
-->|[[{{toponym link|{{{1}}}|}}|{{ucfirst:{{toponym|{{{1}}}|}}}}]]<!--
-->|[[{{toponym link|{{{1}}}|}}|{{ucfirst:{{toponym|{{{1}}}|}}}}]]<!--
-->{{#if:{{{2|}}}<!--
-->{{#if:{{{2|}}}<!--
Line 9: Line 9:
-->}}<!--
-->}}<!--
-->|<span class="error" title="{{tag/toponym}}">?</span><!--
-->|<span class="error" title="{{tag/toponym}}">?</span><!--
-->}}</includeonly><noinclude>[[category: link macros]]
-->}}</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

Revision as of 20:06, 7 May 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}}