Difference between revisions of "Template:Infobox play/doc"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(rm image_size)
imported>SMcCandlish
(Controlling line-breaking in embedded bulletless lists)
Line 6: Line 6:
 
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.
 
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 ==
+
=== Blank template ===
  
 
<pre style="overflow:auto;">   
 
<pre style="overflow:auto;">   
Line 29: Line 29:
 
</pre>
 
</pre>
  
== Parameters ==
+
=== Parameters ===
  
 
<pre style="overflow:auto;">
 
<pre style="overflow:auto;">
Line 56: Line 56:
 
If the play is one in a series by the same author, you may use {{para|last_play}} and {{para|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 {{para|chronology}}.
 
If the play is one in a series by the same author, you may use {{para|last_play}} and {{para|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 {{para|chronology}}.
  
==Example==
+
===Example===
 
{{Infobox play
 
{{Infobox play
 
| name      = Agamemnon
 
| name      = Agamemnon
Line 98: Line 98:
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
 +
 +
=== Controlling line-breaking in embedded bulletless lists ===
 +
Template {{tlx|nbsp}} may be used with {{tlx|wbr}} and {{tlx|nowrap}} to control line-breaking in bulletless lists embedded in (e.g. characters, writers, and other content marked up with {{tlx|plainlist}}), to prevent wrapped long entries from being confused with multiple entries. See [[Template:Wbr/doc#Controlling line-breaking in infoboxes]] for details.
  
 
== Microformat ==
 
== Microformat ==

Revision as of 16:11, 17 September 2015

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

   
{{Infobox play
| name       = 
| image      = 
| alt        = 
| caption    = 
| writer     = 
| chorus     = 
| characters = 
| mute       = 
| setting    = 
| premiere   = <!-- {{Start date|YYYY|MM|DD}} -->
| place      = 
| orig_lang  = 
| series     = 
| subject    = 
| genre      = 
| web        = 
}}

Parameters

{{Infobox play    
| name       = Title of play
| image      = Oldest image available if possible (filename only, e.g. Example.jpg)
| alt        = Alternative text for the image
| caption    = A caption for the image
| writer     = The names of the author or authors (encloses lists with {{plainlist}})
| chorus     = The name of the (Greek) chorus character
| characters = List of other characters (encloses lists with {{plainlist}})
| mute       = List of characters that do not speak (encloses lists with {{plainlist}})
| setting    = The places and time where the play takes place
| premiere   = The date it was first performed; (see below)
| place      = The theatre and/or city it was first performed in
| orig_lang  = The language it was originally written in
| series     = List related plays if it is part of a series (encloses lists with {{plainlist}})
| subject    = The overall subject matter dealt with by the play
| genre      = The play's genre
| web        = URL of the official website
}}   

Note: For the date of the première, use {{startdate}} for compatibility with the hCalendar microformat. For properties with multiple values, encloses lists with {{plainlist}}

Chronology

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 |chronology=.

Example

Agamemnon
File:Gérin Clytemnestre hésitant avant de frapper Agamemnon endormi Louvre 5185.jpg
"The Murder of Agamemnon"
by Pierre-Narcisse Guérin
Written byAeschylus
ChorusElders of Argos
Characters
SettingArgos, before the royal palace
{{Infobox play 
| name       = Agamemnon
| image      = Murder of agamemnon.jpg
| caption    = "The Murder of Agamemnon"<br />by Pierre-Narcisse Guérin
| writer     = [[Aeschylus]]
| chorus     = Elders of [[Argos]]
| characters = {{plainlist|
*Watchman
*[[Clytemnestra]]
*Herald
*[[Agamemnon]]
*Messenger
*[[Cassandra]]
*[[Aegisthus]]
*Soldiers
*Servants
}}
| setting    = Argos, before the royal palace 
}}

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 (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

Template:UF-hcal

See also