Template:Ranking: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
|'''{{#ifexpr:{{{score2}}}={{{score3}}}|2nd|3rd}}'''||{{{player3|}}}{{#if:{{{country3|}}}|{{!}}{{!}}[[File:Flag of {{{country3}}}.png|25px|link=wikipedia:{{{country3}}}]]}}||{{{score3|}}} | |'''{{#ifexpr:{{{score2}}}={{{score3}}}|2nd|3rd}}'''||{{{player3|}}}{{#if:{{{country3|}}}|{{!}}{{!}}[[File:Flag of {{{country3}}}.png|25px|link=wikipedia:{{{country3}}}]]}}||{{{score3|}}} | ||
{{#if:{{{player4|}}}|{{!-}} | {{#if:{{{player4|}}}|{{!-}} | ||
{{!}}'''{{#ifexpr:{{{score3}}}={{{score4}}}| | {{!}}'''{{#ifexpr:{{{score3}}}={{{score4}}}|3rd|4th}}'''{{!}}{{!}}{{{player4|}}}{{#if:{{{country4|}}}|{{!}}{{!}}[[File:Flag of {{{country4}}}.png|25px|link=wikipedia:{{{country4}}}]]}}{{!}}{{!}}{{{score4|}}} | ||
}}{{#if:{{{player5|}}}|<nowiki/> | }}{{#if:{{{player5|}}}|<nowiki/> | ||
{{!-}} | {{!-}} |
Revision as of 20:59, March 5, 2025
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 12 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.
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= |player9= |country9= |score9= |player10= |country10= |score10= |player11= |country11= |score11= |player12= |country12= |score12= }}
Example
Entering the following values:
{{ranking |head= March tournament |player1 = Mario |country1 = USA |score1 = 310 |player2 = Luigi |country2 = USA |score2 = 309 |player3 = Peach |country3 = Japan |score3 = 309 |player4 = Bowser |country4 = Japan |score4 = 302 |player5 = Donkey Kong |country5 = UK |score5 = 300 }}
returns the following chart:
March tournament | |||
---|---|---|---|
1st | Mario | ![]() |
310 |
2nd | Luigi | ![]() |
309 |
2nd | Peach | ![]() |
309 |
4th | Bowser | ![]() |
302 |
5th | Donkey Kong | ![]() |
300 |