Template:Nominate
Jump to navigation
Jump to search
| {{{1}}} |
|---|
|
{{:{{{1}}}}} |
Usage[edit]
|
This template is compatible |
This template shows a single explanation inside a collapsible, coloured box, and is meant to be transcluded once per comic on a page such as explain xkcd:Explanation Improvement Project.
Parameters:
1(required): the comic to display, in the form1234: Title of the Comic. This is always used as the anchoridfor the section (so links such as#1234: Title of the Comicwork). If2is not supplied at all,1is also the comic whose explanation is shown, and the box background is var(--background-color-neutral, #eaecf0) (grey).2(optional): if this parameter is supplied at all, even with an empty value, the box background switches to var(--background-color-option-lime, #e3f2e4) (green), and the comic whose explanation is shown becomes whatever2holds, with1then only used for the anchor id and no longer for the shown explanation.
Summary of behaviour:
| Call | Anchor id | Comic shown | Background colour |
|---|---|---|---|
{{Nominate|1234: Title}}
|
1234: Title
|
1234: Title (from 1)
|
grey, var(--background-color-neutral, #eaecf0) |
{{Nominate|1234: Title|5678: Other title}}
|
1234: Title
|
5678: Other title (from 2)
|
green, var(--background-color-option-lime, #e3f2e4) |
{{Nominate|1234: Title|}} (2 given but empty)
|
1234: Title
|
nothing shown, since 2 is empty
|
green, var(--background-color-option-lime, #e3f2e4) |
{{su}} →
Nomination successful. {{Successful}}
{{fea}} →
Featured as This Week's Explanation for Improvement. {{Featured}}
{{ar}} →
Archived. {{Archived}}
{{ai}} →
Archived but marked as still incomplete. {{Archived but incomplete}}
{{un}} →
Nomination unsuccessful. {{Unsuccessful}}
{{ui}} →
Nomination unsuccessful but marked as incomplete. {{Unsuccessful but incomplete}}