ထႅမ်းပလဵတ်ႉ:Flag+link/doc
ၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း လၢႆးၸႂ်ႉတိုဝ်း (documentation) ႁင်း တွၼ်ႈတႃႇ ၼႃႈလိၵ်ႈၽႄ (subpage) ထႅမ်းပလဵတ်ႉ:Flag+link ၼၼ်ႉယဝ်ႉ။ တီႈၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းတေၶဝ်ႈပႃးဝႆႉ လၢႆးၸႂ်ႉတိုဝ်း လႄႈ ၶေႃႈၶၢဝ်ႇဢၼ်ၵဵဝ်ႇၵပ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ ၶေႃႈမုၼ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၵဵဝ်ႇၵပ်း တင်း ထႅမ်းပလဵတ်ႉ page ၼၼ်ႉယဝ်ႉ။ |
Uses Lua: |
Due to a server limit of 500 "expensive parser function" calls (#ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template or module will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised Category:Pages with too many expensive parser function calls. (further information) |
လွင်ႈၸႅင်ႈၼႄ
မႄးထတ်း{{flag+link|string|country|variant|size=|name=}}
Produces a flag icon attached to a wikilinked article. This template is similar to the more widely used {{flag}} and {{flag country}} templates, but is more useful for representing something like a country/region/place/organization/etc followed by a link, labelled using that country/region/etc's name, to an article on some aspect of that country/region/etc.
- Parameters
|1=
(first unnamed parameter): Use a string that will precede the country name defined in the second parameter.|2=
(second unnamed parameter): Use either the name of the state or in some cases, a three-letter country code (e.g. ISO 3166-1 alpha-3)|variant=
(optional parameter): Specifies an alternative (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.|name=
(optional): The display text of the target wikilink is usually automatically generated, but can always be over-ridden with the name parameter.
တူဝ်ယၢင်ႇ လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်း{{flag+link|Politics of|LIE}}
→ လိၵ်ႈတိၼ်ႇသတၢႆႇ- In this case, the country code for Liechtenstein (LIE) is used to produce the correct flag and wikilink to Politics of Liechtenstein.
{{flag+link|Politics of|LIE|variant=1719}}
→ လိၵ်ႈတိၼ်ႇသတၢႆႇ- Similar to the first example, but with a flag variant parameter to select a historical flag image.
{{flag+link|Sport in|Czech Republic|name=Czechia}}
→ Czechia- Optionally, an alternate name can be displayed. Note that the wikilink still uses the name used in the country's article (defined in Template:Country data Czech Republic in this case).
{{flag+link|Disc golf in|North Korea}}
→ ၵၢဝ်းလီႁွင်ႇ- If no article exists with the name formed by the combination of string and name, the link will default to [[name]].
{{flag+link|Disc golf in|North Korea}}
, for instance, produces ၵၢဝ်းလီႁွင်ႇ with "North Korea" as a link to North Korea because Disc golf in North Korea does not exist.
- If no article exists with the name formed by the combination of string and name, the link will default to [[name]].
To specify a width for the icon and/or a particular variant/version of the flag, set the parameters |size=
and/or |variant=
in the same manner as {{flag icon}}'s size and variant parameters. (See {{flag icon}}'s documentation for more details.)
Example use in articles
မႄးထတ်းFor examples of this template's use in articles, see the following articles:
- Cabbage#Production
- Administrative divisions of South America#Table (leftmost columns)