Benutzer:Cutter/tabelle 34: Unterschied zwischen den Versionen

Aus chessmail Wiki
Wechseln zu: Navigation, Suche
K
K
Zeile 1: Zeile 1:
--
+
{{#vardefine: TurnierID|33}}<!--
{{#vardefine: TurnierID|34}}<!--
+
 
-----------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------
 
--><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 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>

Version vom 26. Mai 2013, 16:36 Uhr

{{#vardefine: TurnierID|33}}
Eingabe der TurnierdatenEingabe der Spielergebnisse

{{#vardefine: Team1SumPts | 0 }}{{#vardefine: Team2SumPts | 0 }}{{#arraydefine: team1|{{MidCLUBLIGA_{{#var:TurnierID}}}}}}{{#vardefine: sumTeam1 | 0}}{{#vardefine: sumTeam2 | 0}}{{#arraydefine: gamesplayed | {{MidCLUBLIGA_{{#var:TurnierID}}played}}}}

{{

 #loop: i
 | 0                     
 | {{#arraysize: team1}} 
 | 

{{#arraydefine: val | {{#arrayindex: team1 | {{#var:i}} }} | ;}} {{#arraydefine: res | {{#arrayindex: gamesplayed | {{#var:i}} }} | ;}} {{#arrayindex: val | 0}} {{#arrayindex: val | 1}} {{#arrayindex: val | 2}} {{#vardefine: sumTeam1 | {{#expr: ({{#var: sumTeam1}} + {{#arrayindex: val | 2}}) }} }} {{#arrayindex: val | 3}} {{#arrayindex: val | 4}} {{#arrayindex: val | 5}} {{#vardefine: sumTeam2 | {{#expr: ({{#var: sumTeam2}} + {{#arrayindex: val | 5}}) }} }} {{#arrayindex: val | 6}} {{#arrayindex: val | 7}} {{#arrayindex: val | 8}} {{#arrayindex: val | 9}} {{#arrayindex: val |10}} {{#arrayindex: val |11}} {{#arrayindex: val |12}} {{#arrayindex: res | 0}} {{#arrayindex: res | 1}}


}}

{{

 #loop: i
 | 0                     
 | {{#arraysize: team1}} 
 | 

{{#arraydefine: val | {{#arrayindex: team1| {{#var:i}} }} | ;}} {{#arraydefine: res | {{#arrayindex: gamesplayed | {{#var:i}} }} | ;}} {{#ifexpr: {{#var: i}} mod 2 = 0 | {{#vardefine: bgcolor|AliceBlue;}} | {{#vardefine: bgcolor|Snow;}}}}

{{#vardefine: Team1SumPts | {{#expr: {{#var:Team1SumPts}}+{{#arrayindex: res |0}} }} }}{{#vardefine: Team2SumPts | {{#expr: {{#var:Team2SumPts}}+{{#arrayindex: res |1}} }} }} }}
Turnierplan #33
{{#arrayindex: val | 0}} val | 1}} {{#arrayindex: val | 1}} {{#number_format: {{#arrayindex: val | 2}}|0|,|.|}} val | 4}} {{#arrayindex: val | 4}} {{#number_format: {{#arrayindex: val | 5}} |0|,|.}} val | 7}} HS {{#arrayindex: val | 9}} {{#switch: {{#arrayindex: val | 8}} | 0 = Freundschaftsspiel | 1 = Wertungsspiel | Unbekannter Modus }} val |10}} RS {{#arrayindex: val |12}} {{#switch: {{#arrayindex: val | 11}} | 0 = Freundschaftsspiel | 1 = Wertungsspiel | Unbekannter Modus }} {{#arrayindex: res |0}}{{#arrayindex: res |1}} {{#vardefineecho: curgames1| {{#expr: {{#arrayindex: res |0}} + {{#arrayindex: res |1}}}} }} {{#ifexpr: {{#var: curgames1}} = 2 | Bullet black.png | Bullet pink.png }}
{{#arraysize: team1}} {{#number_format: {{#var: sumTeam1}}|0|,|.|}} {{#number_format: {{#var: sumTeam2}} |0|,|.}}   {{#number_format: {{#var:Team1SumPts}} |0|,|.}} {{#number_format: {{#var: Team2SumPts}} |0|,|.}} {{#vardefineecho: PtsSoFar|{{#expr: {{#var:Team1SumPts}}+{{#var:Team2SumPts}}}}}} {{#expr: 2 * {{#arraysize: team1}} }}
  {{#number_format: {{#expr: {{#var: sumTeam1}}-{{#var: sumTeam2}} }} |0|,|.}} {{#expr: abs( {{#var: sumTeam1}} div ({{#var: sumTeam1}} + {{#var: sumTeam2}})) round 2}}  
Meine Werkzeuge
Namensräume

Varianten
Aktionen
chessmail Wiki
Schachserver
Informationen
Werkzeuge