Template:PRstart

From Liquipedia Smash Wiki
Jump to: navigation, search

Documentation (view - edit)

Encapsulated start of Power Ranking table.

It adds the page to the Category: Power Rankings.

Parameters:

|title=
The title is displayed on top of the table.
|flag=
(Optional) If not blank, adds a « Flag » column. Might not be relevant in the case of a local Power Ranking.
|score=
(Optional) If not blank, adds a « Score » column. Might not be relevant if the Power Ranking is not completely methodic.
|score_right=
(Optional) If not blank, aligns the « Score » column text to the right. Might not be relevant if the scores are not regularly-formatted numeric values.
|diff=
(Optional) If not blank, adds a « ± » column to display the variations with respect to the previous Power Ranking. Might not be relevant if the Power Ranking is the first of the series.
|game=
(Optional) If not blank, defines the « tournament_game » variable for the rest of the page. The variable is then used to display the relevant head icons.
|newcolor=
(Optional) If not blank, defines the color for « NEW » values in the « ± » column. Might not be relevant if « NEW » means an improvement.
|smw=
(Optional) If not blank, stores the players entries as subproperties of the page. Might not be relevant if the entries are never to be requested later.
|pr_series=
(Optional) If not blank, stores the series which this PR is a part of in the subproperties of the page. Requires smw to be set.
|last=
(Optional) If not blank, sets the Power Ranking as the last of the series. Might not be relevant if there are more up to date Power Rankings in the series.
|extra=
(Optional) If not blank, adds the «,» separated values as titles of new columns. Might not be relevant if all needed information is already in the table.
|extrastyle=
(Optional) If not blank, adds the «,» separated values as style for the cells of the new columns. Might not be relevant if extra information does not need specific
|date=
(Optional) If not blank, adds a hidden date. Useful for SMW sorting.
|showdate=
(Optional) If not blank, shows the date.

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.