Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(expanded documentation)
No edit summary
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{#explode:{{PAGENAME}}||-1}} }}<!--
<includeonly>{{#switch: {{lc:{{#explode:{{PAGENAME}}||-1}}}}<!--
-->
-->
|compositions = This category provides a list of [[{{#sub:{{PAGENAME}}||-13}}]] works on CPDL, sorted alphabetically by title of the works pages. {{#if:{{{sort|}}}|See the composer page for a list of works sorted by {{{sort}}}.}}
|compositions = This category provides a list of [[{{#sub:{{PAGENAME}}||-13}}]] works on CPDL, sorted alphabetically by title of the works pages. {{#if:{{{sort|}}}|See the composer page for a list of works sorted by {{{sort}}}.}}
__HIDDENCAT__
[[Category:Composer works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]<!--
[[Category:Compositions by composer categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]<!--


-->
|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: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}}]].
__HIDDENCAT__
[[Category:Editor works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-9}}}} }}}]]<!--
[[Category:Compositions by editor|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-9}}}} }}}]]<!--
 
-->
|requests    = This category lists score pages for which {{#sub:{{PAGENAME}}||-9}}s have been requested. Please help CPDL by adding the requested translation to the page. To find out more details of how to add texts and translations, please refer to the [[Help:How can I add a text or translation?|help page]]. For a list of score pages which already have their text added, [[:Category:Texts|click here]].
[[Category:Translation requests| {{PAGENAME}}]]<!--
 
-->
|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| ]]<!--


-->
-->
|settings    = A list of [[{{#sub:{{PAGENAME}}||-9}}]] settings by various composers.
|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}}.}}
__HIDDENCAT__
[[Category:Publications grouped by publication year| ]]<!--
[[Category:Lyricist settings categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-9}}}} }}}]]<!--


-->
-->
|composers    = {{ComposerNationality|{{#explode:{{PAGENAME}}|composers|0}} }}
|births      = {{Birthyr|{{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}}|{{#sub:{{#explode:{{PAGENAME}}||0}}|-1}}}}
|texts        = {{TextsByLangCatTxt|{{#explode:{{PAGENAME}}|texts|0}} }}
|deaths      = {{Deathyr|{{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}}|{{#sub:{{#explode:{{PAGENAME}}||0}}|-1}}}}
|translations = {{TranslationsCatTxt|{{#explode:{{PAGENAME}}|translations|0}} }}
|composers    = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}}}}
|#default    = <font color=red>ERROR: This template was not designed for this category!</font>
|texts        = {{TextsByLangCatTxt |{{#sub:{{PAGENAME}}|| -6}}}}
}}</includeonly><noinclude>
|translations = {{TranslationsCatTxt |{{#sub:{{PAGENAME}}||-13}}}}
{{DisplayBox|bgcolor=g|text=
|#default    = {{#switch: {{#sub:{{PAGENAME}}|0|8}}
A simple template that merges the functionality of three other templates:
    |Works in = {{WksLangTxt|{{#explode:{{PAGENAME}}|Works in|1}}}}
{{top}}
    |Pages in = List of all Documentation and Help pages that have been partially or totally translated into {{#explode:{{PAGENAME}}|Pages in|1}}.
* {{tl|CompCatTxt}}
 
* {{tl|EdCatTxt}}
===See also===
* {{tl|LyricistSettingsCat}}
*{{CiteCat|Works in {{#explode:{{PAGENAME}}|Pages in|1}}}}
{{middle}}
*{{CiteCat|{{#explode:{{PAGENAME}}|Pages in|1}} texts}}
(inside Category:<composer>_compositions)<br>
*{{CiteCat|{{#explode:{{PAGENAME}}|Pages in|1}} translations}}
(inside Category:<editor>_editions)<br>
[[Category:Translated pages|{{#explode:{{PAGENAME}}|Pages in|1}}]]
(inside Category:<lyricist>_settings)
 
{{bottom}}
    |#default = <font color=red>ERROR: The template {{tl|CatTxt}} was not designed for this category!</font>
}} }}</includeonly><!--
 
--><noinclude>{{DisplayBox|title=Documentation|text=
This multipurpose template adds proper header texts to the following types of categories:


It also works as an alias for these templates (still in test):
{{top}}
{{top}}
* {{tl|ComposerNationality}}
:'''Category name'''
* {{tl|TextsByLangCatTxt}}
:<tt>Category:<language>_translation_requests</tt>
* {{tl|TranslationsCatTxt}}
:<tt>Category:<editor>_editions</tt>
{{middle}}
:<tt>Category:<composer>_compositions</tt>
(inside Category:<nationality>_composers)<br>
:<tt>Category:<arranger>_arrangements</tt>
(inside Category:<language>_texts)<br>
:<tt>Category:<language>_texts</tt>
(inside Category:<language>_translations)
:<tt>Category:<language>_translations</tt>
:<tt>Category:<nationality>_composers</tt>
:<tt>Category:<year>_births</tt>
:<tt>Category:<year>_deaths</tt>
:<tt>Category:<year>_works</tt>
:<tt>Category:<year>_publications</tt>
:<tt>Category:Pages_in_<language></tt>
:<tt>Category:Works_in_<language></tt>
{{middle|3}}
:'''Mother category'''
:{{CiteCat|Translation requests}}
:{{CiteCat|Editor works categories}}
:{{CiteCat|Composer works categories}}
:{{CiteCat|Arranger works categories}}
:{{CiteCat|Texts (by language)}}
:{{CiteCat|Translations (by language)}}
:{{CiteCat|Composers grouped by nationality}}
:{{CiteCat|People grouped by birth year}}
:{{CiteCat|People grouped by death year}}
:{{CiteCat|Works grouped by publication year}}
:{{CiteCat|Publications grouped by publication year}}
:{{CiteCat|Translated pages}}
:{{CiteCat|Works by language}}
{{middle|3}}
:'''Comments'''
:original template
:replaces {{tl|EdCatTxt}}
:replaces {{tl|CompCatTxt}}
:replaces {{tl|ArrangerCatTxt}}
:alias for {{tl|TextsByLangCatTxt|<language>}}
:alias for {{tl|TranslationsCatTxt|<language>}}
:alias for {{tl|ComposerNationality|<nationality>}}
:alias for {{tl|Birthyr|<yea>|<r>}}
:alias for {{tl|Deathyr|<yea>|<r>}}
:original template
:original template
:original template
:alias for {{tl|WksLangTxt|<language>}}
{{bottom}}
{{bottom}}


;Usage: Just add {{tl|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:
;Usage: Just add {{tl|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:
:{{CatTxt}}
:{{CatTxt}}
;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:
:{{tl|CatTxt|Johnson, Alexander}}
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Category header templates]]</noinclude>

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}}