Skabelon:Flagikon/doc: Forskelle mellem versioner
Content deleted Content added
Steenth (diskussion | bidrag) {{High-risk}} |
m ret antal high-use/high-risk; kosmetiske ændringer |
||
Linje 1:
<noinclude>{{Skabelondokumentationsside vist direkte}}{{oversæt|engelsk}}</noinclude>
<includeonly>{{High-risk|
== Beskrivelse ==
Displays a flag of the named parameter in "icon" size, currently 22x20 pixels plus a one pixel border.
== Brug ==
<code><nowiki>{{flagikon|name|variant=|size=}}</nowiki></code>
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc.
;variant: The second parameter is optional, and identifies a flag variant to be used instead of the standard flag.
;size: This parameter is optional, and is used to specify the maximum width and/or height of the flag image.
== Eksempler ==
Linje 31:
|}
== Implementation notes ==
This template uses the data templates listed under [[:Kategori:Lande data skabeloner]], which contain the data '''what''' to display and the formatter [[
* <code><nowiki>{{flagikon|Polen}}</nowiki></code> → {{flagikon|Polen}} — bruger [[Skabelon:Lande data Polen]]
Linje 43:
== Relaterede skabeloner ==
* [[Skabelon:flag]] is used to display a wikilinked name next to the flag.
** <code><nowiki>{{flag|Polen}}</nowiki></code> → {{flag|Polen}}
** <code><nowiki>{{flag|POL}}</nowiki></code> → {{flag|POL}}
* [[Skabelon:flagland]] is also used to display a wikilinked name next to the flag.
** <code><nowiki>{{flagland|Polen}}</nowiki></code> → {{flagland|Polen}}
** <code><nowiki>{{flagland|POL}}</nowiki></code> → {{flagland|POL}}
|