Template:Genre: Difference between revisions
Jump to navigation
Jump to search
(link to Subgenre) |
(updated doc) |
||
Line 13: | Line 13: | ||
Creates a text '''Genre:''' with links to genre (options: "Sacred", "Secular", and "Dual" or "Both") and subgenre(s) categories (up to 3 subgenres) and categorizes the work page accordingly. | Creates a text '''Genre:''' with links to genre (options: "Sacred", "Secular", and "Dual" or "Both") and subgenre(s) categories (up to 3 subgenres) and categorizes the work page accordingly. | ||
;Normal usage: | ;Normal usage: | ||
* | *{{tl|Genre|Sacred|Hymns}} or<br> {{tl|Genre|sacred|hymns}} (case doesn't matters) | ||
;Usage with a sort key: | ;Usage with a sort key: | ||
* | *{{tl|Genre|Sacred|Chorales|Carols|sort{{=}}''La Rue, Pierre de''}} | ||
The optional | The optional {{para|sort}} parameter is only required for subgenres {{CiteCat|Masses}}, {{CiteCat|Requiems}}, {{CiteCat|Morning Canticles}}, {{CiteCat|Evening Canticles}}, {{CiteCat|Communion Services}} and {{CiteCat|Preces and Responses}}. A standard sort key in the form "Composer's last name, name(s)" is automatically provided by the system. All other genre categories will follow the sort key defined by the page's DEFAULTSORT, when one is set. | ||
;Adding new subgenres | ;Adding new subgenres | ||
The categorization by subgenres is performed inside | The categorization by subgenres is performed inside the {{tl|Subgenre}} template. New subgenres can be added there according to the need. | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 22:03, 16 February 2015
Creates a text Genre: with links to genre (options: "Sacred", "Secular", and "Dual" or "Both") and subgenre(s) categories (up to 3 subgenres) and categorizes the work page accordingly.
- Normal usage
- Usage with a sort key
- {{Genre|Sacred|Chorales|Carols|sort=La Rue, Pierre de}}
The optional |sort=
parameter is only required for subgenres Masses, Requiems, Morning Canticles, Evening Canticles, Communion Services and Preces and Responses. A standard sort key in the form "Composer's last name, name(s)" is automatically provided by the system. All other genre categories will follow the sort key defined by the page's DEFAULTSORT, when one is set.
- Adding new subgenres
The categorization by subgenres is performed inside the {{Subgenre}} template. New subgenres can be added there according to the need.