Bewerken van Sjabloon:Vlagicoon/doc

Uit Radiopedia
Waarschuwing: U bent niet aangemeld. Uw IP-adres zal voor iedereen zichtbaar zijn als u wijzigingen op deze pagina maakt. Wanneer u zich aanmeldt of een account aanmaakt, dan worden uw bewerkingen aan uw gebruikersnaam toegeschreven. Daarnaast zijn er andere voordelen.

Deze bewerking kan ongedaan gemaakt worden. Hieronder staat de tekst waarin de wijziging ongedaan is gemaakt. Controleer voor het publiceren of het resultaat gewenst is.

Huidige versie Uw tekst
Regel 1: Regel 1:
<noinclude>{{documentation subpage}}</noinclude>
{{documentation subpage}}
{{vertalen}}
 
==Description==
==Description==
Displays a flag of the named parameter in "icon" size, currently 22×20 pixels plus a one pixel border.  The image also has a clickable link to the associated article.
Displays a flag of the named parameter in "icon" size, currently 22×20 pixels plus a one pixel border.  The image also has a clickable link to the associated article.
Regel 8: Regel 6:


==Usage==
==Usage==
<code><nowiki>{{vlagicoon|name|variant=|size=}}</nowiki></code>  
<code><nowiki>{{flagicon|name|variant=|size=}}</nowiki></code>  
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc.  A full list of available parameters can be found in [[:Category:Country data templates]].  For example, [[:Template:Country data Bulgaria]] is used when the ''name'' parameter is specified as <code>Bulgaria</code>.  Many flags are also available via shortened "aliases", such as standard three letter country codes as specified by [[ISO 3166-1 alpha-3]], [[List of IOC country codes|IOC]], or [[List of FIFA country codes|FIFA]].  The list of available "aliases" are found in [[:Category:Country data redirects]].  Many of these country codes could be considered obscure, so it is recommended to use the full country name.
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc.  A full list of available parameters can be found in [[:Category:Country data templates]].  For example, [[:Template:Country data Bulgaria]] is used when the ''name'' parameter is specified as <code>Bulgaria</code>.  Many flags are also available via shortened "aliases", such as standard three letter country codes as specified by [[ISO 3166-1 alpha-3]], [[List of IOC country codes|IOC]], or [[List of FIFA country codes|FIFA]].  The list of available "aliases" are found in [[:Category:Country data redirects]].  Many of these country codes could be considered obscure, so it is recommended to use the full country name.
;variant: The second parameter is optional, and identifies a flag variant to be used instead of the standard flag.  This is most often used for historical flags but can also be used to specify naval flags, sport-use flags, etc.  The list of available flag variants for each country is documented on the specific page for the country data template.  For example, [[Template:Country data Bulgaria]] includes a description of each of the available flag variations for Bulgaria.  This parameter can be a named parameter (e.g. "<code>variant=1815</code>"), or a positional parameter, always after the country name.
;variant: The second parameter is optional, and identifies a flag variant to be used instead of the standard flag.  This is most often used for historical flags but can also be used to specify naval flags, sport-use flags, etc.  The list of available flag variants for each country is documented on the specific page for the country data template.  For example, [[Template:Country data Bulgaria]] includes a description of each of the available flag variations for Bulgaria.  This parameter can be a named parameter (e.g. "<code>variant=1815</code>"), or a positional parameter, always after the country name.
Regel 17: Regel 15:
! Wikicode !! Results !! Notes
! Wikicode !! Results !! Notes
|-
|-
| <code><nowiki>{{vlagicoon|Bulgaria}}</nowiki></code> || {{vlagicoon|Bulgaria}} ||
| <code><nowiki>{{flagicon|Bulgaria}}</nowiki></code> || {{flagicon|Bulgaria}} ||
|-
| <code><nowiki>{{flagicon|BUL}}</nowiki></code> || {{flagicon|BUL}} || Uses the ISO/IOC/FIFA country code
|-
| <code><nowiki>{{flagicon|Bulgaria|1946}}</nowiki></code> || {{flagicon|Bulgaria|1946}} || rowspan="2"| Specifies a historical flag
|-
| <code><nowiki>{{flagicon|Bulgaria|variant=1946}}</nowiki></code> || {{flagicon|Bulgaria|variant=1946}}
|-
| <code><nowiki>{{flagicon|BUL|naval}}</nowiki></code> || {{flagicon|BUL|naval}} || Specifies the naval ensign
|-
| <code><nowiki>{{flagicon|BUL|air force}}</nowiki></code> || {{flagicon|BUL|air force}} || Specifies the air force flag
|-
|-
| <code><nowiki>{{vlagicoon|Bulgaria|size=50px}}</nowiki></code> || {{vlagicoon|Bulgaria|size=50px}} || Sets width to 50 pixels
| <code><nowiki>{{flagicon|Bulgaria|size=50px}}</nowiki></code> || {{flagicon|Bulgaria|size=50px}} || Sets width to 50 pixels
|-
|-
| <code><nowiki>{{vlagicoon|Bulgaria|size=x30px}}</nowiki></code> || {{vlagicoon|Bulgaria|size=x30px}} || Sets height to 30 pixels
| <code><nowiki>{{flagicon|BUL|naval|size=x30px}}</nowiki></code> || {{flagicon|BUL|naval|size=x30px}} || Sets height to 30 pixels
|}
|}


