Template:Genre: Difference between revisions
(added option "Both" for work pages that have Madrigals and their sacred contrafactum) |
Richard Mix (talk | contribs) (case does matter for all but initial letter) |
||
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
|sacred | |||
|secular ='''Genre:''' {{cat|{{{1}}} music|{{{1}}}}} | |||
| | |dual | ||
| | |both ='''Genres:''' {{cat|Secular music|Secular}} & {{cat|Sacred music|Sacred}} | ||
}} | | ='''Genre:''' ({{cat|Works with invalid genre|missing}}) | ||
|#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]] | |||
| | }}{{#if:{{{2|}}} | ||
| | |{{Subgenre|{{{2}}}|{{{sort|{{{9|}}}}}}}}|[[Category:Works with invalid subgenre]]<!-- first subgenre must not be empty --> | ||
}}{{Subgenre|{{{3|}}}|{{{sort|{{{9|}}}}}} | |||
| | }}{{Subgenre|{{{4|}}}|{{{sort|{{{9|}}}}}} | ||
| | |||
| | |||
}}{{# | |||
| | |||
| | |||
| | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{ | {{Doc|1= | ||
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: | ||
*{{tl|Genre|Sacred|Hymns}} <br> ({{tl|Genre|sacred|hymns}} will work too.) | |||
;Usage with a sort key: | |||
*{{tl|Genre|Sacred|Chorales|Carols|sort{{=}}''La Rue, Pierre de''}} | |||
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. 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 {{CT|LastNameFirst}}. | |||
;Adding new subgenres | |||
The categorization by subgenres is performed inside the {{CT|Subgenre}} template. New subgenres can be added there according to the need. | |||
;See also: | |||
*[[ChoralWiki:Subgenres]] – List of subgenres in use | |||
}} | }} | ||
[[Category:Templates | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:02, 4 August 2021
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
- 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
- ChoralWiki:Subgenres – List of subgenres in use