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 3: Line 3:
!No. !! Pos. !! Nat. !! Name !! Matches
!No. !! Pos. !! Nat. !! Name !! Matches
|-
|-
{{#if: {{{1name}}} |
{{#if: {{{1name|}}} |
{{!!}}{{{1no|-}}}
{{!!}}{{{1no|-}}}
{{!!}}{{{1pos|?}}}
{{!!}}{{{1pos|?}}}
Line 10: Line 10:
{{!!}}{{{1mtch|-}}}
{{!!}}{{{1mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{2name}}} |
{{#if: {{{2name|}}} |
{{!!}}{{{2no|-}}}
{{!!}}{{{2no|-}}}
{{!!}}{{{2pos|?}}}
{{!!}}{{{2pos|?}}}
Line 17: Line 17:
{{!!}}{{{2mtch|-}}}
{{!!}}{{{2mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{3name}}} |
{{#if: {{{3name|}}} |
{{!!}}{{{3no|-}}}
{{!!}}{{{3no|-}}}
{{!!}}{{{3pos|?}}}
{{!!}}{{{3pos|?}}}
Line 24: Line 24:
{{!!}}{{{3mtch|-}}}
{{!!}}{{{3mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{4name}}} |
{{#if: {{{4name|}}} |
{{!!}}{{{4no|-}}}
{{!!}}{{{4no|-}}}
{{!!}}{{{4pos|?}}}
{{!!}}{{{4pos|?}}}
Line 31: Line 31:
{{!!}}{{{4mtch|-}}}
{{!!}}{{{4mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{5name}}} |
{{#if: {{{5name|}}} |
{{!!}}{{{5no|-}}}
{{!!}}{{{5no|-}}}
{{!!}}{{{5pos|?}}}
{{!!}}{{{5pos|?}}}
Line 38: Line 38:
{{!!}}{{{5mtch|-}}}
{{!!}}{{{5mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{6name}}} |
{{#if: {{{6name|}}} |
{{!!}}{{{6no|-}}}
{{!!}}{{{6no|-}}}
{{!!}}{{{6pos|?}}}
{{!!}}{{{6pos|?}}}
Line 45: Line 45:
{{!!}}{{{6mtch|-}}}
{{!!}}{{{6mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{7name}}} |
{{#if: {{{7name|}}} |
{{!!}}{{{7no|-}}}
{{!!}}{{{7no|-}}}
{{!!}}{{{7pos|?}}}
{{!!}}{{{7pos|?}}}
Line 52: Line 52:
{{!!}}{{{7mtch|-}}}
{{!!}}{{{7mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{8name}}} |
{{#if: {{{8name|}}} |
{{!!}}{{{8no|-}}}
{{!!}}{{{8no|-}}}
{{!!}}{{{8pos|?}}}
{{!!}}{{{8pos|?}}}
Line 59: Line 59:
{{!!}}{{{8mtch|-}}}
{{!!}}{{{8mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{9name}}} |
{{#if: {{{9name|}}} |
{{!!}}{{{9no|-}}}
{{!!}}{{{9no|-}}}
{{!!}}{{{9pos|?}}}
{{!!}}{{{9pos|?}}}
Line 66: Line 66:
{{!!}}{{{9mtch|-}}}
{{!!}}{{{9mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{10name}}} |
{{#if: {{{10name|}}} |
{{!!}}{{{10no|-}}}
{{!!}}{{{10no|-}}}
{{!!}}{{{10pos|?}}}
{{!!}}{{{10pos|?}}}
Line 73: Line 73:
{{!!}}{{{10mtch|-}}}
{{!!}}{{{10mtch|-}}}
{{!}}- |}}
{{!}}- |}}
{{#if: {{{11name}}} |
{{#if: {{{11name|}}} |
{{!!}}{{{11no|-}}}
{{!!}}{{{11no|-}}}
{{!!}}{{{11pos|?}}}
{{!!}}{{{11pos|?}}}
Line 79: Line 79:
{{!!}}{{{11name}}}
{{!!}}{{{11name}}}
{{!!}}{{{11mtch|-}}}
{{!!}}{{{11mtch|-}}}
{{!}}- | }}
{{!}}- |}}
|}
|}



Revision as of 19:13, 21 July 2010

No. Pos. Nat. Name Matches


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

}}