Template:Genre: Difference between revisions
Jump to navigation
Jump to search
(added parameter "sort" and updated documentation) |
(made Dual = Both) |
||
Line 1: | Line 1: | ||
<includeonly><b>Genre:</b> {{#switch: {{{1}}} | <includeonly><b>Genre:</b> {{#switch: {{lc:{{{1}}}}} | ||
| | |sacred | ||
| | |secular = [[:Category:{{{1}}} music|{{{1}}}]][[Category:{{{1}}} music]] | ||
| | |dual | ||
|both = [[:Category:Secular music|Secular]] & [[:Category:Sacred music|Sacred]][[Category:Secular music]][[Category:Sacred music]] | |||
|[[:Category:{{{1}}} music|{{{1}}}]][[Category:{{{1}}} music]] | |[[:Category:{{{1}}} music|{{{1}}}]][[Category:{{{1}}} music]] | ||
}}{{#switch: {{{2|}}} | }}{{#switch: {{lc:{{{2|}}}}} | ||
|= | |= | ||
| | |requiems | ||
| | |communion services =, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |preces and responses | ||
| | |morning canticles | ||
| | |evening canticles =, [[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |liturgical music | ||
| | |shape notes =, [[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}]] | ||
| | |lieder =, [[:Category:Lieder|Lied]][[Category:Lieder]] | ||
| | |masses =, [[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
|, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}]] | |, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}]] | ||
}}{{#switch: {{{3|}}} | }}{{#switch: {{{3|}}} | ||
|= | |= | ||
| | |requiems | ||
| | |communion services =, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |preces and responses | ||
| | |morning canticles | ||
| | |evening canticles =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |liturgical music | ||
| | |shape notes =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]] | ||
| | |lieder =, [[:Category:Lieder|Lied]][[Category:Lieder]] | ||
| | |masses =, [[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
|, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}]] | |, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}]] | ||
}}{{#switch: {{{4|}}} | }}{{#switch: {{{4|}}} | ||
|= | |= | ||
| | |requiems | ||
| | |communion services =, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |preces and responses | ||
| | |morning canticles | ||
| | |evening canticles =, [[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
| | |liturgical music | ||
| | |shape notes =, [[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}]] | ||
| | |lieder =, [[:Category:Lieder|Lied]][[Category:Lieder]] | ||
| | |masses =, [[:Category:Masses|Mass]][[Category:Masses|{{{sort|{{{9|{{PAGENAME}}}}}}}}]] | ||
|, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}]] | |, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{DisplayBox|bgcolor=g|text= | {{DisplayBox|bgcolor=g|text= | ||
Creates a text '''Genre:''' with links to | 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: <tt><nowiki>{{Genre|Sacred|Chorales|Carols|sort=Composer's surname, name}}</nowiki></tt> | ;Usage: | ||
The | *<tt><nowiki>{{Genre|Sacred|Chorales|Carols|<sort=Composer's surname, name>}}</nowiki></tt> or<br> <tt><nowiki>{{Genre|sacred|chorales|carols|<9=Composer's surname, name>}}</nowiki></tt> | ||
The optional <tt><sort=...></tt> 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. | |||
}} | }} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 01:38, 30 April 2009
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.