Difference between revisions of "Template:Curlingbox8"

From blackwiki
Jump to navigation Jump to search
imported>Prayerfortheworld
(adding W/L capability)
imported>McVahl
(utilize {{check winner by scores}})
 
(2 intermediate revisions by one other user not shown)
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 | {{#ifeq: {{{draw|}}} | | | Draw {{{draw}}} - }} Sheet {{{sheet}}} }}'''
 
| '''{{#ifeq: {{{sheet|}}} | | Team | {{#ifeq: {{{draw|}}} | | | Draw {{{draw}}} - }} Sheet {{{sheet}}} }}'''
 
| style="width:12px" |'''1'''
 
| style="width:12px" |'''1'''
Line 13: Line 13:
 
{{#if: {{{9|}}} | {{!}}style="width:12px"{{!}}'''9''' }}
 
{{#if: {{{9|}}} | {{!}}style="width:12px"{{!}}'''9''' }}
 
| '''Final'''
 
| '''Final'''
|- align=center bgcolor="FFFFFF"
+
|- style="text-align:center;background-color:#FFFFFF;"
| align=left width=230 style="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 24: Line 24:
 
| {{{8|}}}
 
| {{{8|}}}
 
{{#if: {{{9|}}} | {{!}}{{{9}}} }}
 
{{#if: {{{9|}}} | {{!}}{{{9}}} }}
| {{#if: {{{10|}}} | '''{{{10}}}'''| &nbsp; }}
+
| {{#if: {{{10|}}} | '''{{trim|{{{10}}}}}'''| &nbsp; }}
|- align=center bgcolor="FFFFFF"
+
|- style="text-align:center;background-color:#FFFFFF;"
| align=left width=230 style="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|}}}
Line 36: Line 36:
 
| {{{18|}}}
 
| {{{18|}}}
 
{{#if: {{{19|}}} | {{!}}{{{19}}} }}
 
{{#if: {{{19|}}} | {{!}}{{{19}}} }}
| {{#if: {{{20|}}} | '''{{{20}}}''' | &nbsp;}}
+
| {{#if: {{{20|}}} | '''{{trim|{{{20}}}}}''' | &nbsp;}}
 
|}<noinclude>
 
|}<noinclude>
 
{{Documentation}}
 
{{Documentation}}

Latest revision as of 03:33, 9 June 2020

Team 1 2 3 4 5 6 7 8 Final
{{{team1}}}  
{{{team2}}}  
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
Alberta Kevin Martin Template:X 0 1 0 3 1 1 0 X 6
Sweden 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