Template:Genre: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(link to categ)
(a separate category for subgenre)
Line 6: Line 6:
|#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]]
|#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]]
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
|{{Subgenre|{{{2}}}|{{{sort|{{{9|}}}}}}}}|[[Category:Works with invalid genre]]<!-- first subgenre must not be empty -->
|{{Subgenre|{{{2}}}|{{{sort|{{{9|}}}}}}}}|[[Category:Works with invalid subgenre]]<!-- first subgenre must not be empty -->
}}{{Subgenre|{{{3|}}}|{{{sort|{{{9|}}}}}}
}}{{Subgenre|{{{3|}}}|{{{sort|{{{9|}}}}}}
}}{{Subgenre|{{{4|}}}|{{{sort|{{{9|}}}}}}
}}{{Subgenre|{{{4|}}}|{{{sort|{{{9|}}}}}}

Revision as of 18:13, 17 May 2014


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.