Jump to content

Template:Rugby squad indented/doc

From Wikipedia, the free encyclopedia

Purpose

[edit]

This template is used to display rugby squad indented lists. A combination of padding, line spacing and indentation may be applied to present lists of players by position in the squad. The default style is a hanging indent whereby each rugby position juts out to the left with a corresponding list of players indented below.

The general method to achieve this is to first indent all items (move them right to have some margin on the left to work with) and then use the {{rsi}} template to apply a negative indent to the positions as required.

Usage

[edit]

Basic use:

or

  • {{rsi|text|pad-indent}}

For example:

  • {{rsi|Prop}} will display Prop with default padding-left:1em; text-indent:–1em
  • {{rsi|Prop|2em}} will display Prop with style padding-left:2em; text-indent:–2em.

The two unnamed parameters are:

1 text – the rugby position (or pseudo heading, etc.) to be displayed above a list of players in the rugby squad.
2 pad-indent – (optional) to set padding and indent of an equal and opposite amount.

Named parameters may optionally be used for more customised styling – see details below.

Description and parameters

[edit]

This template is used to display rugby squad player lists using a hanging indent style for each rugby position with a corresponding list of players indented below.

Template parameters

ParameterDescriptionTypeStatus
text1

the rugby position to be displayed above a list of players in the squad

Stringrequired
pad-indent2

used to apply padding and indent of an equal and opposite amount

Default
1em
Example
setting this to 2.5em will style: "padding-left:2.5em;text-indent:–2.5em;"
Stringoptional
padding-leftpl

optional named parameter for customised styling of: padding-left

Default
1em
Example
pl=2em
Stringoptional
text-indentti

optional named parameter for customised styling of: text-indent, typically set to the negative of the value used for padding-left

Default
-1em
Example
ti=-2em
Stringoptional
font-weightfw

optional named parameter for customised styling of: font-weight

Default
bold
Example
fw=normal
Stringoptional
line-heightlh

optional named parameter for customised styling of: line-height

Default
2.5
Example
lh=2
Stringoptional

Examples

[edit]

Basic case

[edit]

Using the various parameters to indent rugby positions within an unordered list (see the markup below):

Display

Hooker
Prop
Backrow
Backrow

Markup

{| class="wikitable"
|
{{rsi| Hooker }}
* [[Nathan Vella]]
{{rsi| Prop |2em}}
* [[Conán O'Donnell]]
{{rsi| Backrow |pl=4em|ti=-2.6em}}
* [[Rahboni Warren-Vosayaco]]
{{rsi| Backrow |pl=6em|ti=-2.6em}}
* [[Rahboni Warren-Vosayaco]]
|}

A sample squad

[edit]

A somewhat more complete example is shown below, as might be used for a rugby squad (see also the markup at the bottom). The squad of players is displayed in two columns (for forwards and backs).

  • A narrow 0.6em hanging indent is used for each rugby position.
  • Players are presented in plainlist form with flags to indicate their national union under WR eligibility.
  • A notelist-ua section is placed at the bottom of the right column. Upper alpha is preferred to avoid confusion with backlinks.
  • Images may be added which display to the right on large screens and wrap below the squad for small screens.

Display

Melbourne Sunwolves squad [A]
Bold denotes player is internationally capped. (c) Denotes team captain. 1 denotes marquee player.

Backrower Michael Leitch in 2018.

Scrum-half Fumiaki Tanaka

Markup

{| class="wikitable floatleft" style="margin:0.1em 1.5em 1.5em 0; font-size:90%; width:70%; max-width:64em;"
|-
! colspan="100%"|Melbourne Sunwolves squad{{hair space}}{{efn-ua|group=Squad|The Melbourne Sunwolves initial wider squad was named in late January 2019.{{fakeref|1}}}}
|- style="line-height:0;font-size:85%;"
|style="padding:0;width:50%;"| ||style="padding:0;width:50%;"|
|- class="plainlist wraplinks" style="vertical-align:top; text-indent:0.6em;"
|
{{rsi| Prop }}
* {{flagicon|IRE|rugby union}} [[Conán O'Donnell]]
* {{flagicon|NZL}} [[Sam Prattley]]
* {{flagicon|RSA}} [[Hencus van Wyk]]
{{rsi| Backrow }}
* {{flagicon|AUS}} [[Angus Cottrell]]
* {{flagicon|AUS}} [[Ben Gunter]]
* {{flagicon|AUS}} '''[[Richard Hardwick]]'''
* {{flagicon|JPN}} '''[[Michael Leitch]]'''
* {{flagicon|JPN}} '''[[Amanaki Mafi]]'''
* {{flagicon|AUS}} [[Ed Quirk (rugby union)|Ed Quirk]]
|
{{rsi| Scrum-half }}
* {{flagicon|NZL}} [[Jamie Booth]]
* {{flagicon|AUS}} '''[[Will Genia]]'''<sup>1</sup>
* {{flagicon|JPN}} [[Fumiaki Tanaka]]&nbsp;([[Captain (sports)|c]])
{{rsi| Wing }}
* {{flagicon|AUS}} '''[[Marika Koroibete]]'''<sup>1</sup>
* {{flagicon|FJI}} [[Semisi Masirewa]]
<br><hr>'''Notes:'''
<div style{{=}}'padding-left:1.3em'>{{notelist-ua|group="Squad"|refs=}}</div>
|-
| colspan="100%" style="font-size:85%; text-align:center"| '''Bold''' denotes player is internationally capped. ([[Captain (sports)|c]]) Denotes team captain. <sup>1</sup> denotes marquee player.
|}
{| style="float:left; margin:0.1em 0.5em 1.5em 0; border:1px solid #bbb; background-color:#f8f9fa;"
|- style="font-size:85%; padding:5px 1px;"
| style="vertical-align: top;" |[[File:Michael Leitch 2018.jpg<!--
  -->|190px]]<br />Backrower [[Michael Leitch]] in 2018.
|}
{| style="float:left; margin:0.1em 0.5em 1.5em 0; border:1px solid #bbb; background-color:#f8f9fa;"
|- style="font-size:85%; padding:5px 1px;"
| style="vertical-align: top;" |[[File:Tanaka Fumiaki 2018.jpg<!--
  -->|190px]]<br />Scrum-half [[Fumiaki Tanaka]]
|}