Difference between revisions of "Template:Awards table"
Jump to navigation
Jump to search
imported>Trialpears |
imported>Alex 21 (Merge sandbox contents per discussion at Wikipedia:Templates for discussion/Log/2019 October 2#Awards table templates) |
||
| Line 1: | Line 1: | ||
| − | {| class="{{# | + | {| class="{{#switch:{{{1|1}}}|2|5=sortable}} wikitable plainrowheaders" style="table-layout: fixed; margin-right: 0; {{{style|}}}" |
|+ {{{caption|}}} | |+ {{{caption|}}} | ||
|- | |- | ||
! scope="col" | Year | ! scope="col" | Year | ||
| − | ! scope="col" | Nominee / work | + | ! scope="col" | {{#switch:{{{1|1}}}|1=Nominee / work|2|4=Nominated work|3=Category|5=Award}} |
| − | ! scope="col" | Award | + | ! scope="col" | {{#switch:{{{1|1}}}|1=Award|2|4|5=Category|3=Institution or publication}}<!-- |
| − | ! scope="col" | Result<noinclude> | + | -->{{#switch:{{{1|1}}}|4|5=!! scope="col" {{!}} }}{{#switch:{{{1|1}}}|4=Award|5=Nominee(s)}} |
| + | ! scope="col" | Result<!-- | ||
| + | -->{{#switch:{{{1|1}}}|2|3|4=!! scope="col" class="unsortable" {{!}} Notes}}<!-- | ||
| + | -->{{#switch:{{{1|1}}}|3|4|5=!! scope="col" class="unsortable" {{!}} Citation}}<noinclude> | ||
|} | |} | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> | ||
Revision as of 22:49, 10 October 2019
| Year | Nominee / work | Award | Result |
|---|
Script error: No such module "Uses TemplateStyles".
Contents
Usage
Always use the caption field, per WP:ACCESSIBLE.
Format 1
{{Awards table}}
|-
! scope="row" | Year
| ''Work''
| Award
| {{won}}
{{end}}
| Year | Nominee / work | Award | Result |
|---|---|---|---|
| 2018 | Hi kgagudi! | Heritage Awards of Excellence | Template:Won |
Format 2
{{Awards table|2}}
|-
! scope="row" | Year
| ''Work''
| Category
| {{won}}
| Notes
{{end}}
| Year | Nominated work | Category | Result | Notes |
|---|---|---|---|---|
| 2000 | Work | Category | Template:Won | Note (co-authors etc.) |
Format 3
{{Awards table|3}}
|-
! scope="row" | Year
| Category
| Institution or publication
| {{won}}
| Notes
| Citation
{{end}}
| Year | Category | Institution or publication | Result | Notes | Citation |
|---|---|---|---|---|---|
| 2000 | Category | Institution or publication | Template:Won | Note (co-authors etc.) | [1] |
Format 4
{{Awards table|4}}
|-
! scope="row" | Year
| ''Work''
| Category
| Award
| {{won}}
| Notes
| Citation
{{end}}
| Year | Nominated work | Category | Award | Result | Notes | Citation |
|---|---|---|---|---|---|---|
| 2000 | Work | Category | Award | Template:Won | Note (co-authors etc.) | [1] |
Format 5
References in the references column in this format will be centered.
{{Awards table|5}}
|-
! scope="row" | Year
| Award
| Category
| Nominees
| {{won}}
| Citation
{{end}}
| Year | Award | Category | Nominee(s) | Result | Citation |
|---|---|---|---|---|---|
| 2005 | Emmy Awards | Outstanding Directing for a Drama Series | J. J. Abrams | Template:Won | [1] |
Parameters
| Parameter | Explanation |
|---|---|
| 1 | The table format. Values are in the range of 1–5. |
| sortable | If |sortable=yes, then the table is made sortable; |sortable=no disables it for format #5.
|
| style | Further CSS styling for the table. |
| caption | Used as the table caption. |
Note
Format 5 centers the value in the citation column (the last column), removing the need to add style="text-align:center;" to each cell. This cell should also never span rows.
See also
| The above documentation is transcluded from Template:Awards table/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |