1,056 bytes added
, 19:58, 30 July 2016
m<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}}]]<!--
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>