Difference between revisions of "Template:Flagdeco/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(Create sandbox version of Template:Flagdeco)
 
imported>RexxS
(use flagdeco/core/sandbox)
Line 5: Line 5:
 
         -->|<!--
 
         -->|<!--
 
               # It exists, so proceed
 
               # It exists, so proceed
           -->{{country data {{{1|}}}|flagdeco/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
+
           -->{{country data {{{1|}}}|flagdeco/core/sandbox|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
 
         -->|<!--
 
         -->|<!--
 
               # It doesn't exist, so do nothing
 
               # It doesn't exist, so do nothing
Line 12: Line 12:
 
           # DEFAULT call  Template: Country data {{{1|}}}
 
           # DEFAULT call  Template: Country data {{{1|}}}
 
           # with no prior checks
 
           # with no prior checks
     -->{{country data {{{1|}}}|flagdeco/core|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
+
     -->{{country data {{{1|}}}|flagdeco/core/sandbox|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<!--
 
           # 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
 
     -->{{#ifexist: Template:Country data {{{1|}}}||{{namespace detect showall

Revision as of 16:13, 6 March 2019

50px Template documentation[view] [edit] [history] [purge]

Displays the flag identified by the parameter in "icon" size, currently 22x20 pixels plus a one pixel border. This template is very similar to {{flagicon}}, except the image is not linked to an article, i.e. it is "purely decorative" per World Wide Web Consortium (W3C) Web Content Accessibility Guidelines (WCAG). This template can be used when the article text immediately adjacent to the icon provides the associated link for the flag.

Comparison example
Usage examples

As with {{flagicon}}, a particular variant of the flag and/or a custom size for the icon may be specified using (respectively) |variant= and/or |size=. See {{flagicon}} for further details.

Also as with {{flagicon}}, the display of a redlink when Template:Country data Foo does not exist can be suppressed by using the |noredlink=yes parameter. See {{flagicon}} for further details.

Tracking categories

Where {{Flagdeco|Foo}} is used, but the Template:Country data Foo does not exist, then a redlink is displayed, unless the |noredlink=yes parameter has been set.

Where the redlink is displayed, the page is addded to a tracking category:

See also