Difference between revisions of "Template:Composer sidebar/doc"
Jump to navigation
Jump to search
imported>Neelix (Fixed links) |
imported>WOSlinker (tidy style) |
||
| Line 110: | Line 110: | ||
==All parameters== | ==All parameters== | ||
{| | {| | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|name}}||This is the name of the template, e.g. [[:Template:Handel]] would use "Handel" in this box. | |{{Para|name}}||This is the name of the template, e.g. [[:Template:Handel]] would use "Handel" in this box. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|title}}||The title placed at the top, such as "Works by [[Richard Wagner]]" or "[[George Frideric Handel]]". The composer's name should be wikilinked by putting it in square brackets. | |{{Para|title}}||The title placed at the top, such as "Works by [[Richard Wagner]]" or "[[George Frideric Handel]]". The composer's name should be wikilinked by putting it in square brackets. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|image}}||''Optional'' – filename of the image, without the File: or Image: prefix; if omitted, no image will be shown. | |{{Para|image}}||''Optional'' – filename of the image, without the File: or Image: prefix; if omitted, no image will be shown. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|alt}}||[[Alt attribute|Alt text]] for the image, for visually impaired readers. See [[Wikipedia:Alternative text for images|Alternative text for images]]. | |{{Para|alt}}||[[Alt attribute|Alt text]] for the image, for visually impaired readers. See [[Wikipedia:Alternative text for images|Alternative text for images]]. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|imagesize}}||''Optional'' – size of the image, in the form <tt>170px</tt>; defaults to <tt>190px</tt>. | |{{Para|imagesize}}||''Optional'' – size of the image, in the form <tt>170px</tt>; defaults to <tt>190px</tt>. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|caption}}||''Optional'' - caption for the image. | |{{Para|caption}}||''Optional'' - caption for the image. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|h1color}}||''Optional'' – colour for the title box surrounding the composer's name, in hexadecimal form, e.g. <tt>#DDBB9F</tt> or a recognised colour name, e.g. <tt>silver<tt>; defaults to <tt>silver</tt> (=<tt>#C0C0C0</tt>): <span style="background-color:silver">'''Works by [[Richard Wagner]]'''</span> | |{{Para|h1color}}||''Optional'' – colour for the title box surrounding the composer's name, in hexadecimal form, e.g. <tt>#DDBB9F</tt> or a recognised colour name, e.g. <tt>silver<tt>; defaults to <tt>silver</tt> (=<tt>#C0C0C0</tt>): <span style="background-color:silver">'''Works by [[Richard Wagner]]'''</span> | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|h2color}}||''Optional'' – colour for the collapsed boxes (should usually be a lighter version of h1color); defaults to <tt>#DDDDDD</tt>: <span style="background-color:#DDDDDD">'''Operas'''</span> | |{{Para|h2color}}||''Optional'' – colour for the collapsed boxes (should usually be a lighter version of h1color); defaults to <tt>#DDDDDD</tt>: <span style="background-color:#DDDDDD">'''Operas'''</span> | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|italic title}}||''Optional'' – see note [[#top|above]]. {{Para|italic title|no}} can be used on pages which use this template but where the article title should not be italicised; if a page contains more than one use of this template, the article title will be italicised unless all templates specify this parameter. {{Para|italic title|force}} can be used to force italics for the whole article title, including parentheses, or to enable italics for article titles longer than 50 characters; see {{Tl|italic title}}. For more complicated forms of italicising the article title, see the [[:meta:Magic words|magic word]] <tt><nowiki>{{DISPLAYTITLE:…}}</nowiki></tt>.<br />When this parameter is needed to disable italicising the article title of a page where a specific composer's template, say {{Tl|Bellini operas}}, is used, it needs to be specified in that template in the form <tt><span style="background-color: yellow"><nowiki>italic title={{{italic title|}}}</nowiki></span></tt>. | |{{Para|italic title}}||''Optional'' – see note [[#top|above]]. {{Para|italic title|no}} can be used on pages which use this template but where the article title should not be italicised; if a page contains more than one use of this template, the article title will be italicised unless all templates specify this parameter. {{Para|italic title|force}} can be used to force italics for the whole article title, including parentheses, or to enable italics for article titles longer than 50 characters; see {{Tl|italic title}}. For more complicated forms of italicising the article title, see the [[:meta:Magic words|magic word]] <tt><nowiki>{{DISPLAYTITLE:…}}</nowiki></tt>.<br />When this parameter is needed to disable italicising the article title of a page where a specific composer's template, say {{Tl|Bellini operas}}, is used, it needs to be specified in that template in the form <tt><span style="background-color: yellow"><nowiki>italic title={{{italic title|}}}</nowiki></span></tt>. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|expanded}}||''Optional'' – one of the <tt>list<small>x</small>name</tt> entries below which should be initially expanded; if omitted, all sections will initially be shown collapsed.<br /> | |{{Para|expanded}}||''Optional'' – one of the <tt>list<small>x</small>name</tt> entries below which should be initially expanded; if omitted, all sections will initially be shown collapsed.<br /> | ||
When this template ({{Tl|Composer navbox}}) is used to create a template for the works of a specific composer, say {{Tl|Handel}}, this parameter may be specified in that template in the form <tt><span style="background-color: yellow">expanded={{{expanded}}}</span></tt>; this will allow this parameter to be passed through when that template ({{Tl|Handel}}) is invoked from different articles where the expansion of a different section might be desired. '''Note''': the [[Wikipedia talk:WikiProject Opera|WikiProject Opera]] has formed a consensus that templates of works should generally be presented collapsed to minimise visual impact and potential displacement of other images. | When this template ({{Tl|Composer navbox}}) is used to create a template for the works of a specific composer, say {{Tl|Handel}}, this parameter may be specified in that template in the form <tt><span style="background-color: yellow">expanded={{{expanded}}}</span></tt>; this will allow this parameter to be passed through when that template ({{Tl|Handel}}) is invoked from different articles where the expansion of a different section might be desired. '''Note''': the [[Wikipedia talk:WikiProject Opera|WikiProject Opera]] has formed a consensus that templates of works should generally be presented collapsed to minimise visual impact and potential displacement of other images. | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|list1name}}||''Optional'' – title for the first list, such as "Operas", "Symphonies"; defaults to "Operas". | |{{Para|list1name}}||''Optional'' – title for the first list, such as "Operas", "Symphonies"; defaults to "Operas". | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|list1}}||Items of the first list; items must be separated by <code><nowiki><br /></nowiki></code> or start on new lines with an asterisk (*) in the first position (see [[#Example|Example]] above). | |{{Para|list1}}||Items of the first list; items must be separated by <code><nowiki><br /></nowiki></code> or start on new lines with an asterisk (*) in the first position (see [[#Example|Example]] above). | ||
| − | |- | + | |- style="vertical-align:top;" |
|{{Para|list2name}}||Title for the second list, for example "Cantatas", "Other important music", or "Related articles" | |{{Para|list2name}}||Title for the second list, for example "Cantatas", "Other important music", or "Related articles" | ||
|- | |- | ||
Revision as of 14:20, 16 November 2014
| File:Edit-copy green.svg | This is a documentation subpage for Template:Composer sidebar. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | This infobox should italicize the article title automatically. If this is not required, add |italic title=no to the list of parameters. If this is required but the title is not being italicized, try |italic title=force. |
Usage
A full list of parameters is shown further below at All parameters. Simple usage:
{{Composer navbox
|name=Composer navbox <!-- Name of the template, e.g. Wagner operas -->
|title=
|image=
|alt=
|caption=
|list1name=
|list1=
* ''item 1''
* ''item 2''
* ''item 3''
* ''etc.''
|list2name=
|list2=
* ''item 1''
* ''item 2''
* ''item 3''
* ''etc.''
|list3name=
|list3=
* ''item 1''
* ''item 2''
* ''item 3''
* ''etc.''
...
}}
Up to five lists can be specified.
Example
{{Composer navbox
|name=Wagner operas
|title= Works by [[Richard Wagner]]
|image=Richard_Wagner,_Paris,_1861.jpg
|alt= Half-length portrait of mature man in dark cape
|caption=Wagner in 1861
|list1name=Operas
|list1=
*''[[Die Hochzeit]]'' (1832)
*''[[Die Feen]]'' (1833)
*''[[Das Liebesverbot]]'' (1836)
*''[[Männerlist größer als Frauenlist]] (1837–38)
*''[[Rienzi]]'' (1840)
*''[[The Flying Dutchman (opera)|Der fliegende Holländer]]'' (1843)
*''[[Tannhäuser (opera)|Tannhäuser]]'' (1845)
*''[[Lohengrin (Wagner)|Lohengrin]]'' (1848)
*''[[Tristan und Isolde]]'' (1859)
*''[[Die Meistersinger von Nürnberg]]'' (1867)
*''[[Der Ring des Nibelungen]]''
**''[[Das Rheingold]]'' (1869)
**''[[Die Walküre]]'' (1870)
**''[[Siegfried (opera)|Siegfried]]'' (1871)
**''[[Götterdämmerung]]'' (1874)
*''[[Parsifal]]'' (1882)
|list2name=Writings
|list2=
*''[[Art and Revolution]]'' (1849)
*''[[Das Judenthum in der Musik]]'' (1850)
*''[[Opera and Drama]]'' (1851)
}}<noinclude>
[[Category:Operas by composer templates|Wagner]]
</noinclude>
|
|
All parameters
|name= |
This is the name of the template, e.g. Template:Handel would use "Handel" in this box. |
|title= |
The title placed at the top, such as "Works by Richard Wagner" or "George Frideric Handel". The composer's name should be wikilinked by putting it in square brackets. |
|image= |
Optional – filename of the image, without the File: or Image: prefix; if omitted, no image will be shown. |
|alt= |
Alt text for the image, for visually impaired readers. See Alternative text for images. |
|imagesize= |
Optional – size of the image, in the form 170px; defaults to 190px. |
|caption= |
Optional - caption for the image. |
|h1color= |
Optional – colour for the title box surrounding the composer's name, in hexadecimal form, e.g. #DDBB9F or a recognised colour name, e.g. silver; defaults to silver (=#C0C0C0): Works by Richard Wagner |
|h2color= |
Optional – colour for the collapsed boxes (should usually be a lighter version of h1color); defaults to #DDDDDD: Operas |
|italic title= |
Optional – see note above. |italic title=no can be used on pages which use this template but where the article title should not be italicised; if a page contains more than one use of this template, the article title will be italicised unless all templates specify this parameter. |italic title=force can be used to force italics for the whole article title, including parentheses, or to enable italics for article titles longer than 50 characters; see {{italic title}}. For more complicated forms of italicising the article title, see the magic word {{DISPLAYTITLE:…}}.When this parameter is needed to disable italicising the article title of a page where a specific composer's template, say {{Bellini operas}}, is used, it needs to be specified in that template in the form italic title={{{italic title|}}}. |
|expanded= |
Optional – one of the listxname entries below which should be initially expanded; if omitted, all sections will initially be shown collapsed. When this template ({{Composer navbox}}) is used to create a template for the works of a specific composer, say {{Handel}}, this parameter may be specified in that template in the form expanded={{{expanded}}}; this will allow this parameter to be passed through when that template ({{Handel}}) is invoked from different articles where the expansion of a different section might be desired. Note: the WikiProject Opera has formed a consensus that templates of works should generally be presented collapsed to minimise visual impact and potential displacement of other images. |
|list1name= |
Optional – title for the first list, such as "Operas", "Symphonies"; defaults to "Operas". |
|list1= |
Items of the first list; items must be separated by <br /> or start on new lines with an asterisk (*) in the first position (see Example above).
|
|list2name= |
Title for the second list, for example "Cantatas", "Other important music", or "Related articles" |
|list2= |
Items of the second list. |
| … | More list names and items, up to five. |
Microformat
See also