Template:Awards table/doc

Revision as of 02:17, 15 May 2022 by Leveloneknob (talk | contribs) (Created page with "== Usage == Always use the {{code|caption}} field, per WP:ACCESSIBLE. If the caption would duplicate a nearby section header, you can make it only used by screen-reader software via the {{tl|Screen reader-only}} template. === Format 1 === <syntaxhighlight lang="html" style="overflow:auto;"> {{Awards table|caption=Award nominations for ''Work''}} |- ! scope="row" | Year | ''Work'' | Award | {{won}} {{end}} </syntaxhighlight> {{Awards table|caption=Award nominations...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage[edit source]

Always use the Template:Code field, per WP:ACCESSIBLE. If the caption would duplicate a nearby section header, you can make it only used by screen-reader software via the {{Screen reader-only}} template.

Format 1[edit source]

{{Awards table|caption=Award nominations for ''Work''}}
|-
! scope="row" | Year
| ''Work''
| Award
| {{won}}
{{end}}

Page Template:Awards table/styles.css has no content.

Award nominations for Hi kgagudi!
Year Nominee / work Award Result
2018 Hi kgagudi! Heritage Awards of Excellence Template:Won

Template:End


Format 2[edit source]

{{Awards table|2|caption={{Screen reader-only|Award nominations for ''Work''}}}}
|-
! scope="row" | Year
| ''Work''
| Category
| {{won}}
| Notes
{{end}}

Page Template:Awards table/styles.css has no content.

Year Nominee / work Award Result
2000 Work Category Template:Won Note (co-authors etc.)

Template:End

Format 3[edit source]

{{Awards table|3|caption={{sronly|Award nominations for ''Work''}}}}
|-
! scope="row" | Year
| Category
| Institution or publication
| {{won}}
| Notes
| Citation
{{end}}

Page Template:Awards table/styles.css has no content.

Template:Sronly
Year Category Institution or publication Result Notes Template:Abbr
2000 Category Institution or publication Template:Won Note (co-authors etc.) Template:Dummy reference

Template:End

Format 4[edit source]

{{Awards table|4}}
|-
! scope="row" | Year
| ''Work''
| Category
| Award
| {{won}}
| Notes
| Citation
{{end}}

Page Template:Awards table/styles.css has no content.

Year Nominated work Category Award Result Notes Template:Abbr
2000 Work Category Award Template:Won Note (co-authors etc.) Template:Dummy reference

Template:End

Format 5[edit source]

References in the references column in this format will be centered.

{{Awards table|5}}
|-
! scope="row" | Year
| Award
| Category
| Nominees
| {{won}}
| Citation
{{end}}

Page Template:Awards table/styles.css has no content.

Year Award Category Nominee(s) Result Template:Abbr
2005 Emmy Awards Outstanding Directing for a Drama Series J. J. Abrams Template:Won Template:Dummy reference

Template:End

Parameters[edit source]

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[edit source]

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.