Skabelon:Flag/doc: Forskelle mellem versioner

Content deleted Content added
Ny side: <includeonly>{{Template doc page transcluded}}</includeonly><noinclude>{{Skabelondokumentationsside vist direkte}}</noinclude> This template is used to display a small flag icon next to a …
 
No edit summary
Linje 1:
<includeonly>{{Template doc page transcluded}}</includeonly><noinclude>{{Skabelondokumentationsside vist direkte}}</noinclude>
 
Denne skabelon bliver brugt til at vise et lille flagikon ved siden af et link til et landenavn. Skabelonen er relateret til {{vis|flagikon2}} og {{vis|flagland2}} skabelonerne, men give flere valgmuligheder med det der bliver vist.
This template is used to display a small flag icon next to a wikilinked country name. It is related to the {{tl|flagicon}} and {{tl|flagcountry}} templates, but offers more options in terms of the text string displayed.
 
See [[Wikipedia:WikiProject Flag Template]] for the main documentation/discussion page for the flag templates system.
 
== Brug ==
'''<nowiki>{{flag|</nowiki>'''''land'''''|'''''valgfri variant'''''|'''name=''alternativ tekst'''''<nowiki>}}</nowiki>'''
 
*''country identifierland'' is the common name of the country (e.g. "United States"), a common alias (e.g. "US"), or a standard country code such as those listed at [[ISO 3166-1 alpha-3]]
*''variant'' is an optional second parameter that can be used to display a flag variation, such as a historical flag. The list of variants for each country is documented on the appropriate template page, such as [[:Template:Country data Germany]]
*''alternatealternativ text stringtekst'', specified by the '''name''' parameter, is used to display alternate text
 
SeeSe <span class="plainlinks">[http://enda.wikipedia.org/w/index.php?title=SpecialSpeciel%3APrefixindex3APr%C3%A6fiksindeks&from=CountryLande+data&namespace=10 the prefix index]</span> for the templates latently called by this one.
 
== Eksempler ==
{| class="wikitable"
! Wiki markupWikikode !! DisplaysGiver !! Noter
|-
| <code><nowiki>{{flag|United StatesUSA}}</nowiki></code> || {{flag|United StatesUSA}} ||rowspan=2| NoteVær thatopmærksom both instancesat begge har link totil [[United StatesUSA]].
|-
| <code><nowiki>{{flag|USAUnited States}}</nowiki></code> || {{flag|USAUnited States}}
|-
| <code><nowiki>{{flag|Tyskland}}</nowiki></code> || {{flag|Tyskland}} ||rowspan=3| Alle tre instanceshar link totil [[GermanyTyskland]].<br />In addition to theUdover ISO country codeslandekoden, those used byer [[FIFA]]s, [[IOC]],s etc.og areosv. alsoogså supportedunderstøttet.
|-
| <code><nowiki>{{flag|DEU}}</nowiki></code> || {{flag|DEU}}
Line 28 ⟶ 26:
| <code><nowiki>{{flag|GER}}</nowiki></code> || {{flag|GER}}
|-
| <code><nowiki>{{flag|GermanyTyskland|empirekejserrige}}</nowiki></code> || {{flag|GermanyTyskland|empirekejserrige}} ||rowspan=2| FlagFlagvariationer variationskan canblive bebrugt usedmed withhvert eitherlandenavn countryeller names or country codeslandekoder.
|-
| <code><nowiki>{{flag|DEU|empirekejserrige}}</nowiki></code> || {{flag|DEU|empirekejserrige}}
|-
| <code><nowiki>{{flag|CAN|name=CanadianCanadier}}</nowiki></code> || {{flag|CAN|name=CanadianCanadier}} || The name parameter can be used to change the display string but keep the link to the correct article.
|-
| <code><nowiki>{{flag|Canada|1957|name=CanadianCanadier}}</nowiki></code> || {{flag|Canada|1957|name=CanadianCanadier}} || The name parameter can also be used when flag variants are specified.
|-
| <code><nowiki>{{flag|Texas}}</nowiki></code> || {{flag|Texas}} ||rowspan=2| Flags are also available for several sub-national entities such as US states and Canadian provinces.<br>A complete list can be found at [[:Category:Country data templates]].
Line 40 ⟶ 38:
| <code><nowiki>{{flag|British Columbia|name=BC}}</nowiki></code> || {{flag|British Columbia|name=BC}}
|-
| <code><nowiki>{{flag|SwitzerlandSchweiz|size=15px}}</nowiki></code> || {{flag|SwitzerlandSchweiz|size=15px}}
|}
=== Se også ===
* [[TemplateSkabelon:flagcountryFlagland2]] — always expands the link text to the full country name.
* [[TemplateSkabelon:flagiconFlagikon2]] — displaysviser thekun flag onlyflaget.
<includeonly>
[[Kategori:Flagskabeloner| ]]