This template is used to display a small flag icon next to a wikilinked country name. It is related to the {{flagicon}} and {{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.

បំរើបំរាស់ កែប្រែ

{{ទង់ជាតិ|ឈ្មោះប្រទេស|optional variant|name=alternate text string}}

  • ឈ្មោះប្រទេស (ឧទាហរណ៏. "ជប៉ុន"), a common alias (e.g. "JPN"), 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
  • 'alternate text string, specified by the name parameter, is used to display alternate text

See the prefix index for the templates latently called by this one.

ឧទាហរណ៏ កែប្រែ

Wiki markup Displays Notes
{{ទង់ជាតិ|ខ្មែរ}} ទំព័រគំរូ:ទិន្នន័យប្រទេស ខ្មែរ កម្ពុជា
{{ទង់ជាតិ|កម្ពុជា}}  កម្ពុជា
{{ទង់ជាតិ|សហរដ្ឋអាមេរិក}}  សហរដ្ឋអាមេរិក Note that both instances link to សហរដ្ឋអាមេរិក
{{ទង់ជាតិ|ស.រ.អា}} ទំព័រគំរូ:ទិន្នន័យប្រទេស ស.រ.អា
{{ទង់ជាតិ|ជប៉ុន}}  ជប៉ុន ជប៉ុន
{{ទង់ជាតិ|CAN|ឈ្មោះ=ជនជាតិកាណាដា}}  CAN The name parameter can be used to change the display string but keep the link to the correct article.
{{ទង់ជាតិ|កាណាដា|1957|name=Canadian}}  Canadian The name parameter can also be used when flag variants are specified.
{{ទង់ជាតិ|តិចសាស}} ទំព័រគំរូ:ទិន្នន័យប្រទេស តិចសាស Flags are also available for several sub-national entities such as US states and Canadian provinces.
A complete list can be found at Category:Country data templates.
{{ទង់ជាតិ|British Columbia|name=BC}} ទំព័រគំរូ:ទិន្នន័យប្រទេស British Columbia