Template:Country data Ireland/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Andrwsc
(updated)
meta>Andrwsc
(update)
Line 4: Line 4:
* <tt><nowiki>{{fb|Ireland}}</nowiki></tt> → {{fb|Ireland}} ''(football, 1882-1922)''
* <tt><nowiki>{{fb|Ireland}}</nowiki></tt> → {{fb|Ireland}} ''(football, 1882-1922)''
* <tt><nowiki>{{cr|Ireland}}</nowiki></tt> → {{cr|Ireland}} ''(cricket)''
* <tt><nowiki>{{cr|Ireland}}</nowiki></tt> → {{cr|Ireland}} ''(cricket)''
* <tt><nowiki>{{ru|Ireland}}</nowiki></tt> → {{ru|Ireland}} ''(rugby union)''
* <tt><nowiki>{{rl|Ireland}}</nowiki></tt> → {{rl|Ireland}} ''(rugby league)'' — all-Ireland team that uses the tri-colour
* <tt><nowiki>{{rl|Ireland}}</nowiki></tt> → {{rl|Ireland}} ''(rugby league)''
* <tt><nowiki>{{fh|Ireland}}</nowiki></tt> → {{fh|Ireland}} ''(field hockey)''
* <tt><nowiki>{{fh|Ireland}}</nowiki></tt> → {{fh|Ireland}} ''(field hockey)''
* <tt><nowiki>{{ih|Ireland}}</nowiki></tt> → {{ih|Ireland}} ''(ice hockey)''
* <tt><nowiki>{{ih|Ireland}}</nowiki></tt> → {{ih|Ireland}} ''(ice hockey)'' — all-Ireland team that uses the tri-colour


However, it is often convenient to use <tt><nowiki>{{flagicon|Ireland}}</nowiki></tt> and <tt><nowiki>{{flag|Ireland}}</nowiki></tt> instead of <tt><nowiki>{{flagicon|Republic of Ireland}}</nowiki></tt> and <tt><nowiki>{{flag|Republic of Ireland}}</nowiki></tt> respectively, so this template differs from the standard format in order to accommodate that usage.  The <tt>alias</tt> parameter changes depending on whether or not a flag variant is used by the parent template call:
However, it is often convenient to use <tt><nowiki>{{flagicon|Ireland}}</nowiki></tt> and <tt><nowiki>{{flag|Ireland}}</nowiki></tt> instead of <tt><nowiki>{{flagicon|Republic of Ireland}}</nowiki></tt> and <tt><nowiki>{{flag|Republic of Ireland}}</nowiki></tt> respectively, so this template differs from the standard format in order to accommodate that usage.  The <tt>alias</tt> parameter changes depending on whether or not a flag variant is used by the parent template call:
Line 21: Line 20:
*<tt><nowiki>{{flagicon|IRL}}</nowiki></tt> → {{flagicon|IRL}}
*<tt><nowiki>{{flagicon|IRL}}</nowiki></tt> → {{flagicon|IRL}}
*<tt><nowiki>{{flagicon|IRE|1783}}</nowiki></tt> → {{flagicon|IRE|1783}}
*<tt><nowiki>{{flagicon|IRE|1783}}</nowiki></tt> → {{flagicon|IRE|1783}}
*<tt><nowiki>{{flagicon|IRE|rugby}}</nowiki></tt> → {{flagicon|IRE|rugby}}
*<tt><nowiki>{{flagicon|IRE|4prov}}</nowiki></tt> → {{flagicon|IRE|4prov}}
*<tt><nowiki>{{fb|IRL}}</nowiki></tt> → {{fb|IRL}} ''(links to [[Republic of Ireland national football team]])''
*<tt><nowiki>{{fb|IRL}}</nowiki></tt> → {{fb|IRL}} ''(links to [[Republic of Ireland national football team]])''
*<tt><nowiki>{{fb|IRE}}</nowiki></tt> → {{fb|IRE}} ''(links to [[Ireland national football team (1882–1950)]])''
*<tt><nowiki>{{fb|IRE}}</nowiki></tt> → {{fb|IRE}} ''(links to [[Ireland national football team (1882–1950)]])''
*<tt><nowiki>{{ru|IRE}}</nowiki></tt> → {{ru|IRE}} ''(links to [[Ireland national rugby union team]])''
 
====Incorrect usage====
====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.
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.
*<tt><nowiki>{{flagicon|IRE}}</nowiki></tt> → {{flagicon|IRE}}  (''Works, but better to use the standard country code for IRL.'')
*<tt><nowiki>{{flagicon|IRE}}</nowiki></tt> → {{flagicon|IRE}}  (''Works, but better to use the standard country code for IRL.'')
*<tt><nowiki>{{ru|IRE}}</nowiki></tt> → <s>{{ru|IRE}}</s> (''Use'' <tt><nowiki>[[Ireland national rugby union team|Ireland]]</nowiki></tt> ''instead, as the flag used by the IRFU is non-free and cannot be used in this template'')
*<tt><nowiki>{{cr|IRL}}</nowiki></tt> → <s>{{cr|IRL}}</s>  (''Use'' <tt><nowiki>{{cr|IRE}}</nowiki></tt> ''instead'')
*<tt><nowiki>{{cr|IRL}}</nowiki></tt> → <s>{{cr|IRL}}</s>  (''Use'' <tt><nowiki>{{cr|IRE}}</nowiki></tt> ''instead'')
*<tt><nowiki>{{ru|IRL}}</nowiki></tt> → <s>{{ru|IRL}}</s>  (''Use'' <tt><nowiki>{{ru|IRE}}</nowiki></tt> ''instead'')
*<tt><nowiki>{{ru|IRL}}</nowiki></tt> → <s>{{ru|IRL}}</s>  (''Use'' <tt><nowiki>{{ru|IRE}}</nowiki></tt> ''instead'')

Revision as of 03:40, 11 February 2009

This template is intended to be used for all-Ireland instances, usually resulting in a wikilink to Ireland (island) instead of Ireland (state). Also, several sport-specific flag variants are maintained here, and these are automatically used by the respective sport team templates:

  • {{fb|Ireland}} Ireland (football, 1882-1922)
  • {{cr|Ireland}} Ireland (cricket)
  • {{rl|Ireland}} Ireland (rugby league) — all-Ireland team that uses the tri-colour
  • {{fh|Ireland}} Ireland (field hockey)
  • {{ih|Ireland}} Ireland (ice hockey) — all-Ireland team that uses the tri-colour

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

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}}Republic of Ireland (Works, but better to use the standard country code for IRL.)
  • {{ru|IRE}} Ireland (Use [[Ireland national rugby union team|Ireland]] instead, as the flag used by the IRFU is non-free and cannot be used in this template)
  • {{cr|IRL}} Ireland (Use {{cr|IRE}} instead)
  • {{ru|IRL}} Ireland (Use {{ru|IRE}} instead)
  • {{fh|IRL}} Ireland (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  Connacht
Template:Country data Leinster  Leinster
Template:Country data Munster  Munster
Template:Country data Ulster  Ulster