Difference between revisions of "Template:Genre"

From ChoralWiki
Jump to navigation Jump to search
(See also)
(case does matter for all but initial letter)
 
Line 14: Line 14:
 
This template 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.
 
This template 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 matter)
+
*{{tl|Genre|Sacred|Hymns}} <br> ({{tl|Genre|sacred|hymns}} will work too.)
  
 
;Usage with a sort key:  
 
;Usage with a sort key:  

Latest revision as of 18:02, 4 August 2021


Documentation

This template 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}}
    ({{Genre|sacred|hymns}} will work too.)
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. For composer names that do not follow the standard sorting rule ("last name, name(s)"), a sorting key can be added individually to each works page (as in the example above), or better yet, the composer name can be included as an exception to the Exceptions list of template LastNameFirst.

Adding new subgenres

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

See also