Difference between revisions of "Template:Country abbreviation"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
imported>MSGJ
(redirecting, per request on talk)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Tfm/dated|page=Country abbreviation|otherpage=ConvertAbbrev|link=Wikipedia:Templates for discussion/Log/2017 May 29#Template:Country abbreviation|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}</noinclude><noinclude>{{Tfm/dated|page=Country abbreviation|otherpage=CountryAbbr|link=Wikipedia:Templates for discussion/Log/2017 May 28#Template:Country abbreviation|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}</noinclude><includeonly>{{#if:{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|[[Category:Wikipedia page with obscure country or subdivision|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!--
+
#REDIRECT [[Template:ISO 3166 code]]
 
 
If we can't figure out the subdivision code, just do the country code.
 
 
 
-->{{#if:{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|subst={{{subst|}}}}}|{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}}}|<!--
 
 
 
*** Otherwise do the legacy main switch which can be trimmed enormously at some point ***
 
 
 
-->|[[Category:Wikipedia page with obscure country|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!-- switch went here -->
 
}}<!-- if we can't do the country -->
 
}}<!-- if we can't do the exact region --></includeonly><noinclude>
 
 
 
{{Documentation}}
 
 
 
</noinclude>
 

Latest revision as of 13:37, 11 September 2018