Template:Tournament table template documentation
The templates in the series are intended for use in tournament performance tables for articles such as darts, snooker, and tennis players. For an example, see Phil Taylor career statistics#Performance timeline. These come in 2 varieties, cell templates for use in individual cells of the table, and legends to unify the tables across Wikipedia.
For example, {{TournW}} makes a cell with a green background and bold W. The optional link in the cell is taken from the first parameter; and the option to change text comes from the second parameter. So {{TournW|link}} and {{TournW|link|new text}} are also options. The intention is generally that the first parameter is the link to that specific edition of the tournament, with no "[[" required.
If you want to use other attributes for the table cells, e.g. colspan or rowspan, they need to be put before the template call and there must be no vertical bar | in between them:
| W | RU | N/A |
|---|---|---|
| Last 32 | ||
...
!{{TournW}}
|{{TournRU}}
|rowspan=2 {{TournNA}}
|-
|colspan=2 {{TournLR||Last 32}}
...
Templates
| Default | Default with link | Other text with link | Other text with no link | ||||
|---|---|---|---|---|---|---|---|
| Syntax | Preview | Syntax | Preview | Syntax | Preview | Syntax | Preview |
| {{TournW}} | W | {{TournW|2010 UK Open}} | W | {{TournW|2010 UK Open|Won}} | Won | {{TournW||Winner}} | Winner |
| {{TournRU}} | RU | {{TournRU|2010 UK Open}} | RU | {{TournRU|2010 UK Open|F}} | F | {{TournRU||2nd}} | 2nd |
| {{TournSF}} | SF | {{TournSF|2010 UK Open}} | SF | {{TournSF|2010 UK Open|Top 4}} | Top 4 | {{TournSF||3rd}} | 3rd |
| {{TournQF}} | QF | {{TournQF|2010 UK Open}} | QF | {{TournQF|2010 UK Open|Top 8}} | Top 8 | {{TournQF||7th}} | 7th |
| {{TournLR}} | RR | {{TournLR|2010 UK Open}} | RR | {{TournLR|2010 UK Open|2R}} | 2R | {{TournLR||Last 32}} | Last 32 |
| {{TournDQ}} | DQ | {{TournDQ|2010 UK Open}} | DQ | {{TournDQ|2010 UK Open|Banned}} | Banned | {{TournDQ||Barred}} | Barred |
| Default | Other text | No text | |||||
| Syntax | Preview | Syntax | Preview | Syntax | Preview | ||
| {{TournNA}} | N/A | {{TournNA|Did not play}} | Did not play | {{TournNA|}} | |||
Also, for a legend that can be used on most pages containing these cell templates
{{TournLegend}}
generates the following table:
| Performance Table Legend | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| W | Won the tournament | RU | Runner-up | SF | Semifinalist | QF | Quarterfinalist | #R RR L# |
Lost in # round Round-robin Last # stage |
DQ | Disqualified |
| DNQ | Did not qualify | DNP | Did not participate | WD | Withdrew | NH | Tournament not held | NYF | Not yet founded | ||
Code
Common code to most if not all the templates in this series:
|style="background: #abcdef; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-tournament"|
{{#if:{{{1|}}} | {{#if:{{{2|}}} |[[{{{1|}}}|{{{2|}}}]] | [[{{{1|}}}|XX]] }} | {{{2|XX}}} }}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.