قالب:Composer navbox/doc
هذه صفحة توثيق فرعية لـ قالب:Composer navbox. تتضمن معلومات الاستعمال، التصنيفات وأي محتوى آخر ليس من محتويات الأصل لصفحة القالب. |
هذا الجدول ينبغي أن يجعل عنوان الصفحة مائلاً تلقائياً. إذا لم يكن هذا مرغوباً، أضف |italic title=no إلى قائمة المتغيرات. أما إذا كان مرغوباً ولكن العنوان لا يظهر مائلاً، جرِّب |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= |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 |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 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> [[تصنيف:قوالب اوپرات حسب الملحن|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. |
|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
The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
See also