User:Lirion/Sandbox/Squad: Difference between revisions
From Hattrick
< User:Lirion | Sandbox
No edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
|- | |- | ||
{{#if: {{{1name|}}} | | {{#if: {{{1name|}}} | | ||
{{!!}}{{{1no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{1no|-}}} | ||
{{!!}}{{{1pos|?}}} | {{!!}}{{{1pos|?}}} | ||
{{!!}}{{ flagicon|{{{1nat|}}} }} | {{!!}}{{ flagicon|{{{1nat|}}} }} | ||
| Line 11: | Line 11: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{2name|}}} | | {{#if: {{{2name|}}} | | ||
{{!!}}{{{2no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{2no|-}}} | ||
{{!!}}{{{2pos|?}}} | {{!!}}{{{2pos|?}}} | ||
{{!!}}{{ flagicon|{{{2nat|}}} }} | {{!!}}{{ flagicon|{{{2nat|}}} }} | ||
| Line 18: | Line 18: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{3name|}}} | | {{#if: {{{3name|}}} | | ||
{{!!}}{{{3no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{3no|-}}} | ||
{{!!}}{{{3pos|?}}} | {{!!}}{{{3pos|?}}} | ||
{{!!}}{{ flagicon|{{{3nat|}}} }} | {{!!}}{{ flagicon|{{{3nat|}}} }} | ||
| Line 25: | Line 25: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{4name|}}} | | {{#if: {{{4name|}}} | | ||
{{!!}}{{{4no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{4no|-}}} | ||
{{!!}}{{{4pos|?}}} | {{!!}}{{{4pos|?}}} | ||
{{!!}}{{ flagicon|{{{4nat|}}} }} | {{!!}}{{ flagicon|{{{4nat|}}} }} | ||
| Line 32: | Line 32: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{5name|}}} | | {{#if: {{{5name|}}} | | ||
{{!!}}{{{5no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{5no|-}}} | ||
{{!!}}{{{5pos|?}}} | {{!!}}{{{5pos|?}}} | ||
{{!!}}{{ flagicon|{{{5nat|}}} }} | {{!!}}{{ flagicon|{{{5nat|}}} }} | ||
| Line 39: | Line 39: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{6name|}}} | | {{#if: {{{6name|}}} | | ||
{{!!}}{{{6no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{6no|-}}} | ||
{{!!}}{{{6pos|?}}} | {{!!}}{{{6pos|?}}} | ||
{{!!}}{{ flagicon|{{{6nat|}}} }} | {{!!}}{{ flagicon|{{{6nat|}}} }} | ||
| Line 46: | Line 46: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{7name|}}} | | {{#if: {{{7name|}}} | | ||
{{!!}}{{{7no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{7no|-}}} | ||
{{!!}}{{{7pos|?}}} | {{!!}}{{{7pos|?}}} | ||
{{!!}}{{ flagicon|{{{7nat|}}} }} | {{!!}}{{ flagicon|{{{7nat|}}} }} | ||
| Line 53: | Line 53: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{8name|}}} | | {{#if: {{{8name|}}} | | ||
{{!!}}{{{8no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{8no|-}}} | ||
{{!!}}{{{8pos|?}}} | {{!!}}{{{8pos|?}}} | ||
{{!!}}{{ flagicon|{{{8nat|}}} }} | {{!!}}{{ flagicon|{{{8nat|}}} }} | ||
| Line 60: | Line 60: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{9name|}}} | | {{#if: {{{9name|}}} | | ||
{{!!}}{{{9no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{9no|-}}} | ||
{{!!}}{{{9pos|?}}} | {{!!}}{{{9pos|?}}} | ||
{{!!}}{{ flagicon|{{{9nat|}}} }} | {{!!}}{{ flagicon|{{{9nat|}}} }} | ||
| Line 67: | Line 67: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{10name|}}} | | {{#if: {{{10name|}}} | | ||
{{!!}}{{{10no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{10no|-}}} | ||
{{!!}}{{{10pos|?}}} | {{!!}}{{{10pos|?}}} | ||
{{!!}}{{ flagicon|{{{10nat|}}} }} | {{!!}}{{ flagicon|{{{10nat|}}} }} | ||
| Line 74: | Line 74: | ||
{{!}}- |}} | {{!}}- |}} | ||
{{#if: {{{11name|}}} | | {{#if: {{{11name|}}} | | ||
{{!!}}{{{11no|-}}} | {{!!}}style="text-align:right;"{{!}}{{{11no|-}}} | ||
{{!!}}{{{11pos|?}}} | {{!!}}{{{11pos|?}}} | ||
{{!!}}{{ flagicon|{{{11nat|}}} }} | {{!!}}{{ flagicon|{{{11nat|}}} }} | ||
Revision as of 19:16, 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}}} |
}}