Template:Genre: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(simplified with {{cat}} and treated missing argument errors) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc:{{{1}}}}} | <includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
|sacred | |sacred | ||
|secular = '''Genre:''' | |secular ='''Genre:''' {{cat|{{{1}}} music|{{{1}}}}} | ||
|dual | |dual | ||
|both = '''Genres:''' | |both ='''Genres:''' {{cat|Secular music|Secular}} & {{cat|Sacred music|Sacred}} | ||
|'''Genre:''' [[:Category:{{{1 | |#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]] | ||
}}{{#switch: {{lc:{{{2|}}}}} | }}{{#switch: {{lc:{{{2|}}}}} | ||
|= | |=[[Category:Works with invalid genre]]<!-- the first sub-genre must not be empty --> | ||
|other | |other | ||
|unknown = , | |unknown =, {{cat|Unknown genre|Unknown}} | ||
|requiems | |requiems | ||
|communion services =, | |communion services =, {{cat|{{{2}}}|{{#sub: {{{2}}}||-1}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|preces and responses | |preces and responses | ||
|morning canticles | |morning canticles | ||
|evening canticles =, | |evening canticles =, {{cat|{{{2}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|liturgical music | |liturgical music | ||
|pagan music | |pagan music | ||
|shape notes =, | |shape notes =, {{cat|{{{2}}}}} | ||
|lieder =, | |lieder =, {{cat|Lieder|Lied}} | ||
|masses =, | |masses =, {{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|symphonies | |symphonies | ||
|responsories | |responsories | ||
|offertories =, | |offertories =, {{cat|{{{2}}}|{{#sub: {{{2}}}||-3}}y}} | ||
|, | |#default =, {{cat|{{{2}}}|{{#sub: {{{2}}}||-1}}}} | ||
}}{{#switch: {{lc:{{{3|}}}}} | }}{{#switch: {{lc:{{{3|}}}}} | ||
|= | |= | ||
|other | |other | ||
|unknown = , | |unknown =, {{cat|Unknown genre|Unknown}} | ||
|requiems | |requiems | ||
|communion services =, | |communion services =, {{cat|{{{3}}}|{{#sub: {{{3}}}||-1}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|preces and responses | |preces and responses | ||
|morning canticles | |morning canticles | ||
|evening canticles =, | |evening canticles =, {{cat|{{{3}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|liturgical music | |liturgical music | ||
|pagan music | |pagan music | ||
|shape notes =, | |shape notes =, {{cat|{{{3}}}}} | ||
|lieder =, | |lieder =, {{cat|Lieder|Lied}} | ||
|masses =, | |masses =, {{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|symphonies | |symphonies | ||
|responsories | |responsories | ||
|offertories =, | |offertories =, {{cat|{{{3}}}|{{#sub: {{{3}}}||-3}}y}} | ||
|, | |#default =, {{cat|{{{3}}}|{{#sub: {{{3}}}||-1}}}} | ||
}}{{#switch: {{lc:{{{4|}}}}} | }}{{#switch: {{lc:{{{4|}}}}} | ||
|= | |= | ||
|other | |other | ||
|unknown = , | |unknown =, {{cat|Unknown genre|Unknown}} | ||
|requiems | |requiems | ||
|communion services =, | |communion services =, {{cat|{{{4}}}|{{#sub: {{{4}}}||-1}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|preces and responses | |preces and responses | ||
|morning canticles | |morning canticles | ||
|evening canticles =, | |evening canticles =, {{cat|{{{4}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|liturgical music | |liturgical music | ||
|pagan music | |pagan music | ||
|shape notes =, | |shape notes =, {{cat|{{{4}}}}} | ||
|lieder =, | |lieder =, {{cat|Lieder|Lied}} | ||
|masses =, | |masses =, {{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}} | ||
|symphonies | |symphonies | ||
|responsories | |responsories | ||
|offertories =, | |offertories =, {{cat|{{{4}}}|{{#sub: {{{4}}}||-3}}y}} | ||
|, | |#default =, {{cat|{{{4}}}|{{#sub: {{{4}}}||-1}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{DisplayBox|bgcolor=g|text= | {{DisplayBox|bgcolor=g|text= |
Revision as of 19:50, 24 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.