模板:Country data Ireland

被永久保護的模板
維基百科,自由的百科全書
文件圖示 模板文件

這是Template:Country data Ireland的說明文件。它是由Template:Country showdata自動產生的。

Template:Country data Ireland為一系列模板的元模板,亦即本模版將用於構建其他模板,如flagflagicon等等。請勿在條目中直接使用此模板。

請在對此模板做任何變更後重新整理此頁面。

基本參數

參數名稱參數值含義
別名 爱尔兰 主條目(愛爾蘭
簡稱 愛爾蘭 (可選)別名是一個歧義名稱時,顯示的維基百科內部連結,如範例所示
旗幟別名 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
armyFlag of the Irish Defence Forces.svg
navyIrish Naval Service Colour.svg
air forceFlag of the Irish Air Corps.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: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  阿爾斯特省