User:Lirion/Sandbox/Squad: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lirion (talk | contribs)
mNo edit summary
Lirion (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable sortable" border="2" style="border-color:#aaa;border-collapse:collapse;" cellspacing="0" cellpadding="2"
{| class="wikitable sortable" border="1" style="border-color:#aaa;border-collapse:collapse;" cellspacing="0" cellpadding="2"
|- style="background-color:#cdb;"
|- style="background-color:#cdb;"
!No. !! Pos. !! Nat. !! Name !! Matches
!No. !! Pos. !! Nat. !! Name !! Matches !! Ranking
|-
|-
{{#if: {{{1name|}}} |
{{#if: {{{1name|}}} |
Line 9: Line 9:
{{!!}}{{{1name}}}
{{!!}}{{{1name}}}
{{!!}}{{{1mtch|-}}}
{{!!}}{{{1mtch|-}}}
{{!!}}{{SortKey|{{{1rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{1rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{2name|}}} |
{{#if: {{{2name|}}} |
Line 16: Line 17:
{{!!}}{{{2name}}}
{{!!}}{{{2name}}}
{{!!}}{{{2mtch|-}}}
{{!!}}{{{2mtch|-}}}
{{!!}}{{SortKey|{{{2rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{2rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{3name|}}} |
{{#if: {{{3name|}}} |
Line 23: Line 25:
{{!!}}{{{3name}}}
{{!!}}{{{3name}}}
{{!!}}{{{3mtch|-}}}
{{!!}}{{{3mtch|-}}}
{{!!}}{{SortKey|{{{3rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{3rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{4name|}}} |
{{#if: {{{4name|}}} |
Line 30: Line 33:
{{!!}}{{{4name}}}
{{!!}}{{{4name}}}
{{!!}}{{{4mtch|-}}}
{{!!}}{{{4mtch|-}}}
{{!!}}{{SortKey|{{{4rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{4rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{5name|}}} |
{{#if: {{{5name|}}} |
Line 37: Line 41:
{{!!}}{{{5name}}}
{{!!}}{{{5name}}}
{{!!}}{{{5mtch|-}}}
{{!!}}{{{5mtch|-}}}
{{!!}}{{SortKey|{{{5rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{5rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{6name|}}} |
{{#if: {{{6name|}}} |
Line 44: Line 49:
{{!!}}{{{6name}}}
{{!!}}{{{6name}}}
{{!!}}{{{6mtch|-}}}
{{!!}}{{{6mtch|-}}}
{{!!}}{{SortKey|{{{6rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{6rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{7name|}}} |
{{#if: {{{7name|}}} |
Line 51: Line 57:
{{!!}}{{{7name}}}
{{!!}}{{{7name}}}
{{!!}}{{{7mtch|-}}}
{{!!}}{{{7mtch|-}}}
{{!!}}{{SortKey|{{{7rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{7rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{8name|}}} |
{{#if: {{{8name|}}} |
Line 58: Line 65:
{{!!}}{{{8name}}}
{{!!}}{{{8name}}}
{{!!}}{{{8mtch|-}}}
{{!!}}{{{8mtch|-}}}
{{!!}}{{SortKey|{{{8rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{8rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{9name|}}} |
{{#if: {{{9name|}}} |
Line 65: Line 73:
{{!!}}{{{9name}}}
{{!!}}{{{9name}}}
{{!!}}{{{9mtch|-}}}
{{!!}}{{{9mtch|-}}}
{{!!}}{{SortKey|{{{9rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{9rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{10name|}}} |
{{#if: {{{10name|}}} |
Line 72: Line 81:
{{!!}}{{{10name}}}
{{!!}}{{{10name}}}
{{!!}}{{{10mtch|-}}}
{{!!}}{{{10mtch|-}}}
{{!!}}{{SortKey|{{{10rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{10rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{11name|}}} |
{{#if: {{{11name|}}} |
Line 79: Line 89:
{{!!}}{{{11name}}}
{{!!}}{{{11name}}}
{{!!}}{{{11mtch|-}}}
{{!!}}{{{11mtch|-}}}
{{!!}}{{SortKey|{{{11rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{11rank}}}}}
{{!}}- |}}
{{#if: {{{12name|}}} |
{{!}}style="text-align:right;"{{!}}{{{12no|-}}}
{{!!}}{{{12pos|?}}}
{{!!}}{{ flagicon|{{{12nat|}}} }}
{{!!}}{{{12name}}}
{{!!}}{{{12mtch|-}}}
{{!!}}{{SortKey|{{{12rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{12rank}}}}}
{{!}}- |}}
{{#if: {{{13name|}}} |
{{!}}style="text-align:right;"{{!}}{{{13no|-}}}
{{!!}}{{{13pos|?}}}
{{!!}}{{ flagicon|{{{13nat|}}} }}
{{!!}}{{{13name}}}
{{!!}}{{{13mtch|-}}}
{{!!}}{{SortKey|{{{13rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{13rank}}}}}
{{!}}- |}}
{{#if: {{{14name|}}} |
{{!}}style="text-align:right;"{{!}}{{{14no|-}}}
{{!!}}{{{14pos|?}}}
{{!!}}{{ flagicon|{{{14nat|}}} }}
{{!!}}{{{14name}}}
{{!!}}{{{14mtch|-}}}
{{!!}}{{SortKey|{{{14rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{14rank}}}}}
{{!}}- |}}
{{#if: {{{15name|}}} |
{{!}}style="text-align:right;"{{!}}{{{15no|-}}}
{{!!}}{{{15pos|?}}}
{{!!}}{{ flagicon|{{{15nat|}}} }}
{{!!}}{{{15name}}}
{{!!}}{{{15mtch|-}}}
{{!!}}{{SortKey|{{{15rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{15rank}}}}}
{{!}}- |}}
{{#if: {{{16name|}}} |
{{!}}style="text-align:right;"{{!}}{{{16no|-}}}
{{!!}}{{{16pos|?}}}
{{!!}}{{ flagicon|{{{16nat|}}} }}
{{!!}}{{{16name}}}
{{!!}}{{{16mtch|-}}}
{{!!}}{{SortKey|{{{16rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{16rank}}}}}
{{!}}- |}}
{{#if: {{{17name|}}} |
{{!}}style="text-align:right;"{{!}}{{{17no|-}}}
{{!!}}{{{17pos|?}}}
{{!!}}{{ flagicon|{{{17nat|}}} }}
{{!!}}{{{17name}}}
{{!!}}{{{17mtch|-}}}
{{!!}}{{SortKey|{{{17rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{17rank}}}}}
{{!}}- |}}
{{#if: {{{18name|}}} |
{{!}}style="text-align:right;"{{!}}{{{18no|-}}}
{{!!}}{{{18pos|?}}}
{{!!}}{{ flagicon|{{{18nat|}}} }}
{{!!}}{{{18name}}}
{{!!}}{{{18mtch|-}}}
{{!!}}{{SortKey|{{{18rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{18rank}}}}}
{{!}}- |}}
{{#if: {{{19name|}}} |
{{!}}style="text-align:right;"{{!}}{{{19no|-}}}
{{!!}}{{{19pos|?}}}
{{!!}}{{ flagicon|{{{19nat|}}} }}
{{!!}}{{{19name}}}
{{!!}}{{{19mtch|-}}}
{{!!}}{{SortKey|{{{19rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{19rank}}}}}
{{!}}- |}}
{{#if: {{{20name|}}} |
{{!}}style="text-align:right;"{{!}}{{{20no|-}}}
{{!!}}{{{20pos|?}}}
{{!!}}{{ flagicon|{{{20nat|}}} }}
{{!!}}{{{20name}}}
{{!!}}{{{20mtch|-}}}
{{!!}}{{SortKey|{{{20rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{20rank}}}}}
{{!}}- |}}
{{#if: {{{21name|}}} |
{{!}}style="text-align:right;"{{!}}{{{21no|-}}}
{{!!}}{{{21pos|?}}}
{{!!}}{{ flagicon|{{{21nat|}}} }}
{{!!}}{{{21name}}}
{{!!}}{{{21mtch|-}}}
{{!!}}{{SortKey|{{{21rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{21rank}}}}}
{{!}}- |}}
{{#if: {{{22name|}}} |
{{!}}style="text-align:right;"{{!}}{{{22no|-}}}
{{!!}}{{{22pos|?}}}
{{!!}}{{ flagicon|{{{22nat|}}} }}
{{!!}}{{{22name}}}
{{!!}}{{{22mtch|-}}}
{{!!}}{{SortKey|{{{22rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{22rank}}}}}
{{!}}- |}}
{{#if: {{{23name|}}} |
{{!}}style="text-align:right;"{{!}}{{{23no|-}}}
{{!!}}{{{23pos|?}}}
{{!!}}{{ flagicon|{{{23nat|}}} }}
{{!!}}{{{23name}}}
{{!!}}{{{23mtch|-}}}
{{!!}}{{SortKey|{{{23rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{23rank}}}}}
{{!}}- |}}
{{#if: {{{24name|}}} |
{{!}}style="text-align:right;"{{!}}{{{24no|-}}}
{{!!}}{{{24pos|?}}}
{{!!}}{{ flagicon|{{{24nat|}}} }}
{{!!}}{{{24name}}}
{{!!}}{{{24mtch|-}}}
{{!!}}{{SortKey|{{{24rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{24rank}}}}}
{{!}}- |}}
{{#if: {{{25name|}}} |
{{!}}style="text-align:right;"{{!}}{{{25no|-}}}
{{!!}}{{{25pos|?}}}
{{!!}}{{ flagicon|{{{25nat|}}} }}
{{!!}}{{{25name}}}
{{!!}}{{{25mtch|-}}}
{{!!}}{{SortKey|{{{25rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{25rank}}}}}
{{!}}- |}}
{{#if: {{{26name|}}} |
{{!}}style="text-align:right;"{{!}}{{{26no|-}}}
{{!!}}{{{26pos|?}}}
{{!!}}{{ flagicon|{{{26nat|}}} }}
{{!!}}{{{26name}}}
{{!!}}{{{26mtch|-}}}
{{!!}}{{SortKey|{{{26rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{26rank}}}}}
{{!}}- |}}
{{#if: {{{27name|}}} |
{{!}}style="text-align:right;"{{!}}{{{27no|-}}}
{{!!}}{{{27pos|?}}}
{{!!}}{{ flagicon|{{{27nat|}}} }}
{{!!}}{{{27name}}}
{{!!}}{{{27mtch|-}}}
{{!!}}{{SortKey|{{{27rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{27rank}}}}}
{{!}}- |}}
{{#if: {{{28name|}}} |
{{!}}style="text-align:right;"{{!}}{{{28no|-}}}
{{!!}}{{{28pos|?}}}
{{!!}}{{ flagicon|{{{28nat|}}} }}
{{!!}}{{{28name}}}
{{!!}}{{{28mtch|-}}}
{{!!}}{{SortKey|{{{28rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{28rank}}}}}
{{!}}- |}}
{{#if: {{{29name|}}} |
{{!}}style="text-align:right;"{{!}}{{{29no|-}}}
{{!!}}{{{29pos|?}}}
{{!!}}{{ flagicon|{{{29nat|}}} }}
{{!!}}{{{29name}}}
{{!!}}{{{29mtch|-}}}
{{!!}}{{SortKey|{{{29rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{29rank}}}}}
{{!}}- |}}
{{#if: {{{30name|}}} |
{{!}}style="text-align:right;"{{!}}{{{30no|-}}}
{{!!}}{{{30pos|?}}}
{{!!}}{{ flagicon|{{{30nat|}}} }}
{{!!}}{{{30name}}}
{{!!}}{{{30mtch|-}}}
{{!!}}{{SortKey|{{{30rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{30rank}}}}}
{{!}}- |}}
{{#if: {{{31name|}}} |
{{!}}style="text-align:right;"{{!}}{{{31no|-}}}
{{!!}}{{{31pos|?}}}
{{!!}}{{ flagicon|{{{31nat|}}} }}
{{!!}}{{{31name}}}
{{!!}}{{{31mtch|-}}}
{{!!}}{{SortKey|{{{31rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{31rank}}}}}
{{!}}- |}}
{{#if: {{{32name|}}} |
{{!}}style="text-align:right;"{{!}}{{{32no|-}}}
{{!!}}{{{32pos|?}}}
{{!!}}{{ flagicon|{{{32nat|}}} }}
{{!!}}{{{32name}}}
{{!!}}{{{32mtch|-}}}
{{!!}}{{SortKey|{{{32rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{32rank}}}}}
{{!}}- |}}
{{!}}- |}}
|}
|}


<noinclude>
<noinclude>
== Documentation ==
Due to no loop abaility of this MediaWiki so far, we have to use an if expression for ''each possible row/player'' (sic). Any other variable can be left blank.
Due to no loop abaility of this MediaWiki so far, we have to use an if expression for ''each possible row/player'' (sic). Any other variable can be left blank.
You have to provide at least the name for each player you want to insert. Variables are:<br>
You have to provide at least the name for each player you want to insert. Variables are:<br>
{|
{|
| '''''n''name || Player name
| '''''n''name || Player name, ''mandatory''
|-
|-
| '''''n''no ||| Player kit number
| '''''n''no ||| Player kit number
Line 97: Line 277:
|}
|}
...whereas '''''n''''' is the number of the player, i.e. you take care of the initial sorting.
...whereas '''''n''''' is the number of the player, i.e. you take care of the initial sorting.
== Later Replacement with far less text ==


Until we have no true loop function, ignore this:
Until we have no true loop function, ignore this:

Latest revision as of 02:12, 22 July 2010

No. Pos. Nat. Name Matches Ranking


Documentation

Due to no loop abaility of this MediaWiki so far, we have to use an if expression for each possible row/player (sic). Any other variable can be left blank. You have to provide at least the name for each player you want to insert. Variables are:

nname Player name, mandatory
nno Player kit number
npos Player position, e.g. GK
nnat Player nationality - provide a value Template:flagicon can interpret
nmtch Played matches

...whereas n is the number of the player, i.e. you take care of the initial sorting.

Later Replacement with far less text

Until we have no true loop function, ignore this:

{{ #for: n |

No. Pos. Nat. Name Matches
{{{$n$no}}} {{{$n$pos}}} {{{$n$nat}}} {{{$n$name}}} {{{$n$match}}}

}}