Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(added arguments in the examples)
Line 26: Line 26:
|#default    = {{#ifeq: {{#sub:{{PAGENAME}}|0|8}}|Works in
|#default    = {{#ifeq: {{#sub:{{PAGENAME}}|0|8}}|Works in
   |            {{WksLangTxt|{{#explode:{{PAGENAME}}|Works in|1}} }}
   |            {{WksLangTxt|{{#explode:{{PAGENAME}}|Works in|1}} }}
   |<font color=red>ERROR: This template was not designed for this category!</font>
   |<font color=red>ERROR: The template {{tl|CatTxt}} was not designed for this category!</font>
}} }}</includeonly><noinclude>
}} }}</includeonly><!--
{{DisplayBox|title=Documentation|text=
 
--><noinclude>{{DisplayBox|title=Documentation|text=
A simple template that adds the proper text for each of the following category types:
A simple template that adds the proper text for each of the following category types:


Line 45: Line 46:
:replaces {{tl|CompCatTxt}}
:replaces {{tl|CompCatTxt}}
:replaces {{tl|LyricistSettingsCat}}
:replaces {{tl|LyricistSettingsCat}}
:alias for {{tl|TextsByLangCatTxt}}
:alias for {{tl|TextsByLangCatTxt|<language>}}
:alias for {{tl|TranslationsCatTxt}}
:alias for {{tl|TranslationsCatTxt|<language>}}
:alias for {{tl|ComposerNationality}}
:alias for {{tl|ComposerNationality|<nationality>}}
:alias for {{tl|WksLangTxt}}
:alias for {{tl|WksLangTxt|<language>}}
{{bottom}}
{{bottom}}



Revision as of 23:43, 1 May 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:Works_in_<language>
 
replaces {{EdCatTxt}}
replaces {{CompCatTxt}}
replaces {{LyricistSettingsCat}}
alias for {{TextsByLangCatTxt|<language>}}
alias for {{TranslationsCatTxt|<language>}}
alias for {{ComposerNationality|<nationality>}}
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!