Шаблон:Парчам

Мавод аз Википедиа — донишномаи озод
(Тағйири масир аз Шаблон:Flag)

 [[|]]

Ҳуҷҷатгузорӣ

This template is used to display a small flag icon next to a wikilinked country name. It is related to the {{flagicon}}, {{Парчамбандӣ}} and {{flagu}} templates, but offers more options in terms of the text string displayed.

See ВикиЛоиҳаи Шаблони Парчам for the main documentation/discussion page for the flag templates system.

Истифода

{{парчам|муайянкунандаи давлат|варианти интихоби|name=матни алтернативи|size=бари максимали ва/ё баландии расми парчам}}

  • муайянкунандаи давлат 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 en:ISO 3166-1 alpha-3
  • вариант 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 Олмон
  • матни алтернативи, this optional value, specified by the name parameter, is used to display alternative text
  • size, this optional value is specified by the size parameter, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard image syntax.

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

Мисолҳо

Тоҷикистон. Вариантҳои парчам дар шаблони {{парчам|Тоҷикистон}}:

Wiki markup Displays
{{парчам|TJK}}  TJK
{{парчам|Tajikistan}}  Tajikistan
{{парчам|Тоҷикистон}}  Тоҷикистон
{{парчам|Тоҷикистон|1991}}  Тоҷикистон
{{парчам|Тоҷикистон|size=44px|1991}}  Тоҷикистон
{{парчам|Тоҷикистон|1991|size=44x20px}}  Тоҷикистон

Дигар мамлакатҳо:

Wiki ишора Натиҷа Қайдҳо
{{парчам|USA}} [!]  USA Note that both instances link to United States.
{{парчам|United States}}  United States
{{парчам|ИМА}}  ИМА
{{парчам|Иёлоти Муттаҳида}}  Иёлоти Муттаҳида
{{парчам|Иёлоти Муттаҳидаи Амрико}}  Иёлоти Муттаҳидаи Амрико
{{парчам|Непал}}  Непал
{{парчам|Олмон}}  Олмон All three instances link to Олмон.
In addition to the ISO country codes, those used by FIFA, IOC, etc. are also supported.
{{парчам|DEU}}  DEU
{{парчам|GER}}  GER
{{парчам|Олмон|empire}}  Олмон Flag variations can be used with either country names or country codes.
{{парчам|DEU|empire}}  DEU
{{парчам|EU}}  EU
{{парчам|Арманистон|size=14px}}  Арманистон The size parameter can be used to control the image dimensions.
23×15px is the default size for most countries (some entities have a different default size).
{{парчам|Арманистон|size=28px}}  Арманистон

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Парчам

This template displays a small flag icon next to a wikilinked country name

Template parameters[Edit template data]

ПараметрТавзеҳотTypeStatus
Муайянкунандаи давлат1

Common name of the country (e.g. 'United States'), a common alias (e.g. 'US'), or a standard country code

Stringrequired
Вариант2

Identifies a flag variant to be used instead of the standard flag, e.g. 1815

Stringoptional
Матни алтернативиname

Display alternative text instead of the standard country name

Stringoptional
Андозаи максимальsize

The maximum width or height, specified via standard 'extended image syntax' (e.g. x30px)

Stringoptional

Нигаред: en:Wikipedia:Extended image syntax.

Инчунин нигаред

Шаблон Эзоҳот Мисол
{{Coat of arms}} displays coat of arms image Шаблон:Coat of arms
{{Парчамбандӣ}} always expands the link text to the full country name  Тоҷикистон
{{Flagu}} does not link the country name  Тоҷикистон
{{Flagicon}} displays the flag only, linked to the country name Тоҷикистон
{{Flagdeco}} displays an unlinked flag icon only
{{Flagc}} links the flag image to its description page flag Тоҷикистон
{{Flaglist}} aligns country names correctly in vertical lists (see that template's documentation) Тоҷикистон
{{Flagteam}} adds country code in parentheses after linked country name  Тоҷикистон (TJK)
{{Flagathlete}} displays the flag and another name, followed country name or code  Дилшод Назаров (TJK)
{{Flagmedalist}} displays the flag and a name, above linked country name and code Дилшод Назаров
 Тоҷикистон

Рӯйхати пурраи Википедиа:Лоиҳа:Шаблони Парчам#Рӯйхат шаблонҳои парчам.

Multi-sport templates

Шаблон:Flag templates