Template:Ranking

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 18:43, March 5, 2025 by Koopa con Carne (talk | contribs) (Created page with "<noinclude><!--</noinclude>{| class="wikitable" style="float:left" {{#if:{{{head|}}}| !colspan={{#if:{{{country1|}}}|4|3}}{{!}}{{{head}}} {{!}}style="background-color:white;border-bottom-color:transparent;border-right-color:transparent;border-top-color:transparent"{{!}}}} |- |'''1st||{{{player1|}}}{{#if:{{{country1|}}}|{{!}}{{!}}[[File:Flag of {{{country1}}}.png|25px|link=wikipedia:{{{country1}}}]]}}||{{{score1|}}} |style="background-color:white;border-bottom-color:trans...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

With this template, you can create a ranking chart for players in a competition. The chart is flexible, repositioning itself relative to neighboring charts to fit within your screen or window. The template allows you to add up to 8 players, each listed with their name and score. Optionally, you can enter a country for each player, which returns a flag of that country that links to the country's Wikipedia article. There is also an optional "head" parameter which allows you to type out a header for the entire chart.

If two or more players have identical scores, they will share the same ranking (i.e. "1st", "2nd", 3rd" etc.)

Full syntax

{{ranking
|head=
|player1=
|country1=
|score1=
|player2=
|country2=
|score2=
|player3=
|country3=
|score3=
|player4=
|country4=
|score4=
|player5=
|country5=
|score5=
|player6=
|country6=
|score6=
|player7=
|country7=
|score7=
|player8=
|country8=
|score8=
}}

Example

Entering the following values:

{{ranking
|head= March tournament

|player1 = Mario
|country1 = USA
|score1 = 310

|player2 = Luigi
|country2 = USA
|score2 = 298

|player3 = Peach
|country3 = UK
|score3 = 298

|player4 = Bowser
|country4 = 143
|score4 = UK
}}

returns the following chart:

March tournament
1st Mario USA 310
2nd Luigi USA 298
2nd Peach UK 298
4th Bowser UK 143