Template:CatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(expanded documentation)
Line 1: Line 1:
{{#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 20: Line 20:
|translations = {{TranslationsCatTxt|{{#explode:{{PAGENAME}}|translations|0}} }}
|translations = {{TranslationsCatTxt|{{#explode:{{PAGENAME}}|translations|0}} }}
|#default    = <font color=red>ERROR: This template was not designed for this category!</font>
|#default    = <font color=red>ERROR: This template was not designed for this category!</font>
}}<noinclude>
}}</includeonly><noinclude>
{{DisplayBox|bgcolor=g|text=
{{DisplayBox|bgcolor=g|text=
A simple template that merges the functionality of three other templates:
A simple template that merges the functionality of three other templates:
{{top}}
* {{tl|CompCatTxt}}
* {{tl|CompCatTxt}}
* {{tl|EdCatTxt}}
* {{tl|EdCatTxt}}
* {{tl|LyricistSettingsCat}}
* {{tl|LyricistSettingsCat}}
{{middle}}
(inside Category:<composer>_compositions)<br>
(inside Category:<editor>_editions)<br>
(inside Category:<lyricist>_settings)
{{bottom}}


It also works as an alias for these templates (still in test):
It also works as an alias for these templates (still in test):
{{top}}
* {{tl|ComposerNationality}}
* {{tl|ComposerNationality}}
* {{tl|TextsByLangCatTxt}}
* {{tl|TextsByLangCatTxt}}
* {{tl|TranslationsCatTxt}}
* {{tl|TranslationsCatTxt}}
{{middle}}
(inside Category:<nationality>_composers)<br>
(inside Category:<language>_texts)<br>
(inside Category:<language>_translations)
{{bottom}}


;Usage: Just add {{tl|CatTxt}} to the new category.
;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}}
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 03:39, 29 January 2013


A simple template that merges the functionality of three other templates:

(inside Category:<composer>_compositions)
(inside Category:<editor>_editions)
(inside Category:<lyricist>_settings)

It also works as an alias for these templates (still in test):

(inside Category:<nationality>_composers)
(inside Category:<language>_texts)
(inside Category:<language>_translations)

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: This template was not designed for this category!