Jump to content

Template:Game-won/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Each of the below templates is intended to be used to add a standard background color to a table row indicating whether a team has won, tied, lost, won in overtime, or lost in overtime, a game that they played.

{{Game-won}}
{{Game-otw}}
{{Game-otl}}
{{Game-tied}}
{{Game-lost}}

Its intended usage is inside a {{Game log section start}} template, as below:

{{Game log start|style=|title=}}
{{Game log section start|hide=n|style=|title=|Header1|Header2|Header3|Header4|Header5|...}}
|- {{Game-won}}
| Data1 || Data2 || Data2 || Data4 || Data5 || ...
|-
{{Game log section end}}
{{Game log section start|hide=n|style=|title=|Header1|Header2|Header3|Header4|Header5|...}}
|- {{Game-lost}}
| Data1 || Data2 || Data2 || Data4 || Data5 || ...
|-
{{Game log section end}}
{{Game log section start|hide=n|style=|title=|Header1|Header2|Header3|Header4|Header5|...}}
|- {{Game-tied}}
| Data1 || Data2 || Data2 || Data4 || Data5 || ...
|-
{{Game log section end}}
{{Game log end|notes=}}

This will produce:

Header1 Header2 Header3 Header4 Header5 ...
Data1 Data2 Data3 Data4 Data5 ...
Header1 Header2 Header3 Header4 Header5 ...
Data1 Data2 Data3 Data4 Data5 ...
Header1 Header2 Header3 Header4 Header5 ...
Data1 Data2 Data3 Data4 Data5 ...

See also

[edit]