Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (spaces aren't welcome here)
No edit summary
(2 intermediate revisions by 2 users not shown)
Line 16: Line 16:


-->
-->
|works        = List of works first published in {{#sub:{{PAGENAME}}||-6}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-6}} publications | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-6}} publications|publications first issued]] in {{#sub:{{PAGENAME}}||-6}}.}}
|works        = List of works published in {{#sub:{{PAGENAME}}||-6}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-6}} publications | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-6}} publications|publications issued]] in {{#sub:{{PAGENAME}}||-6}}.}}
[[Category:Works grouped by publication year| ]]<!--
[[Category:Works grouped by publication year| ]]<!--


-->
-->
|publications = List of publications first issued in {{#sub:{{PAGENAME}}||-13}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-13}} works | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-13}} works|works first published]] in {{#sub:{{PAGENAME}}||-13}}.}}
|publications = List of publications issued in {{#sub:{{PAGENAME}}||-13}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-13}} works | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-13}} works|works published]] in {{#sub:{{PAGENAME}}||-13}}.}}
[[Category:Publications grouped by publication year| ]]<!--
[[Category:Publications grouped by publication year| ]]<!--



Revision as of 04:32, 5 January 2021

Documentation

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

Category name
Category:<language>_translation_requests
Category:<editor>_editions
Category:<composer>_compositions
Category:<arranger>_arrangements
Category:<language>_texts
Category:<language>_translations
Category:<nationality>_composers
Category:<year>_births
Category:<year>_deaths
Category:<year>_works
Category:<year>_publications
Category:Pages_in_<language>
Category:Works_in_<language>
Mother category
Translation requests
Editor works categories
Composer works categories
Arranger works categories
Texts (by language)
Translations (by language)
Composers grouped by nationality
People grouped by birth year
People grouped by death year
Works grouped by publication year
Publications grouped by publication year
Translated pages
Works by language
Comments
original template
replaces {{EdCatTxt}}
replaces {{CompCatTxt}}
replaces {{ArrangerCatTxt}}
alias for {{TextsByLangCatTxt|<language>}}
alias for {{TranslationsCatTxt|<language>}}
alias for {{ComposerNationality|<nationality>}}
alias for {{Birthyr|<yea>|<r>}}
alias for {{Deathyr|<yea>|<r>}}
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}}