Difference between revisions of "Template:Cricon/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bahnfrend
(→‎See also: add link)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 3: Line 3:
  
 
==Description==
 
==Description==
<tt><nowiki>{{cricon|nation|variant|size=optional}}</nowiki></tt>
+
<kbd><nowiki>{{cricon|nation|variant|size=optional}}</nowiki></kbd>
  
 
Produces a flag icon (only) that links to national cricket team article.  This is an alternative to {{tl|cr}}, which produces a link to the named article ''after'' the icon.
 
Produces a flag icon (only) that links to national cricket team article.  This is an alternative to {{tl|cr}}, which produces a link to the named article ''after'' the icon.
Line 13: Line 13:
  
 
==Examples==
 
==Examples==
*<tt><nowiki>{{cricon|AUS}}</nowiki></tt> → {{cricon|AUS}}
+
*<kbd><nowiki>{{cricon|AUS}}</nowiki></kbd> → {{cricon|AUS}}
*<tt><nowiki>{{cricon|Ireland}}</nowiki></tt> → {{cricon|Ireland}}
+
*<kbd><nowiki>{{cricon|Ireland}}</nowiki></kbd> → {{cricon|Ireland}}
*<tt><nowiki>{{cricon|West Indies}}</nowiki></tt> → {{cricon|West Indies}}
+
*<kbd><nowiki>{{cricon|West Indies}}</nowiki></kbd> → {{cricon|West Indies}}
*<tt><nowiki>{{cricon|South Africa|1928}}</nowiki></tt> → {{cricon|South Africa|1928}}
+
*<kbd><nowiki>{{cricon|South Africa|1928}}</nowiki></kbd> → {{cricon|South Africa|1928}}
  
 
==See also==
 
==See also==

Revision as of 06:54, 5 August 2018

Description

{{cricon|nation|variant|size=optional}}

Produces a flag icon (only) that links to national cricket team article. This is an alternative to {{cr}}, which produces a link to the named article after the icon.

Parameters
  • nation — Use either the name of the nation or a three-letter country code, as specified by ISO, IOC or FIFA (most should work)
  • variant (optional) — Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
  • size (optional) — Can be used to change the flag icon size (use sparingly!)

Examples

  • {{cricon|AUS}}Australia
  • {{cricon|Ireland}}Ireland
  • {{cricon|West Indies}}West Indies Cricket Board
  • {{cricon|South Africa|1928}}South Africa

See also