Difference between revisions of "Template:Curlingbox8"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(trim)
imported>McVahl
(utilize {{check winner by scores}})
 
Line 14: Line 14:
 
| '''Final'''
 
| '''Final'''
 
|- style="text-align:center;background-color:#FFFFFF;"
 
|- style="text-align:center;background-color:#FFFFFF;"
| style="text-align:left;width:230px;white-space:nowrap;" | {{#if: {{{10|}}} | {{#ifeq: {{{10|}}} | W | '''{{{team1}}}''' | {{#ifeq: {{{10|}}} | L | {{{team1}}} | {{#ifexpr: {{{10|}}}>{{{20|}}} | '''{{{team1}}}''' | {{{team1}}} }} }} }} | }}
+
| style="text-align:left;width:230px;white-space:nowrap;" | {{#ifeq:{{check winner by scores|{{{10}}}|{{{20}}}}}|W|'''{{{team1}}}'''|{{{team1}}}}}
 
| {{{1|}}}
 
| {{{1|}}}
 
| {{{2|}}}
 
| {{{2|}}}
Line 26: Line 26:
 
| {{#if: {{{10|}}} | '''{{trim|{{{10}}}}}'''|   }}
 
| {{#if: {{{10|}}} | '''{{trim|{{{10}}}}}'''|   }}
 
|- style="text-align:center;background-color:#FFFFFF;"
 
|- style="text-align:center;background-color:#FFFFFF;"
| style="text-align:left;width:230px;white-space:nowrap;" | {{#if: {{{10|}}} | {{#ifeq: {{{20|}}} | W | '''{{{team2}}}''' | {{#ifeq: {{{20|}}} | L | {{{team2}}} | {{#ifexpr: {{{10|}}}<{{{20|}}} | '''{{{team2}}}''' | {{{team2}}} }} }} }} | }}
+
| style="text-align:left;width:230px;white-space:nowrap;" | {{#ifeq:{{check winner by scores|{{{20}}}|{{{10}}}}}|W|'''{{{team2}}}'''|{{{team2}}}}}
 
| {{{11|}}}
 
| {{{11|}}}
 
| {{{12|}}}
 
| {{{12|}}}

Latest revision as of 03:33, 9 June 2020

Team 1 2 3 4 5 6 7 8 Final
{{{team1}}}  
{{{team2}}}  
50px Template documentation[view] [edit] [history] [purge]

Usage

For use on pages with results of curling games. This template is used exclusively for those curling games that are scheduled to be played for 8 ends.

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

{{ Curlingbox8
| sheet = 
| team1 = 
||||||||| |
| 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 should be denoted with the template {{X}}.
  • The end-by-end scores for each team should go on the lines below the team; the final score goes at the end of the line below the team.
    • Leave the 9th end blank unless it is actually played; note that the final input is for the final score.
    • If a match is played fewer than 8 ends, mark any conceded ends with an X or x.

Examples

From the 2011 GP Car and Home Players' Championship men's final.

{{ Curlingbox8
| sheet = C
| team1 = {{flagicon|AB}} [[Kevin Martin (curler)|Kevin Martin]] {{X}}
|0|1|0|3|1|1|0|X| |6
| team2 = {{flagicon|SWE}} [[Niklas Edin]]
|1|0|1|0|0|0|1|X| |3
}}
Sheet C 1 2 3 4 5 6 7 8 Final
23x15px Kevin Martin Template:X 0 1 0 3 1 1 0 X 6
23x15px Niklas Edin 1 0 1 0 0 0 1 X 3

Note the following:

  • the hammer is placed for the team with the last stone in the first end.
  • the 8th end was conceded, shown by the "X".

da:Skabelon:Curlingkamp8