模板:Country data Ireland

被永久保护的模板
维基百科,自由的百科全书
文档图示 模板文档

这是Template:Country data Ireland的说明文件。它是由Template:Country showdata自动产生的。

Template:Country data Ireland为一系列模板的元模板,亦即本模版将用于构建其他模板,如flagflagicon等等。请勿在条目中直接使用此模板。

请在对此模板做任何变更后重新整理此页面。

基本参数

参数名称参数值含义
alias 爱尔兰 主条目(爱尔兰
shortname alias 愛爾蘭 (可选)alias是一个歧义名称时,显示的维基百科内部链接,如范例所示
flag alias Flag of Ireland.svg 图片名称(File:Flag of Ireland.svg,显示在右方)

旗帜变异

标记旗帜图档 (40px)图片档案名称
1783Saint Patrick's Saltire.svg
greenGreen harp flag of Ireland.svg
4provFour Provinces Flag.svg
footballSaint Patrick's Saltire.svg
rugby unionIRFU flag.svg
hockeyFlag of Ireland hockey team.svg
cricketCricket Ireland flag.svg
militaryFlag_of_the_Irish_Defence_Forces.svg
coast guardCoast Guard Flag (Ireland).svg
navyIrish Naval Service Colour.svg
air forceFlag of the Irish Air Corps.svg
armyFlag of the Irish Defence Forces.svg

军事旗帜

此模板包括武装部队军旗的变体,可以使用Template:Armed forces

  • {{Armed forces|Ireland}} 爱尔兰
  • {{flagicon|Ireland|military}}爱尔兰

此模板包括陆军军旗的变体,可以使用Template:Army

  • {{army|Ireland}} 爱尔兰
  • {{flagicon|Ireland|army}}爱尔兰

此模板包括海军军旗的变体,可以使用Template:Navy

  • {{navy|Ireland}} 爱尔兰
  • {{flagicon|Ireland|navy}}爱尔兰

海军舰艏旗与其国旗相同,因此Template:Naval产生以下:

此模板包括海岸警卫队旗的变体,可以使用Template:Coast guard

  • {{coast guard|Ireland}} 爱尔兰
  • {{flagicon|Ireland|coast guard}}爱尔兰

此模板包括空军军旗的变体,可以使用Template:Air force

  • {{air force|Ireland}} 爱尔兰
  • {{flagicon|Ireland|air force}}爱尔兰

重定向模板

此模板亦可以以别称(其他名称)使用(以重定向至此模板的方式执行):
别称{{flag|別稱}}输出样貌{{flagicon|別稱}}输出样貌
IRE显示 爱尔兰 爱尔兰
EIR显示Template:Country data EIRTemplate:Country data EIR

查看全部重定向

使用范例

  • {{flag|Ireland}} 爱尔兰
  • {{flagicon|Ireland}}爱尔兰
  • {{flagcountry|Ireland}} 爱尔兰

使用旗帜变异

  • {{flag|Ireland|1783}} 爱尔兰
  • {{flagicon|Ireland|1783}}爱尔兰

使用重定向模板

相关模版

请参阅以下相关國家數據模板:

其他资讯

This template is intended to be used for all-Ireland instances, usually resulting in a wikilink to Ireland (article about the island) instead of Republic of Ireland (article about the sovereign nation).

However, it is often convenient to use {{flagicon|Ireland}} and {{flag|Ireland}} instead of {{flagicon|Republic of Ireland}} and {{flag|Republic of Ireland}} respectively, so this template differs from the standard format in order to accommodate that usage. The alias parameter changes depending on whether or not a flag variant is used by the parent template call:

alias = {{#if:{{{variant|}}}|Ireland|Ireland (state)}}

This results in

Sporting teams

Also, several sport-specific flag variants are maintained here, and these are automatically used by the respective sport team templates:

  • {{fb|Ireland}} 爱尔兰 (football, 1882–1922)
  • {{fh|Ireland}} 爱尔兰 (field hockey)
  • {{rl|Ireland}} 爱尔兰 (rugby league)
  • {{ih|Ireland}} 爱尔兰 (ice hockey) — all-Ireland team that uses the tri-colour
  • {{ru|Ireland}} 爱尔兰 (rugby union)

Use of country code aliases

The standard country code for the Republic of Ireland is IRL, so it can be used as an alias for Template:Country data Republic of Ireland. The non-standard country code IRE is used as an alias for this template to provide similar convenience. For example:

Incorrect usage

Do not use the IRL alias for all-Ireland sports team, and do not use the IRE alias without a flag variant specified. The following examples should not be used.

  • {{flagicon|IRE}}爱尔兰 (Works, but better to use the standard country code for IRL.)
  • {{fh|IRL}} 爱尔兰 (Use {{fh|IRE}} instead)

Other flags

Country_data templates are also available for each of the four traditional provinces of Ireland:

Template:Country data Connacht  康诺特省
Template:Country data Leinster  伦斯特省
Template:Country data Munster  芒斯特省
Template:Country data Ulster  阿尔斯特省