Template:Genre: Difference between revisions
Jump to navigation
Jump to search
(PAGENAME is conflicting with DEFAULTSORT inside works page) |
(complementing documentation) |
||
Line 12: | Line 12: | ||
{{DisplayBox|bgcolor=g|text= | {{DisplayBox|bgcolor=g|text= | ||
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. | ||
;Usage: | ;Normal usage: | ||
*<tt><nowiki>{{Genre|Sacred|Hymns}}</nowiki></tt> or<br> <tt><nowiki>{{Genre|sacred|hymns}}</nowiki></tt> | |||
;Usage with a sort key: | |||
*<tt><nowiki>{{Genre|Sacred|Chorales|Carols|<sort=Composer's surname, name>}}</nowiki></tt> or<br> <tt><nowiki>{{Genre|sacred|chorales|carols|<9=Composer's surname, name>}}</nowiki></tt> | *<tt><nowiki>{{Genre|Sacred|Chorales|Carols|<sort=Composer's surname, name>}}</nowiki></tt> or<br> <tt><nowiki>{{Genre|sacred|chorales|carols|<9=Composer's surname, name>}}</nowiki></tt> | ||
The optional <tt><sort=...></tt> parameter is only required for subgenres "Masses", "Morning Canticles", "Evening Canticles", "Communion Services" and "Preces and Responses"; it must be in the form "Composer's surname, name". All other categories will follow the sort key defined in the DEFAULTSORT of the page, when available. | The optional <tt><sort=...></tt> parameter is only required for subgenres "Masses", "Morning Canticles", "Evening Canticles", "Communion Services" and "Preces and Responses"; it must be in the form "Composer's surname, name". All other categories will follow the sort key defined in the DEFAULTSORT of the page, when available. |
Revision as of 22:30, 12 August 2012
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
- {{Genre|Sacred|Hymns}} or
{{Genre|sacred|hymns}}
- Usage with a sort key
- {{Genre|Sacred|Chorales|Carols|<sort=Composer's surname, name>}} or
{{Genre|sacred|chorales|carols|<9=Composer's surname, name>}}
The optional <sort=...> parameter is only required for subgenres "Masses", "Morning Canticles", "Evening Canticles", "Communion Services" and "Preces and Responses"; it must be in the form "Composer's surname, name". All other categories will follow the sort key defined in the DEFAULTSORT of the page, when available.