Benutzer:Cutter/tabelle 34: Unterschied zwischen den Versionen

Aus chessmail Wiki
Wechseln zu: Navigation, Suche
K
K (Die Seite wurde geleert.)
Zeile 1: Zeile 1:
{{#vardefine: TurnierID|33}}<!--
+
 
-----------------------------------------------------------------------------------
+
--><div style="padding: 3px; text-align: right; border: 1px solid Gainsboro;"><span style="padding-right: 8px;">[[Datei:Table_gear.png|Eingabe der Turnierdaten | link={{mpCMI}}cmwiki/index.php?title=Vorlage:MidCLUBLIGA_{{#var:TurnierID}}&action=edit]]</span><span style="padding-right: 5px;">[[Datei:Table_link.png | Eingabe der Spielergebnisse | link={{mpCMI}}cmwiki/index.php?title=Vorlage:MidCLUBLIGA_{{#var:TurnierID}}played&action=edit]]</span>
+
</div>
+
----
+
{{#vardefine: Team1SumPts | 0 }}{{#vardefine: Team2SumPts | 0 }}{{#arraydefine: team1|{{MidCLUBLIGA_{{#var:TurnierID}}}}}}{{#vardefine: sumTeam1 | 0}}{{#vardefine: sumTeam2 | 0}}{{#arraydefine: gamesplayed | {{MidCLUBLIGA_{{#var:TurnierID}}played}}}}<!--
+
----------------------------------------------------------------------------
+
--><div style="display: none;">
+
{{
+
  #loop: i
+
  | 0                    <!-- loops start value for {{#var:i}} -->
+
  | {{#arraysize: team1}} <!-- number of loops -->
+
  |
+
{{#arraydefine: val | {{#arrayindex: team1      | {{#var:i}} }} | ;}}
+
{{#arraydefine: res | {{#arrayindex: gamesplayed | {{#var:i}} }} | ;}}
+
<span style="color: blue;">{{#arrayindex: val | 0}}</span>
+
<span style="color: red;">{{#arrayindex: val | 1}}</span>
+
<span>{{#arrayindex: val | 2}}</span>
+
<nowiki/>{{#vardefine: sumTeam1 | {{#expr: ({{#var: sumTeam1}} + {{#arrayindex: val | 2}}) }} }}
+
<span">{{#arrayindex: val | 3}}</span>
+
<span style="color: red;">{{#arrayindex: val | 4}}</span>
+
<span>{{#arrayindex: val | 5}}</span>
+
<nowiki/>{{#vardefine: sumTeam2 | {{#expr: ({{#var: sumTeam2}} + {{#arrayindex: val | 5}}) }} }}
+
<span>{{#arrayindex: val | 6}}</span>
+
<span>{{#arrayindex: val | 7}}</span>
+
<span>{{#arrayindex: val | 8}} </span>
+
<span>{{#arrayindex: val | 9}}</span>
+
<span>{{#arrayindex: val |10}}</span>
+
<span>{{#arrayindex: val |11}}</span>
+
<span>{{#arrayindex: val |12}}</span>
+
<span style="color: green;">{{#arrayindex: res | 0}}</span>
+
<span style="color: blue;">{{#arrayindex: res | 1}}</span>
+
----
+
}}
+
</div>
+
<!-- -------------------------------------------------------------------------------------- -->
+
<table style="font-family: verdana,arial,sans-serif; line-height: 11pt; font-size: 8pt; width: 100%; max-width: 100%; border: 1px silver solid; border-collapse: collapse;">
+
<!-- -------------------------------------------------------------------------------------- -->
+
<tr style="color: SlateGray; line-height: 16pt; border-bottom: 1px solid Gainsboro; background-color: Linen;"><td colspan="15" style="padding-left: 3px;">Turnierplan #34</td></tr>
+
<!-- -------------------------------------------------------------------------------------- -->
+
{{
+
  #loop: i
+
  | 0                    <!-- loops start value for {{#var:i}} -->
+
  | {{#arraysize: team1}} <!-- number of loops -->
+
  |
+
{{#arraydefine: val | {{#arrayindex: team1| {{#var:i}} }} | ;}}
+
{{#arraydefine: res | {{#arrayindex: gamesplayed | {{#var:i}} }} | ;}}
+
{{#ifexpr: {{#var: i}} mod 2 = 0 | {{#vardefine: bgcolor|AliceBlue;}} | {{#vardefine: bgcolor|Snow;}}}}
+
<tr style="border-bottom: 1px Silver dotted; background-color: {{#var:bgcolor}}">
+
<!-- -------------------------------------------------------------------------------------- -->
+
<td style="width: 20px; text-align: right; padding-right: 5px; color: DarkGray; border-right: 1px Gainsboro dotted;">{{#arrayindex: val | 0}}</td>
+
<td style="border-left: 1px solid Gainsboro; width: 120px; color: RoyalBlue; padding-left: 3px; border-bottom: 1px Gainsboro dotted;"><span class="plainlinks">[http://www.chessmail.de/~{{#arrayindex: val | 1}} {{#arrayindex: val | 1}}]</span></td>
+
<td style="color: SteelBlue; padding-right: 15px;">{{#number_format: {{#arrayindex: val | 2}}|0|,|.|}}</td>
+
<td style="border-left: 1px solid Gainsboro; width: 120px; color: RoyalBlue; padding-left: 3px;"><span class="plainlinks">[http://www.chessmail.de/~{{#arrayindex: val | 4}} {{#arrayindex: val | 4}}]</span></td>
+
<td style="color: SteelBlue; padding-right: 15px; border-right: 1px Gainsboro dotted;">{{mNumForm|{{#arrayindex: val | 5}}}}</td>
+
<td style="border-left: 1px solid Gainsboro; width: 30px; text-align: center;"><span class="plainlinks">
+
[http://www.chessmail.de/game/{{#arrayindex: val | 7}} HS]</span></td>
+
<td style="color: green; border-right: 1px Gainsboro dotted;">{{#arrayindex: val | 9}}</td>
+
<td style="width: 15px; text-align: center; color: red;">{{mShowGameType|{{#arrayindex: val | 8}} }}</td>
+
<td style="border-left: 1px solid Gainsboro; width: 30px; text-align: center;"><span class="plainlinks">[http://www.chessmail.de/game/{{#arrayindex: val |10}} RS]</span>
+
<td style="color: green;">{{#arrayindex: val |12}}</td>
+
<td style="width: 15px; text-align: center; color: red;">{{mShowGameType|{{#arrayindex: val | 11}} }}</td>
+
<td style="border-left: 1px solid Black; width: 25px; text-align: center; color: cyan;">{{#arrayindex: res |0}}</td>{{#vardefine: Team1SumPts | {{#expr: {{#var:Team1SumPts}}+{{#arrayindex: res |0}} }} }}{{#vardefine: Team2SumPts | {{#expr: {{#var:Team2SumPts}}+{{#arrayindex: res |1}} }} }}
+
<td style="border-left: 1px solid Black; width: 25px; text-align: center; color: cyan;">{{#arrayindex: res |1}}</td>
+
<td style="text-align: center; width: 30px; border-left: 1px solid Black; color: MediumSeaGreen;">{{#vardefineecho: curgames1| {{#expr: {{#arrayindex: res |0}} + {{#arrayindex: res |1}}}} }}</td>
+
<td style="border-left: 1px solid Black; width: 25px; text-align: center;">{{#ifexpr: {{#var: curgames1}} = 2 | [[Datei: Bullet_black.png | link=]] | [[Datei: Bullet_pink.png | link=]] }}
+
</td>
+
<!-- -------------------------------------------------------------------------------------- -->
+
</tr>
+
}}
+
<!-- -------------------------------------------------------------------------------------- -->
+
<tr style="font-size: 8pt; background-color: SeaShell; border-top: 1px solid Gainsboro; padding-left: 3px;">
+
<td style="text-align: right; padding-right: 5px; color: DimGray;">{{#arraysize: team1}}</td>
+
<td colspan="2" style="text-align: right; padding-right: 15px; color: DimGray;">
+
{{#number_format: {{#var: sumTeam1}}|0|,|.|}}</td>
+
<td colspan="2" style="text-align: right; padding-right: 15px; color: DimGray;">{{mNumForm | {{#var: sumTeam2}} }}</td>
+
<td colspan="6">&nbsp;</td>
+
<td style="text-align: right; padding-right: 5px;">{{mNumForm | {{#var:Team1SumPts}} }}</td>
+
<td style="text-align: right; padding-right: 5px;">{{mNumForm | {{#var: Team2SumPts}} }}</td>
+
<td style="text-align: right; padding-right: 5px;">{{#vardefineecho: PtsSoFar|{{#expr: {{#var:Team1SumPts}}+{{#var:Team2SumPts}}}}}}</td>
+
<td  style="border-left: 1px solid Black; width: 25px; text-align: center; color: Black;">{{#expr: 2 * {{#arraysize: team1}} }}</td>
+
</tr>
+
<!-- ----------------------------------------------------- -->
+
<tr style="background-color: SeaShell; border-top: 1px dotted Gainsboro; padding-left: 3px;">
+
<td colspan="1">&nbsp;</td>
+
<td colspan="2" style="font-size: 8pt; text-align: right; padding-right: 15px; color: DimGray;">{{mNumForm | {{#expr: {{#var: sumTeam1}}-{{#var: sumTeam2}} }} }}</td>
+
<td colspan="2" style="font-size: 8pt; text-align: right; padding-right: 15px; color: DimGray;">{{#expr: abs( {{#var: sumTeam1}} div ({{#var: sumTeam1}} + {{#var: sumTeam2}})) round 2}}</td>
+
<td colspan="10">&nbsp;</td>
+
</tr>
+
</table>
+
<!-- ----------------------------------------------------- -->
+
<!-- ----------------------------------------------------- -->
+

Version vom 26. Mai 2013, 16:33 Uhr

Meine Werkzeuge
Namensräume

Varianten
Aktionen
chessmail Wiki
Schachserver
Informationen
Werkzeuge