Difference between revisions of "Template:Curlingbox"

From blackwiki
Jump to navigation Jump to search
imported>Prayerfortheworld
(adding W/L function)
imported>WOSlinker
(tidy style)
Line 1: Line 1:
 
<noinclude>{{Curlingboxes}}</noinclude>
 
<noinclude>{{Curlingboxes}}</noinclude>
 
{| class="wikitable"
 
{| class="wikitable"
|- align=center bgcolor="#ffffcc"
+
|- style="text-align:center;background-color:#ffffcc;"
 
| '''{{#ifeq: {{{sheet|}}} | | Team | Sheet {{{sheet}}} }}'''
 
| '''{{#ifeq: {{{sheet|}}} | | Team | Sheet {{{sheet}}} }}'''
 
| style="width:12px" |'''1'''
 
| style="width:12px" |'''1'''
Line 15: Line 15:
 
{{#if: {{{11|}}} | {{!}}'''11''' }}
 
{{#if: {{{11|}}} | {{!}}'''11''' }}
 
| '''Final'''
 
| '''Final'''
|- align=center bgcolor="FFFFFF"
+
|- style="text-align:center;background-color:#FFFFFF;"
| align=left width=230 style="white-space:nowrap;" | {{#if: {{{12|}}} | {{#ifeq: {{{12|}}} | W | '''{{{team1}}}''' | {{#ifeq: {{{12|}}} | L | {{{team1}}} | {{#ifexpr: {{{12|}}}>{{{24|}}} | '''{{{team1}}}''' | {{{team1}}} }} }} }} | }}
+
| style="text-align:left;width:230px;white-space:nowrap;" | {{#if: {{{12|}}} | {{#ifeq: {{{12|}}} | W | '''{{{team1}}}''' | {{#ifeq: {{{12|}}} | L | {{{team1}}} | {{#ifexpr: {{{12|}}}>{{{24|}}} | '''{{{team1}}}''' | {{{team1}}} }} }} }} | }}
 
| {{{1|}}}
 
| {{{1|}}}
 
| {{{2|}}}
 
| {{{2|}}}
Line 29: Line 29:
 
{{#if: {{{11|}}} | {{!}}{{{11}}} }}
 
{{#if: {{{11|}}} | {{!}}{{{11}}} }}
 
| {{#if: {{{12|}}} | '''{{{12}}}'''| &nbsp; }}
 
| {{#if: {{{12|}}} | '''{{{12}}}'''| &nbsp; }}
|- align=center bgcolor="FFFFFF"
+
|- style="text-align:center;background-color:#FFFFFF;"
| align=left width=230 style="white-space:nowrap;" | {{#if: {{{12|}}} | {{#ifeq: {{{24|}}} | W | '''{{{team2}}}''' | {{#ifeq: {{{24|}}} | L | {{{team2}}} | {{#ifexpr: {{{12|}}}<{{{24|}}} | '''{{{team2}}}''' | {{{team2}}} }} }} }} | }}
+
| style="text-align:left;width:230px;white-space:nowrap;" | {{#if: {{{12|}}} | {{#ifeq: {{{24|}}} | W | '''{{{team2}}}''' | {{#ifeq: {{{24|}}} | L | {{{team2}}} | {{#ifexpr: {{{12|}}}<{{{24|}}} | '''{{{team2}}}''' | {{{team2}}} }} }} }} | }}
 
| {{{13|}}}
 
| {{{13|}}}
 
| {{{14|}}}
 
| {{{14|}}}

Revision as of 22:46, 9 November 2014

Team 1 2 3 4 5 6 7 8 9 10 Final
 
 
Template documentation[view] [edit] [history] [purge]

Usage

For use on pages with results of curling games.

A blank template, for easy copy-and-paste:

{{ Curlingbox
| sheet = 
| team1 = {{X}}
||||||||||| |
| team2 = 
||||||||||| |
}}

The parameters include:

  • sheet: the name of the sheet
  • teamX: the name of the skip; alternatively, the name of the team with the skip in parentheses. Note that the team with the hammer in the first end is denoted with the template {{X}}.
    • The line directly below the team parameter indicates the scores for each end. Leave the 11th end blank unless it is actually played; note that the final input is for the final score.
    • If a match is played fewer than 10 ends, mark any conceded ends with an X.

Examples

10 ends:

{{ Curlingbox
| sheet = A
| team1 = {{GER}} (Schöpp) {{X}}
|1|1|0|1|0|1|0|1|0|0| |5
| team2 = {{CHN}} (Wang)
|0|0|3|0|1|0|2|0|0|0| |6
}}


Sheet A 1 2 3 4 5 6 7 8 9 10 Final
 Germany (Schöpp) Template:X 1 1 0 1 0 1 0 1 0 0 5

 China (Wang) 0 0 3 0 1 0 2 0 0 0 6

11 ends:

{{ Curlingbox
| sheet = A
| team1 = {{GER}} (Schöpp) {{X}}
|1|1|0|1|0|1|0|1|0|0|0|5
| team2 = {{CHN}} (Wang)
|0|0|3|0|1|0|1|0|0|0|1|6
}}


Sheet A 1 2 3 4 5 6 7 8 9 10 11 Final
 Germany (Schöpp) Template:X 1 1 0 1 0 1 0 1 0 0 0 5

 China (Wang) 0 0 3 0 1 0 1 0 0 0 1 6

8 ends, with concession:

{{ Curlingbox
| sheet = A
| team1 = {{GER}} (Schöpp) {{X}}
|1|1|0|1|0|0|0|0|X|X| |3
| team2 = {{CHN}} (Wang)
|0|0|3|0|1|0|3|0|X|X| |7
}}


Sheet A 1 2 3 4 5 6 7 8 9 10 Final
 Germany (Schöpp) Template:X 1 1 0 1 0 0 0 0 X X 3

 China (Wang) 0 0 3 0 1 0 3 0 X X 7

da:Skabelon:Curlingkamp10 de:Vorlage:Curlingspiel fr:Modèle:Curlingbox pl:Szablon:Curling tabela tr:Şablon:Curlingbox