模板:Country data Ireland/doc
| File:Edit-copy green.svg | 此页面是Template:Country data Ireland的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
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
{{flag|Ireland|1783}}→ File:Saint Patrick's Saltire.svg 爱尔兰 (use for Ireland as part of United Kingdom of Great Britain and Ireland){{flag|Ireland}}→ File:Flag of Ireland.svg 爱尔兰 (use for current state)
Sporting teams[编辑]
Also, several sport-specific flag variants are maintained here, and these are automatically used by the respective sport team templates:
{{fb|Ireland}}→ File:Saint Patrick's Saltire.svg 爱尔兰 (football, 1882–1922){{fh|Ireland}}→ File:Flag of Ireland.svg 爱尔兰 (field hockey){{rl|Ireland}}→ File:Four Provinces Flag.svg 爱尔兰 (rugby league){{ih|Ireland}}→ File:Flag of Ireland.svg 爱尔兰 (ice hockey) — all-Ireland team that uses the tri-colour{{ru|Ireland}}→ File:IRFU flag.svg 爱尔兰 (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:
{{flagicon|IRL}}→ 爱尔兰{{flagicon|IRE|1783}}→ 爱尔兰{{flagicon|IRE|4prov}}→ 爱尔兰{{fb|IRL}}→ File:Flag of Ireland.svg 爱尔兰 (links to Republic of Ireland national football team){{fb|IRE}}→ File:Saint Patrick's Saltire.svg 爱尔兰 (links to Ireland national football team (1882–1950))
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}}→File:Flag of Ireland.svg 爱尔兰(Use{{fh|IRE}}instead)
其他旗帜[编辑]
军旗[编辑]
| 标识 | 图片 (40px) |
|---|---|
| army | 爱尔兰 |
| air force | 爱尔兰 |
| coast guard | 爱尔兰 |
| military | 爱尔兰 |
| naval | 爱尔兰 |
| navy | 爱尔兰 |
爱尔兰历史政权的旗帜[编辑]
Country data系列模板同样可用于爱尔兰历史政权。
爱尔兰省份[编辑]
Country_data 系列模板同样可用于爱尔兰省份: