Template:Genre: Difference between revisions

From ChoralWiki
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:
*<tt><nowiki>{{Genre|Sacred|Hymns}}</nowiki></tt> or<br> <tt><nowiki>{{Genre|sacred|hymns}}</nowiki></tt>
*{{tl|Genre|Sacred|Hymns}} or<br> {{tl|Genre|sacred|hymns}} (case doesn't matters)


;Usage with a sort key:  
;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>
*{{tl|Genre|Sacred|Chorales|Carols|sort{{=}}''La Rue, Pierre de''}}
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". When a sort key is lacking for these subgenres, the work is listed in {{CiteCat|Works lacking genre sort key}}. All other genre categories will follow the sort key defined in the DEFAULTSORT of the page, when available.
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 template {{tl|Subgenre}}. New subgenres can be added there according to the need.
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
  • {{Genre|Sacred|Hymns}} or
    {{Genre|sacred|hymns}} (case doesn't matters)
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.