Difference between revisions of "Template:Football squad start/sandbox"
imported>Tholme |
imported>Number 57 (Test) |
||
Line 1: | Line 1: | ||
− | <templatestyles src="Template:Football squad player | + | <templatestyles src="Template:Football squad player/styles.css" /> |
{{#if:{{{hidenote|}}}||<small>Note: Flags indicate national team as defined under [[FIFA eligibility rules]]. Players may hold more than one non-FIFA nationality.</small>}} | {{#if:{{{hidenote|}}}||<small>Note: Flags indicate national team as defined under [[FIFA eligibility rules]]. Players may hold more than one non-FIFA nationality.</small>}} | ||
− | {| class="wikitable | + | {| border="0" |
+ | |- | ||
+ | | style="background-color:#FFFFFF;vertical-align:top;"| | ||
+ | {| class="wikitable football-squad {{{class|nogrid}}}" style="display:inline-table;" | ||
|+{{{squad|{{{team|}}}}}} | |+{{{squad|{{{team|}}}}}} | ||
{{#if:{{{nonumber|}}}|| | {{#if:{{{nonumber|}}}|| |
Latest revision as of 20:13, 21 August 2020
Note: Flags indicate national team as defined under FIFA eligibility rules. Players may hold more than one non-FIFA nationality.
ContentsUsageThis template is used to display a football (soccer) player squad in a standard format. SyntaxMost squads are split into two vertical columns. For these, you can use the {{Football squad start}}, {{Football squad mid}} and {{Football squad end}} templates to help with the layouting, and then use this template repeatedly within them: {{Football squad start}} <!-- For help using the below template, please see [[Template talk:Football squad player]] --> {{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME}} {{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME|other=#OTHER_RELATED_INFO}} ... {{Football squad mid}} {{Football squad player|no=11|nat=ITA|pos=FW|name=[[Gioacchini Simone]]}} ... {{Football squad end}} Alternatively, if you just want a single column, you can use {{football squad blank column}} to fill in a blank right hand column. {{football squad start}} {{Football squad player|no=#SHIRT_NUMBER|nat=#NATIONALITY|pos=#POS_OR_ROLE|name=#PLAYER_NAME}} ... {{football squad blank column}} {{Football squad end}} Alternative template namesIn order to make easier the work of writing new squads, some alternative, shorter, names has been designed. So, you may now use {{Fs start}}, {{Fs mid}}, {{Fs player}}, {{Fs end}} and {{Fs blank column}} as alternative templates, using the same equivalent syntax of the other ones. Parameters
ExampleFor example, the following code: {{Football squad start}} {{football squad player | no=1 | nat=Spain | pos=GK | name=[[Iker Casillas]]}} {{football squad player | no=3 | nat=ESP | pos=DF | name=[[Gerard Pique]]}} {{football squad player | no=9 | nat=Singapore | pos=FW | name=[[Aleksandar Đurić]] | other=team captain}} {{football squad player | no=10 | nat=NED| pos=FW | name=[[Robin Van Persie]]}} {{football squad mid}} {{football squad player | no=13 | nat=South Korea| pos=MF | name=[[Park Ji-sung]]}} {{football squad player | no=25 | nat=ENG | pos=GK | name=[[Joe Hart]]}} {{football squad player | no=1 | nat=Spain | natvar=1931 | pos=GK | name=[[Ricardo Zamora]]}} {{football squad player | no= | nat=HUN | natvar=1949 | pos=FW | name=[[Ferenc Puskas]]}} {{football squad player | no=42 | nat= | natvar= | pos=FW | name=[[Arthur Dent]]}} {{football squad end}} Produces this table: Note: Flags indicate national team as defined under FIFA eligibility rules. Players may hold more than one non-FIFA nationality.
MicroformatTemplateDataThis is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Football squad start This template starts a football squad table. It is intended to be followed by the template "Football squad player". It has no parameters.
|