Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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}}}.}}
Line 21: Line 21:


-->
-->
|composers    = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}} }}
|composers    = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}}}}
|texts        = {{TextsByLangCatTxt|{{#sub:{{PAGENAME}}||-6}} }}
|texts        = {{TextsByLangCatTxt |{{#sub:{{PAGENAME}}|| -6}}}}
|translations = {{TranslationsCatTxt|{{#sub:{{PAGENAME}}||-13}} }}
|translations = {{TranslationsCatTxt |{{#sub:{{PAGENAME}}||-13}}}}
|#default    = {{#switch: {{#sub:{{PAGENAME}}|0|8}}
|#default    = {{#switch: {{#sub:{{PAGENAME}}|0|8}}
     |Works in = {{WksLangTxt|{{#explode:{{PAGENAME}}|Works in|1}} }}
     |Works in = {{WksLangTxt|{{#explode:{{PAGENAME}}|Works in|1}}}}
     |Pages in = List of all Documentation and Help pages that have been partially or totally translated into {{#explode:{{PAGENAME}}|Pages in|1}}.
     |Pages in = List of all Documentation and Help pages that have been partially or totally translated into {{#explode:{{PAGENAME}}|Pages in|1}}.


Line 38: Line 38:


--><noinclude>{{DisplayBox|title=Documentation|text=
--><noinclude>{{DisplayBox|title=Documentation|text=
A simple template that adds the proper text for each of the following category types:
This multifunctional template adds the proper header text for each of the following types of categories:


{{top}}
{{top}}

Revision as of 02:42, 9 June 2013

Documentation

This multifunctional template adds the proper header text for each of the following types of categories:

Category:<language>_translation_requests
Category:<editor>_editions
Category:<composer>_compositions
Category:<lyricist>_settings
Category:<language>_texts
Category:<language>_translations
Category:<nationality>_composers
Category:Pages_in_<language>
Category:Works_in_<language>
original template
replaces {{EdCatTxt}}
replaces {{CompCatTxt}}
replaces {{LyricistSettingsCat}}
alias for {{TextsByLangCatTxt|<language>}}
alias for {{TranslationsCatTxt|<language>}}
alias for {{ComposerNationality|<nationality>}}
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!