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
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable sortable" border="1" 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
|-
|-
| {{ User:Lirion/Sandbox/Squadline|no={{{no|-}}}|pos={{{pos|-}}}|nat={{{nat|?}}}|name={{{name|?}}}|mtch={{{mtch|-}}} }}
{{#if: {{{1name|}}} |
|}}
{{!}}style="text-align:right;"{{!}}{{{1no|-}}}
{{!!}}{{{1pos|?}}}
{{!!}}{{ flagicon|{{{1nat|}}} }}
{{!!}}{{{1name}}}
{{!!}}{{{1mtch|-}}}
{{!!}}{{SortKey|{{{1rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{1rank}}}}}
{{!}}- |}}
{{#if: {{{2name|}}} |
{{!}}style="text-align:right;"{{!}}{{{2no|-}}}
{{!!}}{{{2pos|?}}}
{{!!}}{{ flagicon|{{{2nat|}}} }}
{{!!}}{{{2name}}}
{{!!}}{{{2mtch|-}}}
{{!!}}{{SortKey|{{{2rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{2rank}}}}}
{{!}}- |}}
{{#if: {{{3name|}}} |
{{!}}style="text-align:right;"{{!}}{{{3no|-}}}
{{!!}}{{{3pos|?}}}
{{!!}}{{ flagicon|{{{3nat|}}} }}
{{!!}}{{{3name}}}
{{!!}}{{{3mtch|-}}}
{{!!}}{{SortKey|{{{3rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{3rank}}}}}
{{!}}- |}}
{{#if: {{{4name|}}} |
{{!}}style="text-align:right;"{{!}}{{{4no|-}}}
{{!!}}{{{4pos|?}}}
{{!!}}{{ flagicon|{{{4nat|}}} }}
{{!!}}{{{4name}}}
{{!!}}{{{4mtch|-}}}
{{!!}}{{SortKey|{{{4rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{4rank}}}}}
{{!}}- |}}
{{#if: {{{5name|}}} |
{{!}}style="text-align:right;"{{!}}{{{5no|-}}}
{{!!}}{{{5pos|?}}}
{{!!}}{{ flagicon|{{{5nat|}}} }}
{{!!}}{{{5name}}}
{{!!}}{{{5mtch|-}}}
{{!!}}{{SortKey|{{{5rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{5rank}}}}}
{{!}}- |}}
{{#if: {{{6name|}}} |
{{!}}style="text-align:right;"{{!}}{{{6no|-}}}
{{!!}}{{{6pos|?}}}
{{!!}}{{ flagicon|{{{6nat|}}} }}
{{!!}}{{{6name}}}
{{!!}}{{{6mtch|-}}}
{{!!}}{{SortKey|{{{6rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{6rank}}}}}
{{!}}- |}}
{{#if: {{{7name|}}} |
{{!}}style="text-align:right;"{{!}}{{{7no|-}}}
{{!!}}{{{7pos|?}}}
{{!!}}{{ flagicon|{{{7nat|}}} }}
{{!!}}{{{7name}}}
{{!!}}{{{7mtch|-}}}
{{!!}}{{SortKey|{{{7rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{7rank}}}}}
{{!}}- |}}
{{#if: {{{8name|}}} |
{{!}}style="text-align:right;"{{!}}{{{8no|-}}}
{{!!}}{{{8pos|?}}}
{{!!}}{{ flagicon|{{{8nat|}}} }}
{{!!}}{{{8name}}}
{{!!}}{{{8mtch|-}}}
{{!!}}{{SortKey|{{{8rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{8rank}}}}}
{{!}}- |}}
{{#if: {{{9name|}}} |
{{!}}style="text-align:right;"{{!}}{{{9no|-}}}
{{!!}}{{{9pos|?}}}
{{!!}}{{ flagicon|{{{9nat|}}} }}
{{!!}}{{{9name}}}
{{!!}}{{{9mtch|-}}}
{{!!}}{{SortKey|{{{9rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{9rank}}}}}
{{!}}- |}}
{{#if: {{{10name|}}} |
{{!}}style="text-align:right;"{{!}}{{{10no|-}}}
{{!!}}{{{10pos|?}}}
{{!!}}{{ flagicon|{{{10nat|}}} }}
{{!!}}{{{10name}}}
{{!!}}{{{10mtch|-}}}
{{!!}}{{SortKey|{{{10rank}}}}}{{User:Lirion/Sandbox/Ranking|{{{10rank}}}}}
{{!}}- |}}
{{#if: {{{11name|}}} |
{{!}}style="text-align:right;"{{!}}{{{11no|-}}}
{{!!}}{{{11pos|?}}}
{{!!}}{{ flagicon|{{{11nat|}}} }}
{{!!}}{{{11name}}}
{{!!}}{{{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>
Until we have no true loop function, ignore this.
== 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:<br>
{|
| '''''n''name || Player name, ''mandatory''
|-
| '''''n''no ||| Player kit number
|-
| '''''n''pos || Player position, e.g. ''GK''
|-
| '''''n''nat || Player nationality - provide a value [[:Template:flagicon]] can interpret
|-
| '''''n''mtch || 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 |
{{ #for: n |

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}}}

}}