Template:Sports score/doc
Appearance
This is a documentation subpage for Template:Sports score. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template formats a table cell, and must be used inside a table. It takes two numeric scores, for the left and right displayed values. The higher value is bolded in the output. To use this template, it must be prepended by a pipe (vertical bar) of wikitable formatting.
Syntax
[edit]{{sports score|text=|align=|style=|nb=|1=|2=}}
|text=
— OPTIONAL – DEFAULT: black -- text color|align=
— OPTIONAL – DEFAULT: center -- text alignment|style=
— OPTIONAL – DEFAULT: none -- CSS styling|nb=
— OPTIONAL – DEFAULT: false --BOOLEAN
− if specified will not bold scores ("no bolding")|1=
— REQUIRED – DEFAULT: none -- score for competitor A|2=
— REQUIRED – DEFAULT: none -- score for competitor B
Alternative names
[edit]This template is available under other names:
{{dart score}}
Examples
[edit]- {|
- |
{{sports score|4|5}}
- |}
4–5 |
- {|
- |
{{sports score|text=orange|12|5}}
- |}
12–5 |
- {|
- |
{{sports score|nb=true|10555|122}}
- |}
10555–122 |
- {|
- |
{{sports score|align=left|0|0}}
- |}
0–0 |
- {|
- |
{{sports score|align=right|5|5}}
- |}
5–5 |