Difference between revisions of "Template:Flagdeco/doc"

From blackwiki
Jump to navigation Jump to search
imported>Benzoyl
imported>Sardanaphalus
(a slight rephrasing, added variant/size parameter availability)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
Displays a flag of the named parameter in "icon" size, currently 22x20 pixels plus a one pixel border. This template is very similar to [[Template: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.
+
 
 +
Displays the flag identified by the parameter in "icon" size, currently 22x20 pixels plus a one pixel border. This template is very similar to {{tl|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:
 
;Comparison example:
Line 9: Line 10:
 
*<code><nowiki>{{flagdeco|France}} [[Paris]], [[France]]</nowiki></code> → {{flagdeco|France}} [[Paris]], [[France]]
 
*<code><nowiki>{{flagdeco|France}} [[Paris]], [[France]]</nowiki></code> → {{flagdeco|France}} [[Paris]], [[France]]
 
*<code><nowiki>{{flagdeco|France}} [[French First Republic|France]]</nowiki></code> → {{flagdeco|France}} [[French First Republic|France]]
 
*<code><nowiki>{{flagdeco|France}} [[French First Republic|France]]</nowiki></code> → {{flagdeco|France}} [[French First Republic|France]]
 +
 +
As with {{tlf|flagicon}}, a particular variant of the flag and/or a custom size for the icon may be specified using (respectively) {{para|variant}} and/or {{para|size}}. See {{tl|flagicon}} for further details.
  
 
== See also ==
 
== See also ==
Line 15: Line 18:
  
 
<includeonly>
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
[[Category:Flag template system]]
[[Category:Flag template system|{{PAGENAME}}]]
 
  
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
 
[[ja:Template:Flagicon3]]
 
[[ja:Template:Flagicon3]]
 
</includeonly>
 
</includeonly>

Revision as of 16:23, 8 August 2014

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
  • {{flagdeco|France}} [[Paris]], [[France]] Paris, France
  • {{flagdeco|France}} [[French First Republic|France]] France

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.

See also