Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(equivalence with {{ArrangerCatTxt}} and example of sort key in documentation)
m (oops)
Line 6: Line 6:
-->
-->
|arrangements = This category provides a list of arrangements by [[{{#sub:{{PAGENAME}}||-13}}]] on CPDL of works originally by a different composer, sorted alphabetically by title of the works pages. {{#if:{{{sort|}}}|See the arranger page for a list of works sorted by {{{sort}}}.}}
|arrangements = This category provides a list of arrangements by [[{{#sub:{{PAGENAME}}||-13}}]] on CPDL of works originally by a different composer, sorted alphabetically by title of the works pages. {{#if:{{{sort|}}}|See the arranger page for a list of works sorted by {{{sort}}}.}}
[[Category:Composer works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]<!--
[[Category:Arranger works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]<!--
-->
-->
|editions    = This category lists works with editions provided by [[User:{{#sub:{{PAGENAME}}||-9}}|{{#sub:{{PAGENAME}}||-9}}]].
|editions    = This category lists works with editions provided by [[User:{{#sub:{{PAGENAME}}||-9}}|{{#sub:{{PAGENAME}}||-9}}]].

Revision as of 18:32, 5 June 2019

Documentation

This multipurpose template adds proper header texts to the following types of categories:

Category:<language>_translation_requests
Category:<editor>_editions
Category:<composer>_compositions
Category:<arranger>_arrangements
Category:<language>_texts
Category:<language>_translations
Category:<nationality>_composers
Category:<year>_works
Category:<year>_publications
Category:Pages_in_<language>
Category:Works_in_<language>
original template
replaces {{EdCatTxt}}
replaces {{CompCatTxt}}
replaces {{ArrangerCatTxt}}
alias for {{TextsByLangCatTxt|<language>}}
alias for {{TranslationsCatTxt|<language>}}
alias for {{ComposerNationality|<nationality>}}
original template
original template
original template
alias for {{WksLangTxt|<language>}}
Usage
Just add {{CatTxt}} to the new category. If it is added by mistake to a different category than the ones listed above, a warning message is displayed:
ERROR: The template {{CatTxt}} was not designed for this category!
Syntax with sort key
Categories that contain a name (be it a composer, arranger or editor) are automatically sorted by the person's last name. If that is not the desirable result, a sort key can be added as a parameter:
{{CatTxt|Johnson, Alexander}}