Template:Fs player: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
| style="text-align: right;" | {{#if:{{{nation|}}}|{{team flag|{{{nation}}}|flag}}|{{{nat|}}} }}
| style="text-align: right;" | {{#if:{{{nation|}}}|{{team flag|{{{nation}}}|flag}}|{{{nat|}}} }}
| style="text-align: center;" | {{#ifeq:{{{pos|}}}|MF|[[wikipedia:Midfielder|MF]]| {{#ifeq:{{{pos|}}}|DF|[[wikipedia:Defender (association football)|DF]]| {{#ifeq:{{{pos|}}}|FW|[[wikipedia:Forward (association football)|FW]]| {{#ifeq:{{{pos|}}}|GK|[[wikipedia:Goalkeeper (association football)|GK]]| }} }} }} }}
| style="text-align: center;" | {{#ifeq:{{{pos|}}}|MF|[[wikipedia:Midfielder|MF]]| {{#ifeq:{{{pos|}}}|DF|[[wikipedia:Defender (association football)|DF]]| {{#ifeq:{{{pos|}}}|FW|[[wikipedia:Forward (association football)|FW]]| {{#ifeq:{{{pos|}}}|GK|[[wikipedia:Goalkeeper (association football)|GK]]| }} }} }} }}
|<span class="fn">{{{name}}}{{{ref|}}}</span> {{#if:{{{other| }}}|<small>''({{{other}}})''</small>}}<noinclude>[[Category:Football templates]]</noinclude>
|<span class="fn">{{{name}}}{{{ref|}}}</span> {{#if:{{{other| }}}|<small>''({{{other}}})''</small>}}
|{{#if:{{{age|}}}|style="text-align: right;" {{!}} {{{age}}}| }}<noinclude>
{{documentation}} [[Category:Football templates]]</noinclude>

Latest revision as of 22:46, 16 December 2020

|- class="vcard agent" | style="text-align: right;" | | style="text-align: right;" | | style="text-align: center;" | |{{{name}}} |

[edit] [purge] Template documentation

Usage

Template:Fs start, Template:Fs player, Template:Fs mid and Template:Fs end are designed to be used together to format a detailed squad list for association football club teams.

{{fs start|age=}}
{{fs player|no= |nation= |pos= |name= |other= |age= }}
{{fs mid|age=}}
{{fs end}}

Parameter notes

age
When used with fs start and fs mid, specifically entered as |age=y, allows for an extra column to be added to the table headers for players' ages.
When used with fs player, gives an option to manually input the age of a player.
nation
Relies on Template:Team flag to display the flag of the player's nationality, therefore only requires the nation's name to be entered. Alternatively, use |nat= instead for an option to enter a flag image manually.
pos
Playing position, requires specific English-language abbreviations to be entered to produce wikilinks: GK for goalkeepers, DF for defenders, MF for midfielders and FW for forwards.
other
Optional parameter. Inserts a parenthesised detail after a player's name; primarily used for details such as specifying the team captain or noting that a player is on loan.

Example

{{fs start}}
{{fs player |no=1 |nation=Floria |pos=GK |name=Eddie Examplé |other=captain}}
{{fs mid|age=y}}
{{fs player |no=2 |nat=[[File:Etourney flag.png|23px|border|Etourney]] |pos=DF |name=Examplinho |age=22}}
{{fs end}}

produces the following:

Note: Flags indicate national team as has been defined under FMF eligibility rules. Players may hold more than one non-FMF nationality.

No. Position Player
1 Floria GK Eddie Examplé (captain)
No. Position Player Age
2 Etourney DF Examplinho 22