Template:Flagicon: Difference between revisions
Jump to navigation
Jump to search
imported>BrownHairedGirl (use {{namespace detect showall}} to stop userpages and talk pages being categorised in Category:Flagicons with missing country data templates) |
imported>Ahecht (make substable) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<!-- | <includeonly>{{safesubst<noinclude />:#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<noinclude><!-- | ||
-->|<!-- | --></noinclude>|<noinclude><!-- | ||
#Check for existence of Template: Country data foo before invoking it | #Check for existence of Template: Country data foo before invoking it | ||
-->{{#ifexist: Template: Country data {{{1|}}}<!-- | --></noinclude>{{safesubst<noinclude />:#ifexist: Template: Country data {{{1|}}}<noinclude><!-- | ||
-->|<!-- | --></noinclude>|<noinclude><!-- | ||
# It exists, so proceed | # It exists, so proceed | ||
-->{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!-- | --></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!-- | ||
-->|<!-- | --></noinclude>|<noinclude><!-- | ||
# It doesn't exist, so do nothing | # It doesn't exist, so do nothing | ||
-->}}<!-- | --></noinclude>}}<noinclude><!-- | ||
-->|<!-- | --></noinclude>|<noinclude><!-- | ||
# DEFAULT call Template: Country data {{{1|}}} | # DEFAULT call Template: Country data {{{1|}}} | ||
# with no prior checks | # with no prior checks | ||
-->{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!-- | --></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!-- | ||
# Track use where "Template:Country data Foo" does not exist | # Track use where "Template:Country data Foo" does not exist | ||
-->{{#ifexist: Template:Country data {{{1|}}}||{{namespace detect showall | --></noinclude>{{safesubst<noinclude />:#ifexist: Template:Country data {{{1|}}}||{{safesubst<noinclude />:namespace detect showall | ||
| 1 = | | 1 = | ||
| 2 = [[Category:Flagicons with missing country data templates]] | | 2 = [[Category:Flagicons with missing country data templates]] | ||
Line 20: | Line 20: | ||
| talk = 1 | | talk = 1 | ||
| other = 2 | | other = 2 | ||
}}}}<!-- | }}}}<noinclude><!-- | ||
-->}}</includeonly><noinclude> | --></noinclude>}}</includeonly><noinclude> | ||
{{DEFAULTSORT:Law by year}} | {{DEFAULTSORT:Law by year}} | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 14:53, 23 May 2019
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]