Open main menu

Changes

Template:Awards table/doc

2,949 bytes added, 14:43, 11 July 2020
→‎Format 5: update doc
{{Documentation subpage}}
{{Uses TemplateStyles|Template:Awards table/styles.css}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->

== Usage ==
Always use the {{code|caption}} field, per [[WP:ACCESSIBLE]].

=== Format 1 ===
<syntaxhighlight lang="html" style="overflow:auto;">
{{Awards table}}
|-
! scope="row" | Year
| ''Work''
| Award
| {{won}}
{{end}}
</syntaxhighlight>

{{Awards table}}
|-
! scope="row" | 2018
| ''Hi kgagudi!''
| Heritage Awards of Excellence
| {{won}}
{{end}}


=== Format 2 ===
<syntaxhighlight lang="html" style="overflow:auto;">
{{Awards table|2}}
|-
! scope="row" | Year
| ''Work''
| Category
| {{won}}
| Notes
{{end}}
</syntaxhighlight>

{{Awards table|2}}
|-
! scope="row" | 2000
| ''Work''
| Category
| {{won}}
| Note (co-authors etc.)
{{end}}

=== Format 3 ===
<syntaxhighlight lang="html" style="overflow:auto;">
{{Awards table|3}}
|-
! scope="row" | Year
| Category
| Institution or publication
| {{won}}
| Notes
| Citation
{{end}}
</syntaxhighlight>

{{Awards table|3}}
|-
! scope="row" | 2000
| Category
| Institution or publication
| {{won}}
| Note (co-authors etc.)
| {{dummy reference|1}}
{{end}}

=== Format 4 ===
<syntaxhighlight lang="html" style="overflow:auto;">
{{Awards table|4}}
|-
! scope="row" | Year
| ''Work''
| Category
| Award
| {{won}}
| Notes
| Citation
{{end}}
</syntaxhighlight>

{{Awards table|4}}
|-
! scope="row" | 2000
| ''Work''
| Category
| Award
| {{won}}
| Note (co-authors etc.)
| {{dummy reference|1}}
{{end}}

=== Format 5 ===
References in the references column in this format will be centered.

<syntaxhighlight lang="html" style="overflow:auto;">
{{Awards table|5}}
|-
! scope="row" | Year
| Award
| Category
| Nominees
| {{won}}
| Citation
{{end}}
</syntaxhighlight>

{{Awards table|5}}
|-
! scope="row" | 2005
| [[57th Primetime Emmy Awards|Emmy Awards]]
| [[Primetime Emmy Award for Outstanding Directing for a Drama Series|Outstanding Directing for a Drama Series]]
| [[J. J. Abrams]]
| {{won}}
| {{dummy reference|1}}
{{end}}

== Parameters ==
{| class="wikitable"
! scope="col" | Parameter
! scope="col" | Explanation
|-
! scope="row" | 1
| The table format. Values are in the range of 1–5.
|-
! scope="row" | sortable
| If {{para|sortable|yes}}, then the table is made [[help:Sorting|sortable]]; {{para|sortable|no}} disables it for format #5.
|-
! scope="row" | style
| Further CSS styling for the table.
|-
! scope="row" | caption
| Used as the table caption.
|}

== Note ==
Format 5 centers the value in the citation column (the last column), removing the need to add <code><nowiki>style="text-align:center;"</nowiki></code> to each cell. This cell should also never span rows.

== See also ==
* {{tl|Infobox musician awards}}
* {{tl|Infobox actor awards}}

<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS. -->
[[Category:WikiProject Albums templates]]
[[Category:Awards templates| {{PAGENAME}}]]
}}</includeonly>
Anonymous user