Regel 27: Regel 35:
This template uses the data templates listed under [[:Category:Country data templates]], which contain the data '''what''' to display and the formatter [[Template:Flagicon/core]], which contains the logic '''how''' to display the flag.
This template uses the data templates listed under [[:Category:Country data templates]], which contain the data '''what''' to display and the formatter [[Template:Flagicon/core]], which contains the logic '''how''' to display the flag.


* <code><nowiki>{{vlagicoon|Bulgaria}}</nowiki></code> → {{vlagicoon|Bulgaria}} — uses [[Template:Country data Bulgaria]]
* <code><nowiki>{{flagicon|Bulgaria}}</nowiki></code> → {{flagicon|Bulgaria}} — uses [[Template:Country data Bulgaria]]
* <code><nowiki>{{flagicon|BuL}}</nowiki></code> → {{flagicon|BUL}} — uses [[Template:Country data BUL]], which is a redirect to [[Template:Country data Bulgaria]]


Inside each country data template, this template uses the following parameters:
Inside each country data template, this template uses the following parameters:
Regel 36: Regel 45:
== Related templates ==
== Related templates ==
* [[Template:Flag]] is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, [[Bulgaria]]).
* [[Template:Flag]] is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, [[Bulgaria]]).
** <code><nowiki>{{vlag|Bulgaria}}</nowiki></code> → {{vlag|Bulgaria}}
** <code><nowiki>{{flag|Bulgaria}}</nowiki></code> → {{flag|Bulgaria}}
** <code><nowiki>{{flag|BUL}}</nowiki></code> → {{flag|BUL}}
* [[Template:Flagcountry]] is also used to display a wikilinked name next to the flag.  The displayed name will always be the same, regardless of whether or not a country code alias is used as the template parameter.
** <code><nowiki>{{flagcountry|Bulgaria}}</nowiki></code> → {{flagcountry|Bulgaria}}
** <code><nowiki>{{flagcountry|BUL}}</nowiki></code> → {{flagcountry|BUL}}


== See also ==
== See also ==
* [[Wikipedia:WikiProject Flag Template]]
* [[Wikipedia:WikiProject Flag Template]]
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Flag template system|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ar:قالب:ايقونة علم]]
[[ca:Plantilla:Bandera]]
[[cs:Template:Flagicon]]
[[cy:Nodyn:Eicon baner]]
[[dsb:Pśedłoga:Chórgoj]]
[[el:Πρότυπο:Flagicon]]
[[eo:Ŝablono:Flago]]
[[es:Plantilla:Bandera]]
[[fa:الگو:پرچم‌ها]]
[[fr:Modèle:Flagicon]]
[[id:Templat:Flagicon]]
[[it:Template:Bandiera]]
[[ko:틀:국기그림]]
[[ku:Şablon:Al]]
[[hsb:Předłoha:Chorhoj]]
[[hu:Sablon:Zászló]]
[[ja:Template:Flagicon]]
[[nl:Sjabloon:Vlagland]]
[[no:Mal:Flagicon]]
[[pt:Predefinição:Flagicon]]
[[ro:Format:Flagicon]]
[[ru:Шаблон:Флаг]]
[[sl:Predloga:Ikonazastave]]
[[sv:Mall:Flaggbild]]
[[th:Template:Flagicon]]
[[tr:Şablon:Bayraksimge]]
[[zh:Template:Flagicon]]
</includeonly>
Let op: alle bijdragen aan Radiopedia worden geacht te zijn vrijgegeven onder de Creative Commons Naamsvermelding-Gelijk delen (zie Radiopedia:Auteursrechten voor details). Als u niet wilt dat uw tekst door anderen naar believen bewerkt en verspreid kan worden, kies dan niet voor "Pagina opslaan".
Hierbij belooft u ons tevens dat u deze tekst zelf hebt geschreven of overgenomen uit een vrije, openbare bron.
Gebruik geen materiaal dat beschermd wordt door auteursrecht, tenzij u daarvoor toestemming hebt!

Beantwoord de onderstaande vraag om deze pagina te bewerken (meer informatie):

Annuleren Hulp bij bewerken (opent in een nieuw venster)