Template:PRplayer

From Liquipedia Smash Wiki

Documentation (view - edit)

Encapsulated entry for Power Ranking table.

It also sets the corresponding SMW subobject if activated in Template:PRstart.

Parameters:

|1=
The tag of the player. It is used as a link.
|rank=
The rank of the player.
|chars=
The list of the characters played, separated with «,».
|flag=
(Optional) If not blank, adds the corresponding flag for the player. The column must be activated in PRstart.
|score=
(Optional) If not blank, adds the score for the player. The column must be activated in PRstart.
|diff=
(Optional) If not blank, adds the corresponding variation for the player. The column must be activated in PRstart. Null variation (0) will be colored in grey (F0F0F0), negative variation will be colored in red (FDDDE6) and positive variation will be colored in green (cfc). The « NEW » variation will also be colored in green unless newcolor is set in PRstart.
|extra=
(Optional) If not blank, adds the «,» separated values as new cells. The columns must be set activated in PRstart. Style for the extra column can also be set in PRstart.
|smwplayer=
(Optional) If not blank, overrides the SMW tag for this player with the tag listed in this parameter.


See also:

Examples:

Minimal example
Player
1 John Donkey Kong
2 Paul Falco
3 George
{{PRstart|title=Minimal example}}
{{PRplayer|John|rank=1|chars=dk}}
{{PRplayer|Paul|rank=2|chars=falco}}
{{PRplayer|George|rank=3|chars=}}
{{PRend}}
More complete example
Player Score ±
1 England Paul Falco Fox 41,975 1
2 England John Donkey Kong 16,422 -1
3 England George 3,363 0
4 Ringo 0 9000NEW
{{PRstart|title=More complete example|flag=true|score=true|diff=true|smw=true|score_right=true}}
{{PRplayer|Paul|rank=1|chars=falco, fox|flag=en|score=41,975|diff=1}}
{{PRplayer|John|rank=2|chars=dk|flag=en|score=16,422|diff=-1}}
{{PRplayer|George|rank=3|chars=|flag=en|score=3,363|diff=0}}
{{PRplayer|Ringo|rank=4|chars=|flag=|score=0|diff=NEW}}
{{PRend}}
Full example
Player Score ± Birth year
1 England Paul Falco Fox 41,975 1 1942 true
2 England John Donkey Kong 16,422 -1 1940
3 England George 3,363 0 1943
4 Ringo 0 9000NEW 1940 true
{{PRstart|title=Full example|flag=true|score=true|diff=true|smw=true|score_right=true|game=pm|newcolor=a0b7da|last=true|extra=Birth year, |extrastyle=text-align:right;, }}
{{PRplayer|Paul|rank=1|chars=falco, fox|flag=en|score=41,975|diff=1|extra=1942, {{win}}{{HiddenSort|true}}}}
{{PRplayer|John|rank=2|chars=dk|flag=en|score=16,422|diff=-1|extra=1940, }}
{{PRplayer|George|rank=3|chars=|flag=en|score=3,363|diff=0|extra=1943, }}
{{PRplayer|Ringo|rank=4|chars=|flag=|score=0|diff=NEW|extra=1940, {{win}}{{HiddenSort|true}}}}
{{PRend}}

George is ranked third according to the last example.

George is ranked '''{{OrdinalWritten/{{#ask:[[Has ranking page::PR_examples]] [[Has player page::George]] [[Is last::true]]
|?has rank=
|mainlabel=-
|link=none
}}}}''' according to the last example.