Template:Country showdata

模解[] [] [] []

呢個模係畀旗模用嚟整理數據嘅。This template is used for documenting country data meta-templates used by the flag template system.你可以喺任何Category:國數據模入面嘅模睇到呢個模。

Wikipedia:WikiProject Flag Template睇下旗模系統嘅主要解釋同討論頁。



{{ {{{1<noinclude>|country showdata</noinclude>}}}
| alias = Countryname
| flag alias = Flag of Countryname.svg
| size = {{{size|}}}
| name = {{{name|}}}

第一個國數據模嘅參數多數都係叫做formatting meta-template。好似Template:Flag用咗Template:Country flag2做一個真正嘅旗圖同連結。如果第一個參數無咗,即係啲國數據模畀人正接用,呢個模嘅一部分{{{1<noinclude>|country showdata</noinclude>}}}就會當咗呢個模會俾人當係第一個參數。This technique ensures that country data templates are "self-documenting" if they use the standard syntax.


Many country data templates require additional documentation beyond the standard mandatory alias and flag alias parameters. This template will automatically document standard optional parameters (such as shortname alias and/or alt attribute) if present, and can document unique optional parameters (such as flag variants) if instructed to. This latter method utilizes documentation-specific parameters in the country data template to activate the additional output from this template. These documentation parameters are set off from the rest of the parameters in the country data template by a <noinclude> section:

| var1 = ...
| redir1 = ...
| related1 = ...


Flag variants are added to a country data template by the inclusion of one or more flag alias-label parameters, where each label is a unique identifier that is subsequently used as an input parameter to {{flag|...}}, {{flagicon|...}}, etc. To document these flag variants, use the varN documentation parameters to identify each label.

For example, Template:Country data Seychelles identifies three flag variants (in addition to the current flag) with the following code:

| flag alias-1976 = Flag of the Seychelles 1976.svg
| flag alias-1977 = Flag of the Seychelles 1977.svg
| flag alias-colonial = Government Ensign of the United Kingdom.svg

These three variants are documented by the following code segment later in the template:

| var1 = 1976
| var2 = 1977
| var3 = colonial

Up to nine flag variants can be documented by this method (using var1 to var9). If more are present (and currently, only Template:Country data United States has more than nine flag variants), these can be listed on a separate documentation subpage as described below.

Note that you do not have to use a varN parameter for the standard optional variant label naval (used for the country's naval ensign). If present, it will automatically be documented.


有好多國數據模都有別名,呢啲名可以喺主要旗模用嚟代替本來個國家名。多數啲正常國家代碼簡稱,好似嗰啲三位字母國家代碼(ISO 3166-1 alpha-3),國際奧委會改嗰啲或者國際足球協會改嗰啲。呢啲名都會加番個跳轉跳番去正常嗰個喺Category:Country data redirects由名單。另外,用國家嘅中文名嘅模都要跳轉去英文名。

例如,Template:Country data DEU同埋Template:Country data GER都會跳轉去Template:Country data Germany,因為DEU係一個ISO代碼而GER係國際奧委會同國際足球協會畀德國嘅代碼。所以,就算用{{flagicon|DEU}}, {{flagicon|GER}}同埋{{flagicon|Germany}}都有同一個結果。呢啲別名跳轉都會俾以下模片段記錄。

| redir1 = DEU
| redir2 = GER


Several country data templates are used for alternate forms to the common country data template for the nation, usually but not exclusively for historic nations. Pointers to these alternate templates are useful additions to the template documentation so that editors can use the correct template for their specific purposes.

For example, Template:Country data Serbia and Montenegro includes the following code to document three other related country data templates:

| related1 = Serbia
| related2 = Montenegro
| related3 = FR Yugoslavia


For situations where the automatic documentation method is not completely adequate, additional documentation can be displayed by country showdata. Simply create a documentation subpage (named as Template:Country data Countryname/doc) with the additional material, and it will be transcluded after all other output sections.