| This is a documentation subpage for Template:Infobox play. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 4,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
This infobox should italicize the article title automatically. If this is not required, add <syntaxhighlight lang="wikitext" inline style="display: none;" />|italic_title=no to the list of parameters. |
Usage
To use the template, copy the following into an article and fill in the appropriate sections. There is no need to delete unwanted sections. All fields are optional.
Blank template
| This template uses Lua: |
| {{{name}}} | |
|---|---|
| [[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}]] {{{caption}}} | |
| Original title | {{{original_title}}} |
| Original language | {{{original_language}}} |
| Written by | {{{writer}}} |
| Based on | {{{based_on}}} |
| Music by | {{{music}}} |
| Lyrics by | {{{lyrics}}} |
| Chorus | {{{chorus}}} |
| Characters | {{{characters}}} |
| Mute | {{{mute}}} |
| First publication | {{{first_publication}}} |
| Series | {{{series}}} |
| Subject | {{{subject}}} |
| Genre | {{{genre}}} |
| Setting | {{{setting}}} |
| Premiere | |
| Date | {{{premiere_date}}} |
| Place | {{{premiere_place}}} |
| Directed by | {{{premiere_director}}} |
| Original run | {{{original_run}}} |
| {{{website}}} | |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
| Infobox play/doc |
|---|
</syntaxhighlight>
Parameters
| Parameter | Description |
|---|---|
<syntaxhighlight lang="wikitext" inline style="display: none;" />|name=
|
Title of play |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|image=
|
Oldest image available if possible (filename only, e.g. Example.jpg) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|alt=
|
Alternative text for the image |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|caption=
|
Caption for the image |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|original_title=
|
Original title |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|writer=
|
The names of the author or authors (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|based_on=
|
The title of the source material and the name(s) of the source material writer(s), if the play is based on previously produced or published material |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|music=
|
Names of the composer or composers (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|lyrics=
|
Names of the lyricist or lyricists (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|chorus=
|
The name of the (Greek) chorus character |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|characters=
|
List of other characters (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|mute=
|
List of characters that do not speak (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|original_language=
|
The language it was originally written in. |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|first_publication=
|
|
<syntaxhighlight lang="wikitext" inline style="display: none;" />|series=
|
List related plays if it is a part of a series (enclose lists with {{plainlist}}) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|subject=
|
The overall subject matter dealt with by the play |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|genre=
|
The play's genre. |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|setting=
|
The places and time where the play takes place |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|premiere_date=
|
The date it was first performed. Use {{startdate}} for compatibility with the hCalendar microformat. For properties with multiple values, encloses lists with {{plainlist}} |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|premiere_place=
|
The theatre and/or city it was first performed in. |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|premiere_director=
|
The original director of the play when it premiered. |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|original_run=
|
Original run |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|website=
|
URL of the official website (use Official website) |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|chronology=
|
If the play is one in a series by the same author, you may use <syntaxhighlight lang="wikitext" inline style="display: none;" />|last_play= and <syntaxhighlight lang="wikitext" inline style="display: none;" />|next_play= to link to the previous and next play in the series. By default, the heading for this section is set to the writer's name. To override this choice, use <syntaxhighlight lang="wikitext" inline style="display: none;" />|chronology=.
|
<syntaxhighlight lang="wikitext" inline style="display: none;" />|last_play=
| |
<syntaxhighlight lang="wikitext" inline style="display: none;" />|next_play=
|
Example
| Agamemnon | |
|---|---|
The Murder of Agamemnon by Pierre-Narcisse Guérin | |
| Written by | Aeschylus |
| Chorus | Elders of Argos |
| Characters |
|
| Setting | Argos, before the royal palace |
<syntaxhighlight lang="wikitext" style="overflow: auto">
| Agamemnon | |
|---|---|
"The Murder of Agamemnon" by Pierre-Narcisse Guérin | |
| Written by | Aeschylus |
| Chorus | Elders of Argos |
| Characters |
|
| Setting | Argos, before the royal palace |
</syntaxhighlight>
Controlling line-breaking in embedded bulletless lists
Template {{nbsp}} may be used with {{wbr}} and {{nowrap}} to control line-breaking in bulletless lists embedded in the infobox (e.g. characters, writers, and other content marked up with {{plainlist}}), to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc#Controlling line-breaking in infoboxes for details.
Microformat
The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
- Classes used
The HTML classes of this microformat include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
nor collapse nested elements which use them.
Tracking categories
Template data
TemplateData documentation used by VisualEditor and other tools
|
|---|
|
See a monthly parameter usage report for Template:Infobox play in articles based on its TemplateData.
TemplateData for Infobox play <templatedata> { "params": { "name": { "label": "Title of the play", "type": "string", "required": true }, "image": { "label": "Image", "description": "If possible, use the oldest image available.", "type": "wiki-file-name" }, "image_upright": { "label": "Image upright", "description": "Width scaling factor. See MOS:UPRIGHT for details.", "type": "number" }, "alt": { "label": "Image alt text", "description": "Text associated with an image that serves the same purpose and conveys the same essential information as the image. See MOS:ALT.", "type": "content" }, "caption": { "label": "Image caption", "type": "content" }, "writer": { "label": "Written by", "description": "Names of the writer or writers (enclose lists with).",
"type": "content", "suggested": true }, "based_on": { "label": "Based on", "description": "The title of the source material and the name(s) of the source material writer(s), if the play is based on previously produced or published material. Use .", "type": "content" }, "music": { "label": "Music by", "description": "Names of the composer or composers (enclose lists with).",
"type": "content" }, "lyrics": { "label": "Lyrics by", "description": "Names of the lyricist or lyricists (enclose lists with).",
"type": "content" }, "chorus": { "label": "Chorus", "description": "The name of the (Greek) chorus character.", "type": "string" }, "characters": { "label": "Characters", "description": "List of other characters (enclose lists with).",
"type": "content" }, "mute": { "label": "Mute characters", "description": "List of characters that do not speak (enclose lists with).",
"type": "content" }, "series": { "label": "Related plays", "description": "List related plays if it is a part of a series (enclose lists with).",
"type": "content" }, "subject": { "label": "Subject matter", "description": "The overall subject matter dealt with by the play.", "type": "content" }, "genre": { "label": "Genre", "type": "content" }, "setting": { "label": "Setting", "description": "The places and time where the play takes place.", "type": "content" }, "last_play": { "label": "Last play", "description": "If the play is one in a series by the same author, you may use \"Last play\" and \"Next play\" to link to the previous and next play in the series.", "type": "string" }, "next_play": { "label": "Next play", "description": "If the play is one in a series by the same author, you may use \"Last play\" and \"Next play\" to link to the previous and next play in the series.", "type": "string" }, "chronology": { "label": "\"Chronology\" header", "description": "If the play is one in a series by the same author, you may use \"Last play\" and \"Next play\" to link to the previous and next play in the series. By default, the heading for this section is set to the writer's name. To override this choice, use this parameter.", "type": "string" }, "italic_title": { "label": "Title italicization", "description": "This infobox italicizes the article title automatically. If this is not required, set this parameter to \"no\" to disable this behavior.", "type": "string", "suggestedvalues": [ "no" ] }, "original_title": { "label": "Original title of the play", "type": "string", "description": "If different from the title" }, "premiere_date": { "label": "Date of premiere", "description": "The date it was first performed. Use Error: Year value is required (help).", "type": "string" }, "premiere_place": { "label": "Place of first performance", "description": "The theatre and/or city it was first performed in.", "type": "content" }, "original_language": { "label": "Original language", "description": "The language it was originally written in.", "type": "string" }, "original_run": { "label": "Original run", "type": "content" }, "website": { "label": "Official website", "type": "url" }, "first_publication": { "label": "First publication", "description": "When the play was first published", "type": "date" }, "premiere_director": { "label": "Premiere director", "description": "The original director." } }, "description": "Infobox for plays.", "paramOrder": [ "italic_title", "name", "image", "image_upright", "alt", "caption", "original_title", "original_language", "writer", "based_on", "music", "lyrics", "chorus", "characters", "mute", "first_publication", "series", "subject", "genre", "setting", "premiere_date", "premiere_place", "premiere_director", "original_run", "website", "chronology", "last_play", "next_play" ], "format": "block" } </templatedata> |
See also
- {{Infobox film}}
- {{Infobox theatre}}
- {{IBDB title}}
- {{IBDB show}}
- {{iobdb title}}
- {{iobdb show}}
- {{theatricalia}}