Template:Genre: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(temporary hack to list sacred works without sort key)
m (move "pagan music" to non-sortkey treatment)
Line 29: Line 29:
|requiems
|requiems
|communion services =, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|communion services =, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|pagan music
|preces and responses
|preces and responses
|morning canticles
|morning canticles
|evening canticles =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|evening canticles =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|liturgical music
|liturgical music
|pagan music
|shape notes =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]]
|shape notes =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]]
|lieder =, [[:Category:Lieder|Lied]][[Category:Lieder]]
|lieder =, [[:Category:Lieder|Lied]][[Category:Lieder]]

Revision as of 16:26, 22 February 2012


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.

Usage
  • {{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". All other categories will follow the sort key defined in the DEFAULTSORT of the page, when available.