Template:Genre

From ChoralWiki
Revision as of 22:03, 16 February 2015 by Carlos (talk | contribs) (updated doc)
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}} (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.