Difference between revisions of "Template:Flagicon"

m (1 revision imported)
en>BrownHairedGirl
(Track use where "Template:Country data Foo" does not exist, in Category:Flagicons with missing country data templates ... per suggestion by User:Tom.Reding at Template talk:Flagicon#Noredlinks)
Line 1: Line 1:
{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#ifeq: {{Yesno-no|{{{noredlink|}}}}}|yes<!--
 +
  -->|<!--
 +
          #Check for existence of Template: Country data foo before invoking it
 +
      -->{{#ifexist: Template: Country data {{{1|}}}<!--
 +
        -->|<!--
 +
              # It exists, so proceed
 +
          -->{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
 +
        -->|<!--
 +
              # It doesn't exist, so do nothing
 +
      -->}}<!--
 +
  -->|<!--
 +
          # DEFAULT call  Template: Country data {{{1|}}}
 +
          # with no prior checks
 +
    -->{{country data {{{1|}}}|flagicon/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
 +
          # Track use where "Template:Country data Foo" does not exist
 +
    -->{{#ifexist: Template:Country data {{{1|}}}||[[Category:Flagicons with missing country data templates]]}}<!--
 +
-->}}</includeonly><noinclude>
 +
{{DEFAULTSORT:Law by year}}
 +
{{Documentation}}
 +
</noinclude>

Revision as of 18:43, 26 November 2018


Lua error: Internal error: The interpreter exited with status 127.