Difference between revisions of "Template:Flagicon"

From Wikispooks
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude>{{documentation}}</noinclude>
+
<includeonly>{{safesubst<noinclude />:#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<noinclude><!--
 +
  --></noinclude>|<noinclude><!--
 +
          #Check for existence of Template: Country data foo before invoking it
 +
      --></noinclude>{{safesubst<noinclude />:#ifexist: Template: Country data {{{1|}}}<noinclude><!--
 +
        --></noinclude>|<noinclude><!--
 +
              # It exists, so proceed
 +
          --></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!--
 +
        --></noinclude>|<noinclude><!--
 +
              # It doesn't exist, so do nothing
 +
      --></noinclude>}}<noinclude><!--
 +
  --></noinclude>|<noinclude><!--
 +
          # DEFAULT call  Template: Country data {{{1|}}}
 +
          # with no prior checks
 +
    --></noinclude>{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude><!--
 +
          # Track use where "Template:Country data Foo" does not exist
 +
    --></noinclude>{{safesubst<noinclude />:#ifexist: Template:Country data {{{1|}}}||{{safesubst<noinclude />:namespace detect showall
 +
| 1 =
 +
| 2 = [[Category:Flagicons with missing country data templates]]
 +
| user  = 1
 +
| talk  = 1
 +
| other = 2
 +
}}}}<noinclude><!--
 +
--></noinclude>}}</includeonly><noinclude>
 +
{{DEFAULTSORT:Law by year}}
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 16:21, 25 November 2019


Template documentation[create]