User:Lirion/Sandbox/Squad: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lirion (talk | contribs)
No edit summary
Lirion (talk | contribs)
mNo edit summary
 
(13 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|}}} |
{{!!}}{{{1no|-}}}
{{!}}style="text-align:right;"{{!}}{{{1no|-}}}
{{!!}}{{{1pos|?}}}
{{!!}}{{{1pos|?}}}
{{!!}}{{ flagicon|{{{1nat|}}} }}
{{!!}}{{ flagicon|{{{1nat|}}} }}
{{!!}}{{{1name}}}
{{!!}}{{{1name}}}
{{!!}}{{{1mtch|-}}}
{{!!}}{{{1mtch|-}}}
{{!!}}{{SortKey|{{{1rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{1rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{2name|}}} |
{{#if: {{{2name|}}} |
{{!!}}{{{2no|-}}}
{{!}}style="text-align:right;"{{!}}{{{2no|-}}}
{{!!}}{{{2pos|?}}}
{{!!}}{{{2pos|?}}}
{{!!}}{{ flagicon|{{{2nat|}}} }}
{{!!}}{{ flagicon|{{{2nat|}}} }}
{{!!}}{{{2name}}}
{{!!}}{{{2name}}}
{{!!}}{{{2mtch|-}}}
{{!!}}{{{2mtch|-}}}
{{!!}}{{SortKey|{{{2rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{2rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{3name|}}} |
{{#if: {{{3name|}}} |
{{!!}}{{{3no|-}}}
{{!}}style="text-align:right;"{{!}}{{{3no|-}}}
{{!!}}{{{3pos|?}}}
{{!!}}{{{3pos|?}}}
{{!!}}{{ flagicon|{{{3nat|}}} }}
{{!!}}{{ flagicon|{{{3nat|}}} }}
{{!!}}{{{3name}}}
{{!!}}{{{3name}}}
{{!!}}{{{3mtch|-}}}
{{!!}}{{{3mtch|-}}}
{{!!}}{{SortKey|{{{3rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{3rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{4name|}}} |
{{#if: {{{4name|}}} |
{{!!}}{{{4no|-}}}
{{!}}style="text-align:right;"{{!}}{{{4no|-}}}
{{!!}}{{{4pos|?}}}
{{!!}}{{{4pos|?}}}
{{!!}}{{ flagicon|{{{4nat|}}} }}
{{!!}}{{ flagicon|{{{4nat|}}} }}
{{!!}}{{{4name}}}
{{!!}}{{{4name}}}
{{!!}}{{{4mtch|-}}}
{{!!}}{{{4mtch|-}}}
{{!!}}{{SortKey|{{{4rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{4rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{5name|}}} |
{{#if: {{{5name|}}} |
{{!!}}{{{5no|-}}}
{{!}}style="text-align:right;"{{!}}{{{5no|-}}}
{{!!}}{{{5pos|?}}}
{{!!}}{{{5pos|?}}}
{{!!}}{{ flagicon|{{{5nat|}}} }}
{{!!}}{{ flagicon|{{{5nat|}}} }}
{{!!}}{{{5name}}}
{{!!}}{{{5name}}}
{{!!}}{{{5mtch|-}}}
{{!!}}{{{5mtch|-}}}
{{!!}}{{SortKey|{{{5rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{5rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{6name|}}} |
{{#if: {{{6name|}}} |
{{!!}}{{{6no|-}}}
{{!}}style="text-align:right;"{{!}}{{{6no|-}}}
{{!!}}{{{6pos|?}}}
{{!!}}{{{6pos|?}}}
{{!!}}{{ flagicon|{{{6nat|}}} }}
{{!!}}{{ flagicon|{{{6nat|}}} }}
{{!!}}{{{6name}}}
{{!!}}{{{6name}}}
{{!!}}{{{6mtch|-}}}
{{!!}}{{{6mtch|-}}}
{{!!}}{{SortKey|{{{6rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{6rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{7name|}}} |
{{#if: {{{7name|}}} |
{{!!}}{{{7no|-}}}
{{!}}style="text-align:right;"{{!}}{{{7no|-}}}
{{!!}}{{{7pos|?}}}
{{!!}}{{{7pos|?}}}
{{!!}}{{ flagicon|{{{7nat|}}} }}
{{!!}}{{ flagicon|{{{7nat|}}} }}
{{!!}}{{{7name}}}
{{!!}}{{{7name}}}
{{!!}}{{{7mtch|-}}}
{{!!}}{{{7mtch|-}}}
{{!!}}{{SortKey|{{{7rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{7rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{8name|}}} |
{{#if: {{{8name|}}} |
{{!!}}{{{8no|-}}}
{{!}}style="text-align:right;"{{!}}{{{8no|-}}}
{{!!}}{{{8pos|?}}}
{{!!}}{{{8pos|?}}}
{{!!}}{{ flagicon|{{{8nat|}}} }}
{{!!}}{{ flagicon|{{{8nat|}}} }}
{{!!}}{{{8name}}}
{{!!}}{{{8name}}}
{{!!}}{{{8mtch|-}}}
{{!!}}{{{8mtch|-}}}
{{!!}}{{SortKey|{{{8rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{8rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{9name|}}} |
{{#if: {{{9name|}}} |
{{!!}}{{{9no|-}}}
{{!}}style="text-align:right;"{{!}}{{{9no|-}}}
{{!!}}{{{9pos|?}}}
{{!!}}{{{9pos|?}}}
{{!!}}{{ flagicon|{{{9nat|}}} }}
{{!!}}{{ flagicon|{{{9nat|}}} }}
{{!!}}{{{9name}}}
{{!!}}{{{9name}}}
{{!!}}{{{9mtch|-}}}
{{!!}}{{{9mtch|-}}}
{{!!}}{{SortKey|{{{9rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{9rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{10name|}}} |
{{#if: {{{10name|}}} |
{{!!}}{{{10no|-}}}
{{!}}style="text-align:right;"{{!}}{{{10no|-}}}
{{!!}}{{{10pos|?}}}
{{!!}}{{{10pos|?}}}
{{!!}}{{ flagicon|{{{10nat|}}} }}
{{!!}}{{ flagicon|{{{10nat|}}} }}
{{!!}}{{{10name}}}
{{!!}}{{{10name}}}
{{!!}}{{{10mtch|-}}}
{{!!}}{{{10mtch|-}}}
{{!!}}{{SortKey|{{{10rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{10rank}}}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{11name|}}} |
{{#if: {{{11name|}}} |
{{!!}}{{{11no|-}}}
{{!}}style="text-align:right;"{{!}}{{{11no|-}}}
{{!!}}{{{11pos|?}}}
{{!!}}{{{11pos|?}}}
{{!!}}{{ flagicon|{{{11nat|}}} }}
{{!!}}{{ flagicon|{{{11nat|}}} }}
{{!!}}{{{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}}}

}}