?? ??? ?????? ?????? ?????? ??????? ????????? ?? ???
????? ?????
. ?? ????? ??? ?????? ???? ???????? ?????? ?? ???? ?? ?? ??????? ??
?????:????? ?????? ???
.
?????????
??? ??????? ??? ?????? ??????? ?? ???? ???? ?????? ??????? ?? ???? ?????? ???:
{{ {{{1<noinclude>|??? ?????? ???</noinclude>}}}
| alias = Countryname
| shortname alias = Shortcountryname <!-- only necessary if Shortcountryname ≠ Countryname, otherwise omit -->
| flag alias = Flag of Countryname.svg
| size = {{{size|}}}
| name = {{{name|}}}
| variant = {{{variant|}}} <!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit -->
}}
?????? ????? ?? ???? ?????? ??? ???? ?? ???? ??? ?????
?????? ??????
. ??? ???? ??????
????:???
??????
????:???/????
????? ?????? ?????? ?????? ????? ????? ??????. ??? ??? ?????? ????? ???????? ????? ?? ??? ?????? ???? ??? ???? ?????? ??? ??????? ??? ??? ????? ?? ????? ??????
{{{1<noinclude>|country showdata</noinclude>}}}
???? ??
???
?????? ???? ???????? ????? ???????? ?????? ?????. ??? ??????? ???? ?? ???? ????? ?????? ???
?????? ?????
??? ?? ?? ??????? ???? ????????.
??????? ????????
?????? ?? ????? ????? ??????? ??????? ?????? ???????
alias
?
flag alias
????????? ?????????. ???? ??? ?????? ???????? ?????? ??????? ?????????? ????????? (???
shortname alias
) ?? ??? ?????????. ??? ???? ????? ??????? ?????????? ??????? (??? ?????
flag variant
) ??? ???? ???????. ??? ??????? ??????? ?????? ????? ????? ??????? ?? ???? ????? ??? ?????? ?????? ??????? ???? ??????. ????? ??????? ??? ?????? ?? ???? ????? ???? ?????? ??? ?????? ??????
<noinclude>
<noinclude>
| var1 = ...
| redir1 = ...
| related1 = ...
</noinclude>
??????? ?????
??? ????? ??????? ????? ??? ???? ?????? ??? ?? ???? ????? ???? ?? ???? ?? ??????
flag alias-
?????
? ??? ??
?????
?? ???? ???? ??? ???????? ?????? ?? ????? ???????? ???
{{???|...}}
? ,
{{??? ???|...}}
? ???. ?????? ??????? ?????? ?????? ???? ???????
var
N
?????? ?? ?????.
??? ???? ??????
????:?????? ??? ????
???? ?????? ???? ??????? ????? (????? ??? ????? ??????) ???? ?? ???? ????? ??????:
| 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
???? ????? ??? ????????? ?? ???? ????? ?????? ?????? ?? ??????:
<noinclude>
| var1 = 1976
| var2 = 1977
| var3 = colonial
...
</noinclude>
???? ????? ??? ???? ??? ????? ??????? ???????? ??? ??????? (????????
var1
???
var15
). ?? ??? ???? ???? ?? ???? ???? ??? ??? ????????? ?? ???? ????? ????? ??????.
???? ???
???
????? ???????? ??????
var
N
????????? ????????? ?????????? ???????
naval
??
air force
??
army
(??? ?????? ??????? ???????? ????? ??????? ?????? ??? ???????). ?? ??? ?????? ??? ????????? ????? ??????? ???? ???.
Redirect aliases
Many country data templates have
alias
names that can be used instead of the usual country name with all of the main flag templates. These are usually, but not exclusively, standard country code abbreviations such as those specifed in
???? 3166-1 ????-3
or by the
IOC
or
????? ??????? ??? ???? ??????
. These are implemented as redirects, and are listed in
Category:??????? ????? ?????? ???
.
For example,
????:Country data DEU
and
????:Country data GER
both redirect to
????:?????? ??? ???????
, because
DEU
is the ISO code and
GER
is the IOC and FIFA code for Germany. Therefore,
{{??? ???|DEU}}
,
{{??? ???|GER}}
, and
{{??? ???|???????}}
all have the same result. These redirect aliases are documented by the following template code fragment:
<noinclude>
...
| redir1 = DEU
| redir2 = GER
...
</noinclude>
Up to five flag redirects can be documented by this method (using
redir1
to
redir5
).
Related templates
Several country data templates are used for alternative forms to the common country data template for the nation, usually but not exclusively for historic nations. Pointers to these alternative 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:
<noinclude>
...
| related1 = Serbia
| related2 = Montenegro
| related3 = FR Yugoslavia
...
</noinclude>
Up to six related flags can be documented by this method (using
related1
to
related6
).
Flag article link
This template shows a large flag image on the right of the documentation box, with a link to an article about the flag in the caption if it exists. The page that it evaluates is "Flag of
{{{alias}}}
", with the value of
|alias=
in the template code replacing
{{{alias}}}
. If there is an article about the flag even though "Flag of
{{{alias}}}
" does not exist, either create the latter as a redirect to the correct page or add the following parameter:
<noinclude>
...
| flag link = ''Article name''
...
</noinclude>
This can also be used to override the automatic link if "Flag of
{{{alias}}}
" does exist but leads to the wrong article.
Additional documentation
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.
For example:
Categorization
This template automatically categorizes pages it is transcluded on in
?????:???? ????? ?????? ???
and in the tracking categories in
Category:Country data tracking categories
. Content categories, such as those
?????:????? ?????? ??? ??? ?????
or
?????:????? ?????? ??? ??? ??? ??????
, should be added manually by putting them inside
<includeonly></includeonly>
tags on a template's documentation subpage. If a template does not have a documentation page yet, click on the "/doc" link at the bottom of the automatic documentation, add categories between the preloaded
<includeonly>
tags and save the page.
The default sort key used for the automatic categories is the part after
Template:Country data
in the page title. The parameter
|cat=
can be used to specify a custom ASCII sorting key for these categories. For example,
????:?????? ??? ??? ??????
and
????:?????? ??? ??????? ???????
use this parameter to sort them under "A" and "I" respectively.
Automatically added by this template:
Manually added to templates or documentation pages: