Template:Genre: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(PAGENAME is conflicting with DEFAULTSORT inside works page)
Line 6: Line 6:
|#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]]
|#default ='''Genre:''' [[:Category:Unknown genre|{{{1|Unknown}}}]][[Category:Works with invalid genre]]
}}{{#if:{{{2|}}}
}}{{#if:{{{2|}}}
|{{Subgenre|{{{2}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}}}|[[Category:Works with invalid genre]]<!-- first subgenre must not be empty -->
|{{Subgenre|{{{2}}}|{{{sort|{{{9|}}}}}}}}|[[Category:Works with invalid genre]]<!-- first subgenre must not be empty -->
}}{{Subgenre|{{{3|}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}
}}{{Subgenre|{{{3|}}}|{{{sort|{{{9|}}}}}}
}}{{Subgenre|{{{4|}}}|{{{sort|{{{9|{{PAGENAME}}}}}}}}
}}{{Subgenre|{{{4|}}}|{{{sort|{{{9|}}}}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{DisplayBox|bgcolor=g|text=
{{DisplayBox|bgcolor=g|text=

Revision as of 19:32, 12 August 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.