Template:Race ladder/sandbox: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{{{{|safesubst:}}}#invoke:Str2wikitable|main | ||
{{{{{|safesubst:}}}# | |header = Rank, Account name, Points | ||
</includeonly><noinclude>{{documentation}}</noinclude> | |link = nil, poe, nil | ||
|pattern = "rank":(%d*), "account":{"name":"(.-)", "points":(%d*) | |||
|string = {{{{{|safesubst:}}}#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}|}} | |||
}} <<noinclude />!-- Substituted from [template:Race ladder]. --></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 09:36, 21 July 2016
This is the template sandbox page for Template:Race ladder (diff).
This template helps creating tables for the top ranked racers.
Usage
In the source code of the page where the ladder is shown, copy/paste the string where the accounts are listed. If the string includes multiple braces, }}
, or other symbols that causes issues use <nowiki></nowiki>
.
{{Race ladder|<nowiki>string</nowiki>}}
Examples
The following code:
{{Race ladder|<nowiki> c.resetPaginator({"limit":20,"seasonId":"Winterheart Race Season","total":15000,"disableAccountNames":false,"entries":[{"account":{"name":"Krame_","challenges":{"total":8},"twitch":{"name":"krame_420"}},"points":2525,"rank":1},{"account":{"name":"bottlehead93","challenges":{"total":3}},"points":2100,"rank":2},{"account":{"name":"Tetoz","challenges":{"total":16},"twitch":{"name":"tetozlol"}},"points":1994,"rank":3},{"account":{"name":"pasta777","challenges":{"total":0},"twitch":{"name":"boon777"}},"points":1959,"rank":4},{"account":{"name":"Goratha","challenges":{"total":0},"twitch":{"name":"goratha"}},"points":1924,"rank":5},{"account":{"name":"Fightgarr","challenges":{"total":36}},"points":1825,"rank":6},{"account":{"name":"Robit","challenges":{"total":35},"twitch":{"name":"therobitlaser"}},"points":1789,"rank":7},{"account":{"name":"Steelmage","challenges":{"total":39},"twitch":{"name":"steelmage202"}},"points":1760,"rank":8},{"account":{"name":"D84","challenges":{"total":37}},"points":1748,"rank":9},{"account":{"name":"Cataract","challenges":{"total":25}},"points":1714,"rank":10},{"account":{"name":"Ghbeats","challenges":{"total":40},"twitch":{"name":"ghbeats"}},"points":1712,"rank":11},{"account":{"name":"feelgewd","challenges":{"total":24}},"points":1703,"rank":12},{"account":{"name":"Johnny_Annihilation","challenges":{"total":28},"twitch":{"name":"yor0"}},"points":1669,"rank":13},{"account":{"name":"MewsicalPulse","challenges":{"total":28},"twitch":{"name":"ilbistarz"}},"points":1637,"rank":14},{"account":{"name":"D_bak","challenges":{"total":40}},"points":1627,"rank":15},{"account":{"name":"Whirlwarian","challenges":{"total":32}},"points":1610,"rank":16},{"account":{"name":"Morsexier","challenges":{"total":2},"twitch":{"name":"morsrageng"}},"points":1587,"rank":17},{"account":{"name":"Karvarousku","challenges":{"total":36},"twitch":{"name":"karvarouskugaming"}},"points":1563,"rank":18},{"account":{"name":"Mirato","challenges":{"total":16}},"points":1557,"rank":19},{"account":{"name":"passofexhale","challenges":{"total":38},"twitch":{"name":"glaum"}},"points":1520,"rank":20}]}); </nowiki>}}
produces:
Rank | Account name | Points |
---|---|---|
1 | Krame_ | 2525 |
2 | bottlehead93 | 2100 |
3 | Tetoz | 1994 |
4 | pasta777 | 1959 |
5 | Goratha | 1924 |
6 | Fightgarr | 1825 |
7 | Robit | 1789 |
8 | Steelmage | 1760 |
9 | D84 | 1748 |
10 | Cataract | 1714 |
11 | Ghbeats | 1712 |
12 | feelgewd | 1703 |
13 | Johnny_Annihilation | 1669 |
14 | MewsicalPulse | 1637 |
15 | D_bak | 1627 |
16 | Whirlwarian | 1610 |
17 | Morsexier | 1587 |
18 | Karvarousku | 1563 |
19 | Mirato | 1557 |
20 | passofexhale | 1520 |
The above documentation is transcluded from Template:Race ladder/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.