Template:Genre: Difference between revisions

From ChoralWiki
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:''' [[:Category:{{{1}}} music|{{{1}}}]][[Category:{{{1}}} music]]
|secular ='''Genre:''' {{cat|{{{1}}} music|{{{1}}}}}
|dual
|dual
|both = '''Genres:''' [[:Category:Secular music|Secular]] & [[:Category:Sacred music|Sacred]][[Category:Secular music]][[Category:Sacred music]]
|both ='''Genres:''' {{cat|Secular music|Secular}} & {{cat|Sacred music|Sacred}}
|'''Genre:''' [[:Category:{{{1}}} music|{{{1}}}]][[Category:{{{1}}} music]]
|#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 = ,&nbsp;[[:Category:Unknown genre|Unknown]][[Category:Unknown genre]]
|unknown =,&nbsp;{{cat|Unknown genre|Unknown}}
|requiems
|requiems
|communion services =,&nbsp;[[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|communion services =,&nbsp;{{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 =,&nbsp;[[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|evening canticles =,&nbsp;{{cat|{{{2}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|liturgical music
|liturgical music
|pagan music
|pagan music
|shape notes =,&nbsp;[[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}]]
|shape notes =,&nbsp;{{cat|{{{2}}}}}
|lieder =,&nbsp;[[:Category:Lieder|Lied]][[Category:Lieder]]
|lieder =,&nbsp;{{cat|Lieder|Lied}}
|masses =,&nbsp;[[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|masses =,&nbsp;{{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|symphonies
|symphonies
|responsories
|responsories
|offertories =,&nbsp;[[:Category:{{{2}}}|{{#sub: {{{2}}}||-3}}y]][[Category:{{{2}}}]]
|offertories =,&nbsp;{{cat|{{{2}}}|{{#sub: {{{2}}}||-3}}y}}
|,&nbsp;[[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}]]
|#default =,&nbsp;{{cat|{{{2}}}|{{#sub: {{{2}}}||-1}}}}
}}{{#switch: {{lc:{{{3|}}}}}
}}{{#switch: {{lc:{{{3|}}}}}
|=
|=
|other
|other
|unknown = ,&nbsp;[[:Category:Unknown genre|Unknown]][[Category:Unknown genre]]
|unknown =,&nbsp;{{cat|Unknown genre|Unknown}}
|requiems
|requiems
|communion services =,&nbsp;[[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|communion services =,&nbsp;{{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 =,&nbsp;[[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|evening canticles =,&nbsp;{{cat|{{{3}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|liturgical music
|liturgical music
|pagan music
|pagan music
|shape notes =,&nbsp;[[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]]
|shape notes =,&nbsp;{{cat|{{{3}}}}}
|lieder =,&nbsp;[[:Category:Lieder|Lied]][[Category:Lieder]]
|lieder =,&nbsp;{{cat|Lieder|Lied}}
|masses =,&nbsp;[[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|masses =,&nbsp;{{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|symphonies
|symphonies
|responsories
|responsories
|offertories =,&nbsp;[[:Category:{{{3}}}|{{#sub: {{{3}}}||-3}}y]][[Category:{{{3}}}]]
|offertories =,&nbsp;{{cat|{{{3}}}|{{#sub: {{{3}}}||-3}}y}}
|,&nbsp;[[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}]]
|#default =,&nbsp;{{cat|{{{3}}}|{{#sub: {{{3}}}||-1}}}}
}}{{#switch: {{lc:{{{4|}}}}}
}}{{#switch: {{lc:{{{4|}}}}}
|=
|=
|other
|other
|unknown = ,&nbsp;[[:Category:Unknown genre|Unknown]][[Category:Unknown genre]]
|unknown =,&nbsp;{{cat|Unknown genre|Unknown}}
|requiems
|requiems
|communion services =,&nbsp;[[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|communion services =,&nbsp;{{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 =,&nbsp;[[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|evening canticles =,&nbsp;{{cat|{{{4}}}|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|liturgical music
|liturgical music
|pagan music
|pagan music
|shape notes =,&nbsp;[[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}]]
|shape notes =,&nbsp;{{cat|{{{4}}}}}
|lieder =,&nbsp;[[:Category:Lieder|Lied]][[Category:Lieder]]
|lieder =,&nbsp;{{cat|Lieder|Lied}}
|masses =,&nbsp;[[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|masses =,&nbsp;{{cat|Masses|Mass|sort={{{sort|{{{9|{{PAGENAME}}}}}}}}}} {{#if:{{{sort|{{{9|}}}}}}||[[Category:Good-bad]]}}
|symphonies
|symphonies
|responsories
|responsories
|offertories =,&nbsp;[[:Category:{{{4}}}|{{#sub: {{{4}}}||-3}}y]][[Category:{{{4}}}]]
|offertories =,&nbsp;{{cat|{{{4}}}|{{#sub: {{{4}}}||-3}}y}}
|,&nbsp;[[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}]]
|#default =,&nbsp;{{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.