Template:Genre: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(add sortkey)
m (Text replace - '|{{{9|{{PAGENAME}}}}}' to '')
Line 10: Line 10:
|Shape Notes =, [[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}]]
|Shape Notes =, [[:Category:{{{2}}}|{{{2}}}]][[Category:{{{2}}}]]
|Lieder =, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-2}}]][[Category:{{{2}}}]]
|Lieder =, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-2}}]][[Category:{{{2}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{2}}}|{{{9|{{PAGENAME}}}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{2}}}]]
|, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}]]
|, [[:Category:{{{2}}}|{{#sub: {{{2}}}||-1}}]][[Category:{{{2}}}]]
}}{{#switch: {{{3|}}}
}}{{#switch: {{{3|}}}
Line 19: Line 19:
|Shape Notes =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]]
|Shape Notes =, [[:Category:{{{3}}}|{{{3}}}]][[Category:{{{3}}}]]
|Lieder =, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-2}}]][[Category:{{{3}}}]]
|Lieder =, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-2}}]][[Category:{{{3}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{3}}}|{{{9|{{PAGENAME}}}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{3}}}]]
|, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}]]
|, [[:Category:{{{3}}}|{{#sub: {{{3}}}||-1}}]][[Category:{{{3}}}]]
}}{{#switch: {{{4|}}}
}}{{#switch: {{{4|}}}
Line 28: Line 28:
|Shape Notes =, [[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}]]
|Shape Notes =, [[:Category:{{{4}}}|{{{4}}}]][[Category:{{{4}}}]]
|Lieder =, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-2}}]][[Category:{{{4}}}]]
|Lieder =, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-2}}]][[Category:{{{4}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{4}}}|{{{9|{{PAGENAME}}}}}]]
|Masses =, [[:Category:Masses|Mass]][[Category:{{{4}}}]]
|, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}]]
|, [[:Category:{{{4}}}|{{#sub: {{{4}}}||-1}}]][[Category:{{{4}}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 06:16, 15 December 2008


Creates a text Genre: with links to the genre (sacred/secular) and subgenre(s) categories (up to 3 subgenres) and categorizes the page accordingly.

Usage
{{Genre|Sacred|Chorales|Christmas|Carols|9=sortkey}}

The sortkey is for the moment only used for Category:Masses; it should be composer's "surname, name". All other categories will follow the DEFAULTSORT: of the page if available.