User:Lirion/Sandbox/Squad: Difference between revisions
From Hattrick
< User:Lirion | Sandbox
No edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="wikitable sortable" border=" | {| 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|}}} | | ||
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}}} |
}}