Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Pages_in_<language>)
mNo edit summary
Line 21: Line 21:


-->
-->
|composers    = {{ComposerNationality|{{#explode:{{PAGENAME}}|composers|0}} }}
|composers    = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}} }}
|texts        = {{TextsByLangCatTxt|{{#explode:{{PAGENAME}}|texts|0}} }}
|texts        = {{TextsByLangCatTxt|{{#sub:{{PAGENAME}}||-6}} }}
|translations = {{TranslationsCatTxt|{{#explode:{{PAGENAME}}|translations|0}} }}
|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}} }}

Revision as of 01:41, 9 June 2013

Documentation

A simple template that adds the proper text for each of the following category types:

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!