Template:Flag: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly>{{#switch:{{{1}}} |en |EN={{{2|20px}}} |fr |FR={{{2|20px}}} |de |DE={{{2|20px}}} |nl |NL=...")
 
 
Line 18: Line 18:
This template displays a flag in a certain size (on default 20px). If the flag for the respective language is not available, the ISO code will be displayed as a makeshift.
This template displays a flag in a certain size (on default 20px). If the flag for the respective language is not available, the ISO code will be displayed as a makeshift.
===Arguments===
===Arguments===
*'''1''' (obligatory): The language according to {{wikipedia|List of ISO 639-1 codes|ISO 639-1}}
*'''1''' (obligatory): The language according to {{wiki|List of ISO 639-1 codes|ISO 639-1}}
*'''2''' (optional): The flag size with unit: on default 20px.  
*'''2''' (optional): The flag size with unit: on default 20px.
 
===Examples===
===Examples===
<pre>{{flag|nl}}</pre> delivers
<pre>{{flag|nl}}</pre> delivers

Latest revision as of 16:49, 27 February 2020

Usage

This template displays a flag in a certain size (on default 20px). If the flag for the respective language is not available, the ISO code will be displayed as a makeshift.

Arguments

  • 1 (obligatory): The language according to ISO 639-1 (Wiki banner.png)
  • 2 (optional): The flag size with unit: on default 20px.

Examples

{{flag|nl}}

delivers

Dutch flag.png

{{flag|CZ|45px}}

delivers

Czech flag.png