Difference between revisions of "Template:Awards table/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
imported>WOSlinker m (change source to syntaxhighlight) |
||
Line 7: | Line 7: | ||
=== Format 1 === | === Format 1 === | ||
− | < | + | <syntaxhighlight lang="html" style="overflow:auto;"> |
{{Awards table}} | {{Awards table}} | ||
|- | |- | ||
Line 15: | Line 15: | ||
| {{won}} | | {{won}} | ||
{{end}} | {{end}} | ||
− | </ | + | </syntaxhighlight> |
{{Awards table}} | {{Awards table}} | ||
Line 27: | Line 27: | ||
=== Format 2 === | === Format 2 === | ||
− | < | + | <syntaxhighlight lang="html" style="overflow:auto;"> |
{{Awards table|2}} | {{Awards table|2}} | ||
|- | |- | ||
Line 36: | Line 36: | ||
| Notes | | Notes | ||
{{end}} | {{end}} | ||
− | </ | + | </syntaxhighlight> |
{{Awards table|2}} | {{Awards table|2}} | ||
Line 48: | Line 48: | ||
=== Format 3 === | === Format 3 === | ||
− | < | + | <syntaxhighlight lang="html" style="overflow:auto;"> |
{{Awards table|3}} | {{Awards table|3}} | ||
|- | |- | ||
Line 58: | Line 58: | ||
| Citation | | Citation | ||
{{end}} | {{end}} | ||
− | </ | + | </syntaxhighlight> |
{{Awards table|3}} | {{Awards table|3}} | ||
Line 71: | Line 71: | ||
=== Format 4 === | === Format 4 === | ||
− | < | + | <syntaxhighlight lang="html" style="overflow:auto;"> |
{{Awards table|4}} | {{Awards table|4}} | ||
|- | |- | ||
Line 82: | Line 82: | ||
| Citation | | Citation | ||
{{end}} | {{end}} | ||
− | </ | + | </syntaxhighlight> |
{{Awards table|4}} | {{Awards table|4}} | ||
Line 96: | Line 96: | ||
=== Format 5 === | === Format 5 === | ||
− | < | + | <syntaxhighlight lang="html" style="overflow:auto;"> |
{{Awards table|5}} | {{Awards table|5}} | ||
|- | |- | ||
Line 107: | Line 107: | ||
| Citation | | Citation | ||
{{end}} | {{end}} | ||
− | </ | + | </syntaxhighlight> |
{{Awards table|5}} | {{Awards table|5}} |
Revision as of 12:40, 7 July 2020
![]() | This is a documentation subpage for Template:Awards table. It contains usage information, categories and other content that is not part of the original template page. |
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 | Ref. |
---|---|---|---|---|---|
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 | Ref. |
---|---|---|---|---|---|---|
2000 | Work | Category | Award | Template:Won | Note (co-authors etc.) | [1] |
Format 5
{{Awards table|5}}
|-
! scope="row" | Year
| Award
| Category
| ''Work''
| {{won}}
| Notes
| Citation
{{end}}
Year | Award | Category | Nominee(s) | Result | Ref. |
---|---|---|---|---|---|
2018 | Academy Awards | Academy Award for Best Picture | Green Book | 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