Skabelon:Komponist navboks
Nedenfor kan du se de oplysninger der skal inkluderes i skabelonen, der oprindeligt er en kopi fra den engelske Template:Composer navbox.
- {{Sidebar with collapsible lists}}, der bygger på:
- {{Sidebar}}, begge såkaldte metaskabeloner, der ikke bruges direkte
Op til fem lister kan specificeres i denne skabelon. Husk at benytte forhåndsvisning-knappen.
Grundlæggende syntaks med alle valgmuligheder
[rediger kildetekst]A full list of parameters is shown further below at Alle parametre. Simple usage:
{{Composer navbox
|name = Composer navbox <!-- Skabelonens navn, f.eks. Wagner operaer -->
|title =
|image =
|alt =
|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.''
...
}}
Eksempel af brug
[rediger kildetekst]
{{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
|list1name=Operas
|list1=
*''[[Die Hochzeit]]'' (1832)
*''[[Die Feen]]'' (1833)
*''[[Das Liebesverbot]]'' (1836)
*''[[Männerlist grösser als Frauenlist]] (1837–38)
*''[[Rienzi]]'' (1840)
*''[[The Flying Dutchman (opera)|Der fliegende Holländer]]'' (1843)
*''[[Tannhäuser (opera)|Tannhäuser]]'' (1845)
*''[[Lohengrin (opera)|Lohengrin]]'' (1848)
*''[[Tristan og Isolde|Tristan und Isolde]]'' (1859)
*''[[Mestersangerne i Nürnberg|Die Meistersinger von Nürnberg]]'' (1867)
*''[[Nibelungens Ring|Der Ring des Nibelungen]]''
**''[[Rhinguldet|Das Rheingold]]'' (1869)
**''[[Valkyrien|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>
[[:en:Category:Operas by composer templates]]
</noinclude-->
|
|
Alle parametre
[rediger kildetekst]|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. |
|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 |
|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
[rediger kildetekst]{{UF-hcard-person}} - en:template:UF-hcard-person, makes the person's details parsable by computers