Jump to content

Template:Country topics and Template:Country topics/sandbox: Difference between pages

From Wikipedia, the free encyclopedia
(Difference between pages)
Content deleted Content added
m hyphen → endash per MOS:SUFFIXDASH
 
remove pointless use of {{#invoke:string|find}}; try to improve code formatting
 
Line 9: Line 9:
|titleclass = {{{titleclass|}}}
|titleclass = {{{titleclass|}}}
|title = <includeonly>{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
|title = <includeonly>{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
| [[{{{country|{{{territory|{{{region}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;|{{{titlename|{{{country|{{{territory|{{{region|<span style="white-space:nowrap;color:red;">[Required parameter missing!]</span>}}}}}}}}}}}}&nbsp;<!--(space between Name and "articles" word (if not suppressed))
| [[{{#invoke:redirect|main|{{{country|{{{territory|{{{region}}}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;|{{{titlename|{{{country|{{{territory|{{{region|<span style="white-space:nowrap;color:red;">[Required parameter missing!]</span>}}}}}}}}}}}}&nbsp;<!--(space between Name and "articles" word (if not suppressed))
-->}}<!---- "topics" ----
-->}}<!---- "topics" ----
-->{{#if:{{{_notopicsword|}}} | |{{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles|[[Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|articles]]|articles}}}}</includeonly>
-->{{#if:{{{_notopicsword|}}} | |{{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles|[[{{#invoke:redirect|main|Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles}}|articles]]|articles}}}}</includeonly>


<!------------------ Image (optional) ------------------->
<!------------------ Image (optional) ------------------->
Line 29: Line 29:
</noinclude>
</noinclude>
|group2 = {{#ifexist:History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|group2 = {{#ifexist:History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| [[History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|History]]
| [[{{#invoke:redirect|main|fulltext=y|History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|History]]
| History
| History
}}
}}
Line 42: Line 42:
</noinclude>
</noinclude>
|group4 = {{#ifexist:Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|group4 = {{#ifexist:Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| [[Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Geography]]
| [[{{#invoke:redirect|main|fulltext=y|Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Geography]]
| Geography
| Geography
}}
}}
Line 71: Line 71:
|group6 = {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
|group6 = {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
| {{#ifexist:Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| {{#ifexist:Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| [[Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Politics]]
| [[{{#invoke:redirect|main|fulltext=y|Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Politics]]
| Politics
| Politics
}}
}}
Line 112: Line 112:
</noinclude>
</noinclude>
|group8 = {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|group8 = {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| [[Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Economy]]
| [[{{#invoke:redirect|main|fulltext=y|Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Economy]]
| Economy
| Economy
}}
}}
Line 158: Line 158:
| {{#if:{{{culture|}}}{{{demographics|}}}{{{religion|}}}{{{symbols|}}}
| {{#if:{{{culture|}}}{{{demographics|}}}{{{religion|}}}{{{symbols|}}}
| {{#ifexist:Culture of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| {{#ifexist:Culture of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| [[Culture of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Culture]]
| [[{{#invoke:redirect|main|fulltext=y|Culture of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Culture]]
| Culture
| Culture
}}
}}
Line 224: Line 224:
-->{{bulleted list|style=margin-bottom:-0.4em;
-->{{bulleted list|style=margin-bottom:-0.4em;
|1= {{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|1= {{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| {{nobold|[[Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Outline]]}}
| {{nobold|[[{{#invoke:redirect|main|fulltext=y|Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Outline]]}}
}}
}}
|2= {{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}–related articles
|2= {{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}–related articles
| {{nobold|[[Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}–related articles|Index]]}}
| {{nobold|[[{{#invoke:redirect|main|fulltext=y|Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}–related articles}}|Index]]}}
| <!---else to capture instances where place is or can be "the [placename]" but its adjective is
| <!-- Else to capture instances where place is or can be "the [placename]" but its adjective is
"[placename]-related", i.e. with no "the" prefix:
"[placename]-related", i.e. with no "the" prefix.
-->{{#ifexist:Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
First we try a hyphen-minus for single-word countries:
--> {{#ifexist:Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
| {{nobold|[[Index of {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|Index]]}}
| {{nobold|[[{{#invoke:redirect|main|fulltext=y|Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles}}|Index]]}}
| <!-- If that doesn't exist, try an en dash (for multi-word countries):
}}
--> {{#ifexist:Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}–related articles
| {{nobold|[[{{#invoke:redirect|main|fulltext=y|Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}–related articles}}|Index]]}}
}}
}}
}}
}}
|3= {{#ifexist:Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|3= {{#ifexist:Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
| {{nobold|[[Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Bibliography]]}}
| {{nobold|[[{{#invoke:redirect|main|fulltext=y|Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Bibliography]]}}
}}<!--
}}<!--
-->}}<!----------------------------------------------
-->}}<!----------------------------------------------
Line 246: Line 251:
"noportal" has not been specified
"noportal" has not been specified
-->{{#ifexist:Portal:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}<!--
-->{{#ifexist:Portal:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}<!--
-->|* <!--{{icon|Portal}}--> [[Portal:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Portal]]<!--
-->|* <!--{{icon|Portal}}--> [[{{#invoke:redirect|main|fulltext=y|Portal:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}}}|Portal]]<!--
-->}}<!--(end #ifexist:Portal)
-->}}<!--(end #ifexist:Portal)
-->}}<!-- (end #ifeq: {{yesno-no|{{{noportal}}}}})
-->}}<!-- (end #ifeq: {{yesno-no|{{{noportal}}}}})

Revision as of 14:53, 27 May 2021