Difference between revisions of "Template:Fb ss2 player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Brayan Jaimes
imported>Vanisaac
m (→‎Only the required parameters: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{documentation subpage}}
 
===Description===
 
===Description===
 
This template is an alternative of {{tl|Fb ss player}}. To make the entire table is working, is necessary to put the templates in the following order:
 
This template is an alternative of {{tl|Fb ss player}}. To make the entire table is working, is necessary to put the templates in the following order:
Line 7: Line 8:
 
===Usage===
 
===Usage===
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
{{Fb ss2 player|n= |pos= |c= |p= |pl= |la= |lg= |ca= |cg= |ia= |ig= |pm= |yc= |rc= |u=}}
+
{{Fb ss2 player|n= |pos= |c= |cv= |p= |la= |lg= |ca= |cg= |ia= |ig= |pm= |yc= |rc= |u=}}
 
</pre>
 
</pre>
  
All parameters must be written, but it is no need to fill all they.
+
;n:Jersey number. '''Example''': 5
  
;n:Jersey number.
+
;pos:Position of the player, abbreviated. For the abbreviations, see {{tl|Fb position}}. '''Example''': GK
  
;pos:Position of the player (abbreviation). For the abbreviations, see {{tl|Fb position}}.
+
;c:Nationality (required). '''Example''': England. '''Another way''': ENG
  
;c:Nationality.
+
;cv:Flag variant. Use this for players of former countries or that played in a year in which the flag of their country was other than the actual. '''Example''': 1945
  
;cv:Flag variant (optional). Use this for players of former countries or that played in a year in which the flag of their country was other than the actual.
+
;p:Name of the player (required). For'''Example''': Radamel Falcao
 +
'''Note:''' For this list can be sorted according to last names, you should use the template [[Template:Sortname|Sortname]].
  
;p:Name of the player.
+
;la:League appearances (required). '''Example''': 10
  
;pl:Link of the player's article (optional). It is only neccesary if the name of the player's article is different to the player's name.
+
;lg:League goals (required). '''Example''': 4
  
;la:League appearances.
+
;ca:Cup appearances (required). '''Example''': 10
  
;lg:League goals.
+
;cg:Cup goals (required). '''Example''': 4
  
;ca:Cup appearances.
+
;ia:International cup appearances (required). '''Example''': 10
  
;cg:Cup goals.
+
;ig:International cup goals (required). '''Example''': 4
  
;ia:International cup appearances.
+
;pm:Played minutes, only league (required). '''Example''': 1800
  
;ig:International cup goals.
+
;yc:Yellow cards, only league (required). '''Example''': 4
  
;pm:Played minutes (only league).
+
;rc:Red cards, only league (required). '''Example''': 2
  
;yc:Yellow cards (only league).
+
;u:Date of update (required). Used to know what was the last game taken as a reference. For all the possible inputs, see {{tl|date table sorting}}. '''Example''': 10 February 2011
  
;rc:Red cards(only league).
+
===Example===
 +
====With all the parameters====
 +
<pre style="overflow:auto">
 +
{{Fb ss2 header}}
 +
{{Fb ss2 player|n=10 |pos=FW |c=Spain |cv=1945 |p={{sortname|Gabriel|Castillo}} |la=20 |lg=18 |ca=2 |cg=4 |ia=6 |ig=2 |pm=1790 |yc=2 |rc=1 |u=6 September 2013}}
 +
{{Fb ss2 footer}}
 +
</pre>
 +
 
 +
Result:
 +
{{Fb ss2 header}}
 +
{{Fb ss2 player|n=10 |pos=FW |c=Spain |cv=1945 |p={{sortname|Gabriel|Castillo}} |la=20 |lg=18 |ca=2 |cg=0 |ia=6 |ig=2 |pm=1690 |yc=2 |rc=1 |u=6 September 2013}}
 +
{{Fb ss2 footer}}
 +
 
 +
====Only the required parameters====
 +
<pre style="overflow:auto">
 +
{{Fb ss2 header}}
 +
{{Fb ss2 player|c=Faroe Islands |p=Þór  Stefansson |la=10 |lg=5 |ca=3 |cg=6 |ia=0 |ig=0 |pm=560 |yc=0 |rc=2 |u=6 September 2013}}
 +
{{Fb ss2 footer}}
 +
</pre>
  
;u:Date of update. Used to know what was the last game taken as a reference.
+
Result:
 +
{{Fb ss2 header}}
 +
{{Fb ss2 player|c=Faroe Islands |p=Þór  Stefansson |la=10 |lg=5 |ca=3 |cg=6 |ia=0 |ig=0 |pm=560 |yc=0 |rc=2 |u=6 September 2013}}
 +
{{Fb ss2 footer}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Fb templates|{{PAGENAME}}]]
 
[[Category:Fb templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:22, 25 April 2020

Description

This template is an alternative of {{Fb ss player}}. To make the entire table is working, is necessary to put the templates in the following order:

  1. {{Fb ss2 header}}
  2. {{Fb ss2 player}}
  3. {{Fb ss2 footer}}

Usage

{{Fb ss2 player|n= |pos= |c= |cv= |p= |la= |lg= |ca= |cg= |ia= |ig= |pm= |yc= |rc= |u=}}
n
Jersey number. Example: 5
pos
Position of the player, abbreviated. For the abbreviations, see {{Fb position}}. Example: GK
c
Nationality (required). Example: England. Another way: ENG
cv
Flag variant. Use this for players of former countries or that played in a year in which the flag of their country was other than the actual. Example: 1945
p
Name of the player (required). ForExample: Radamel Falcao

Note: For this list can be sorted according to last names, you should use the template Sortname.

la
League appearances (required). Example: 10
lg
League goals (required). Example: 4
ca
Cup appearances (required). Example: 10
cg
Cup goals (required). Example: 4
ia
International cup appearances (required). Example: 10
ig
International cup goals (required). Example: 4
pm
Played minutes, only league (required). Example: 1800
yc
Yellow cards, only league (required). Example: 4
rc
Red cards, only league (required). Example: 2
u
Date of update (required). Used to know what was the last game taken as a reference. For all the possible inputs, see {{date table sorting}}. Example: 10 February 2011

Example

With all the parameters

{{Fb ss2 header}}
{{Fb ss2 player|n=10 |pos=FW |c=Spain |cv=1945 |p={{sortname|Gabriel|Castillo}} |la=20 |lg=18 |ca=2 |cg=4 |ia=6 |ig=2 |pm=1790 |yc=2 |rc=1 |u=6 September 2013}}
{{Fb ss2 footer}}

Result:

No. Pos. Nat. Player LA LG CA CG IA IG TA TG PM Yellow card Red card Updated


Template:Nts FW File:Flag of Spain (1945–1977).svg Gabriel Castillo Template:Nts Template:Nts Template:Nts Template:Nts Template:Nts Template:Nts 28 20 Template:Nts Template:Nts Template:Nts 6 September 2013

International cup: International cup name required


Only the required parameters

{{Fb ss2 header}}
{{Fb ss2 player|c=Faroe Islands |p=Þór  Stefansson |la=10 |lg=5 |ca=3 |cg=6 |ia=0 |ig=0 |pm=560 |yc=0 |rc=2 |u=6 September 2013}}
{{Fb ss2 footer}}

Result:

No. Pos. Nat. Player LA LG CA CG IA IG TA TG PM Yellow card Red card Updated


23x15px Þór Stefansson Template:Nts Template:Nts Template:Nts Template:Nts Template:Nts Template:Nts 13 11 Template:Nts Template:Nts Template:Nts 6 September 2013

International cup: International cup name required