Template:Genre

From ChoralWiki
Revision as of 05:34, 11 July 2014 by Carlos (talk | contribs) (link to Subgenre)
Jump to navigation Jump to search


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". When a sort key is lacking for these subgenres, the work is listed in Works lacking genre sort key. All other genre categories will follow the sort key defined in the DEFAULTSORT of the page, when available.

Adding new subgenres

The categorization by subgenres is performed inside template {{Subgenre}}. New subgenres can be added there according to the need.