Template:Rugby squad player/doc: Difference between revisions
mNo edit summary |
No edit summary |
||
(13 intermediate revisions by 11 users not shown) | |||
Line 10: | Line 10: | ||
<nowiki>{{Rugby squad start}}</nowiki> |
<nowiki>{{Rugby squad start}}</nowiki> |
||
<nowiki><!-- For help using the below template, please see [[Template:Rugby squad player]] --></nowiki> |
<nowiki><!-- For help using the below template, please see [[Template:Rugby squad player]] --></nowiki> |
||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}}</nowiki> |
|||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|other=#OTHER_RELATED_INFO}}</nowiki> |
|||
'''...''' |
'''...''' |
||
<nowiki>{{Rugby squad mid}}</nowiki> |
<nowiki>{{Rugby squad mid}}</nowiki> |
||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}}</nowiki> |
|||
'''...''' |
'''...''' |
||
<nowiki>{{Rugby squad end}}</nowiki> |
<nowiki>{{Rugby squad end}}</nowiki> |
||
Line 21: | Line 21: | ||
<nowiki>{{Rugby squad start}}</nowiki> |
<nowiki>{{Rugby squad start}}</nowiki> |
||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}}</nowiki> |
|||
'''...''' |
'''...''' |
||
<nowiki>{{Rugby squad end}}</nowiki> |
<nowiki>{{Rugby squad end}}</nowiki> |
||
Line 28: | Line 28: | ||
<nowiki>{{Rugby squad start|notes=yes}}</nowiki> |
<nowiki>{{Rugby squad start|notes=yes}}</nowiki> |
||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|notes=#NOTES}}</nowiki> |
|||
'''...''' |
'''...''' |
||
<nowiki>{{Rugby squad mid|notes=yes}}</nowiki> |
<nowiki>{{Rugby squad mid|notes=yes}}</nowiki> |
||
<nowiki>{{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|notes=#NOTES}}</nowiki> |
|||
<nowiki>{{Rugby squad end}}</nowiki> |
<nowiki>{{Rugby squad end}}</nowiki> |
||
Line 67: | Line 67: | ||
=== Parameters === |
=== Parameters === |
||
* '''nat''': The player's nationality. Use the name of the country, or its 3-letter [[List of IOC country codes|IOC country code]], rather than an adjective (e.g. "Spain" or "ESP" instead of "Spanish" |
* '''nat''': The player's nationality. Use the name of the country, or its 3-letter [[List of IOC country codes|IOC country code]], rather than an adjective (e.g. "Spain" or "ESP" instead of "Spanish". "Spanish" will not work). Use the country that the player represents in international rugby union. |
||
* '''pos''': The position in which the player plays. You can use any of the |
* '''pos''': The position in which the player plays. You can use any of the options below: |
||
* |
** '''PR''' for {{Rugby squad role|PR}}; |
||
* |
** '''HK''' for {{Rugby squad role|HK}}; |
||
* |
** '''LK''' for {{Rugby squad role|LK}}; |
||
* |
** '''SR''' for {{Rugby squad role|SR}}; |
||
* |
** '''BR''' for {{Rugby squad role|BR}}; |
||
* |
** '''FL''' for {{Rugby squad role|FL}}; |
||
* |
** '''N8''' for {{Rugby squad role|N8}}; |
||
* |
** '''SH''' for {{Rugby squad role|SH}}; |
||
* |
** '''FH''' for {{Rugby squad role|FH}}; |
||
* |
** '''OH''' for {{Rugby squad role|OH}}; |
||
* |
** '''CE''' for {{Rugby squad role|CE}}; |
||
* |
** '''WG''' for {{Rugby squad role|WG}}; |
||
* |
** '''FB''' for {{Rugby squad role|FB}}. |
||
** Additional valid position abbreviations can be seen at [[Template:Rugby squad role]] |
|||
*# '''FB''' for {{fullback|capital=yes}}. |
|||
* '''name''': The player's name. |
* '''name''': The player's name. |
||
* '''other''': This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in the brackets after the player name. You do not have to specify it if neither applies. |
* '''other''': This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in the brackets after the player name. You do not have to specify it if neither applies. |
||
* '''notes''': This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in a |
* '''notes''': This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in a separate column after the union. To use this column, you must also specify its use in the {{tl|Rugby squad mid}} and {{tl|Rugby squad start}} templates like this: <nowiki>{{Rugby squad mid|notes=yes}}</nowiki> and <nowiki>{{Rugby squad start|notes=yes}}</nowiki>. You do not have to specify it if neither applies. |
||
==Tracking categories== |
|||
* {{clc|Rugby template needing maintenance}} |
|||
== Microformat == |
== Microformat == |
||
{{UF-hcard-name}} |
{{UF-hcard-name}} |
||
<includeonly> |
<includeonly>{{Sandbox other|| |
||
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --> |
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --> |
||
[[Category:Sports squad templates]] |
|||
[[Category:Rugby union templates|Player]] |
|||
</includeonly> |
}}</includeonly> |
Latest revision as of 15:47, 27 September 2023
This is a documentation subpage for Template:Rugby squad player. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template is used to display a rugby union player squad in a standard format.
Syntax
[edit]Most squads are split into two vertical columns. For these, you can use the {{Rugby squad start}}, {{Rugby squad mid}} and {{Rugby squad end}} templates to help with the layouting, and then use this template repeatedly within them:
{{Rugby squad start}} <!-- For help using the below template, please see [[Template:Rugby squad player]] --> {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}} {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|other=#OTHER_RELATED_INFO}} ... {{Rugby squad mid}} {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}} ... {{Rugby squad end}}
Alternatively, if you just want a single column, you can omit the use of {{Rugby squad mid}}.
{{Rugby squad start}} {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE}} ... {{Rugby squad end}}
If you just want to add Notes to the table, such as for the teams from which regional players are sourced, you can use the notes parameter.
{{Rugby squad start|notes=yes}} {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|notes=#NOTES}} ... {{Rugby squad mid|notes=yes}} {{Rugby squad player|name=#PLAYER_NAME|nat=#NATIONALITY|pos=#POS_OR_ROLE|notes=#NOTES}} {{Rugby squad end}}
Example
[edit]For example, the following code:
{{Rugby squad start}} {{rugby squad player | nat=IRE | natvar=rugby union | pos=HK | name=[[Brian Blaney]] }} {{rugby squad player | nat=ENG | pos=HK | name=[[James Buckland]] }} {{rugby squad player | nat=Zimbabwe| pos=HK | name=[[David Paice]] }} {{rugby squad player | nat=HKG| pos=PR | name=[[Alex Corbisiero]] }} {{rugby squad player | nat=NZL | pos=PR | name=[[Clarke Dermody]] |other=[[Captain (sports)|c]] }} {{Rugby squad mid|notes=yes}} {{rugby squad player | nat=SAM | pos=WG | name=[[Sailosi Tagicakibau]] }} {{rugby squad player | nat=Niger| pos=WG | name=[[Adam Thompstone]] }} {{rugby squad player | nat=CVI| pos=FB | name=[[Delon Armitage]] }} {{rugby squad player | nat=CAM| pos=FB | name=[[Jamie Lennard]] |other= on loan}} {{Rugby squad end}}
Produces this table: Note: Flags indicate national union under World Rugby eligibility rules. Players may hold more than one non-World Rugby nationality.
|
|
Parameters
[edit]- nat: The player's nationality. Use the name of the country, or its 3-letter IOC country code, rather than an adjective (e.g. "Spain" or "ESP" instead of "Spanish". "Spanish" will not work). Use the country that the player represents in international rugby union.
- pos: The position in which the player plays. You can use any of the options below:
- PR for Prop;
- HK for Hooker;
- LK for Lock;
- SR for Second row;
- BR for Back row;
- FL for Flanker;
- N8 for Number 8;
- SH for Scrum-half;
- FH for Fly-half;
- OH for Outside-half;
- CE for Centre;
- WG for Wing;
- FB for Fullback.
- Additional valid position abbreviations can be seen at Template:Rugby squad role
- name: The player's name.
- other: This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in the brackets after the player name. You do not have to specify it if neither applies.
- notes: This is an optional parameter. You can add any related info to this parameter, like specifying captain, vice-captain, whether the player is on loan, etc. It will show additional info in a separate column after the union. To use this column, you must also specify its use in the {{Rugby squad mid}} and {{Rugby squad start}} templates like this: {{Rugby squad mid|notes=yes}} and {{Rugby squad start|notes=yes}}. You do not have to specify it if neither applies.
Tracking categories
[edit]Microformat
[edit]The HTML markup produced by this template includes an hCard microformat, which makes the person's name parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
To include a URL, use {{URL}}.
Classes
[edit]The hCard in this template uses at least some of these HTML classes:
- agent
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- n
- nickname
- org
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.