Difference between revisions of "Template:Country abbreviation"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
imported>Jc86035
m (entirely Lua)
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}}]]<!--
+
<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>{{#invoke:Country extract/sandbox|main|{{{1|}}}|{{{2|}}}}}</includeonly><noinclude>
 
 
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}}
 
{{Documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 14:44, 31 May 2017

Template:Tfm/datedTemplate:Tfm/dated

Template documentation[create]