Difference between revisions of "Template:Fs2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 2 users not shown)
Line 46: Line 46:
 
:{{Fs2 player | format=navbox | |no=6 |nat=Brazil  |pos=DF|first=Jadson|last=Viera Castro|shortname=Jadson|name=Jadson| other= }}
 
:{{Fs2 player | format=navbox | |no=6 |nat=Brazil  |pos=DF|first=Jadson|last=Viera Castro|shortname=Jadson|name=Jadson| other= }}
  
====Example #5 Other comment====
+
====Example #5 Name without link====
 +
* '''Code:'''
 +
:<code><nowiki>{{Fs player2 sort | format=table | no=14 | nat=France | pos=FW | first=Thierry | last=Henry |nolink=1}}</nowiki></code>
 +
* Table output (format=table):
 +
:{|
 +
{{Fs player2 sort | format=table | no=14 | nat=France | pos=FW | first=Thierry | last=Henry |nolink=1}}
 +
|}
 +
 
 +
====Example #6 Other comment====
 
* '''Code:'''  
 
* '''Code:'''  
 
:<code><nowiki>{{fs2 player | format=table | no=8 | nat=England | pos=MF | first=Steven | last=Gerrard | link= | other=captain }}</nowiki></code>
 
:<code><nowiki>{{fs2 player | format=table | no=8 | nat=England | pos=MF | first=Steven | last=Gerrard | link= | other=captain }}</nowiki></code>
Line 65: Line 73:
 
* '''pos''': The position in which the player plays. You can use any of the four options below:
 
* '''pos''': The position in which the player plays. You can use any of the four options below:
 
*# '''GK''' for [[Goalkeeper (association football)|Goalkeeper]];
 
*# '''GK''' for [[Goalkeeper (association football)|Goalkeeper]];
*# '''DF''' for [[Defender (football)|Defender]];
+
*# '''DF''' for [[Defender (association football)|Defender]];
 
*# '''MF''' for [[Midfielder]];
 
*# '''MF''' for [[Midfielder]];
 
*# '''FW''' for [[Forward (association football)#Striker|Striker]] or Forward;
 
*# '''FW''' for [[Forward (association football)#Striker|Striker]] or Forward;
Line 78: Line 86:
  
 
* '''name''': This is an optional parameter. It can be used to display Brazilian player nicknames in the squad table display.
 
* '''name''': This is an optional parameter. It can be used to display Brazilian player nicknames in the squad table display.
 +
 +
* '''nolink''': This is an optional parameter. It removes the link from a players name and is meant for rosters with un-capped players (who fail [[WP:NFOOTBALL]]). To activate it, use <nowiki>|nolink=1</nowiki>
  
 
* '''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 parentheses after the player 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 parentheses after the player name.
Line 87: Line 97:
 
* [[:Template:Fs2 player]]
 
* [[:Template:Fs2 player]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:football squad templates]]
 
[[Category:football squad templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 05:15, 25 April 2020

Usage

This is a combined version of Template:Football squad player and the standard football squad navbox which can be made to display either. It is used in conjunction with Template:Fs2 player. For instructions on usage see below.

Example #1: Basic Link

  • Code:
{{fs2 player | format=table | no=14 | nat=France | pos=FW | first=Thierry | last=Henry | link= | other=}}
  • Table output (format=table):
14  France FW Thierry Henry
  • Navigation box output (format=navbox):

Example #2: Disambiguated link

  • Code:
{{fs2 player | format=table | no=27 | nat=England | pos=DF | first=Steven | last=Taylor | link=Steven Taylor (footballer) | other= }}
  • Table output (format=table):
27  England DF Steven Taylor
  • Navigation box output (format=navbox):

Example #3 Shortname link (in navbox)

  • Code:
{{Fs2 player|format={{{format|navbox}}}|no=6 |nat=Brazil |pos=DF|first=Jadson|last=Viera Castro|shortname=Jadson}}
  • Table output (format=table):
6  Brazil DF Jadson Viera Castro
  • Navigation box output (format=navbox):

Example #4 Shortname link (in navbox and table)

  • Code:
{{Fs2 player|format={{{format|navbox}}}|no=6 |nat=Brazil |pos=DF|first=Jadson|last=Viera Castro|shortname=Jadson|name=Jadson}}
  • Table output (format=table):
6  Brazil DF Jadson
  • Navigation box output (format=navbox):

Example #5 Name without link

  • Code:
{{Fs player2 sort | format=table | no=14 | nat=France | pos=FW | first=Thierry | last=Henry |nolink=1}}
  • Table output (format=table):
14 Forward Thierry Henry  France

Example #6 Other comment

  • Code:
{{fs2 player | format=table | no=8 | nat=England | pos=MF | first=Steven | last=Gerrard | link= | other=captain }}
  • Table output (format=table):
8  England MF Steven Gerrard (captain)
  • Navigation box output (format=navbox):

Parameters

  • format: should be either table (for inclusion on team page) or navbox (for inclusion at bottom of player page).
  • no: The shirt number for the player, if they have one. If the player's number is not known, or unassigned, then you can use the character instead.
  • 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" instead of "Spanish"). This is usually the country of the player's birth; however, if a player has dual nationality then use the country that he represents in international football. The nationality is displayed using the country's flag via Template:Flagicon.
  • first: The player's first name (can also include a middle name if desired). When format=table, the first and last name are shown.
  • last: The player's last name. When format=navbox, only the last name is shown.
  • shortname: This is an optional parameter. It can be used to display disambiguated names or Brazilian player nicknames in the navbox display. (Examples: A. Cole, Lucas, etc.)
  • name: This is an optional parameter. It can be used to display Brazilian player nicknames in the squad table display.
  • nolink: This is an optional parameter. It removes the link from a players name and is meant for rosters with un-capped players (who fail WP:NFOOTBALL). To activate it, use |nolink=1
  • 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 parentheses after the player name.

See also