User:Lirion/Sandbox/Squad: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lirion (talk | contribs)
mNo edit summary
Lirion (talk | contribs)
No edit summary
Line 14: Line 14:


<noinclude>
<noinclude>
Due to no loop abaility of this MediaWiki so far, we have to use an if expression for ''each possible row/player'' (sic).
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:
You have to provide at least the name for each player you want to insert. Variables are:<br>
'''''n''name
{|
| '''''n''name || Player name
|-
| '''''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.


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

Revision as of 18:56, 21 July 2010

No. Pos. Nat. Name Matches
- - {{{1name}}} -


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

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

}}