Template:CompCatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (removed 'Hidden' from category name)
m (not really necessary to be hidden)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|
<includeonly>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}}}}}.
This category provides a list of [[{{{1}}} {{{2}}}]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself{{#if:{{{sort|}}}|, with works sorted by {{{sort}}},|,}} [[{{{1}}} {{{2}}}|click here]].


[[Category:Compositions by composer|{{{2}}}, {{{1}}}]]
[[Category:Composer works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]</includeonly><noinclude>
|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}}}.|.}}
 
[[Category:Compositions by composer categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]] __HIDDENCAT__ }}</includeonly><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>
{{DisplayBox|bgcolor=g|text=
{{DisplayBox|bgcolor=g|text=
<center><big>'''Documentation'''</big></center>
<center><big>'''Usage'''</big></center>
 
This template is for adding the generic descriptive information for [[:Category:Compositions by composer|compositions by composer categories]]. There are three parameters: the first two are required and the other is optional.
 
'''Syntax example, with the first two parameters only:'''
<pre>{{CompCatTxt|John|Ireland}}</pre>
which inserts the text
:This category provides a list of [[John Ireland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, [[John Ireland|click here]].
 
'''Syntax example with additional parameter: sort=<sortmethod>'''
<pre>{{CompCatTxt|John|Dowland|sort=publication}}</pre>
which inserts the text
:This category provides a list of [[John Dowland]] works on CPDL, sorted alphabetically by title of the works pages. For the composer page itself, with works sorted by publication, [[John Dowland|click here]].
 
'''Note:''' The discontinued parameter <tt>complete{{eq}}yes (or no)</tt> now has no effect, since the {{CiteTemp|Composer}} template keeps the lists provided by these "<Composer Name> compositions" categories up to date.
}}
{{DisplayBox|bgcolor=r|text=
<center><big>'''Alternative usage'''</big></center>


'''Syntax:'''
'''Syntax:'''
<pre>{{CompCatTxt}}</pre>
:{{tl|CompCatTxt}}
which inserts the text
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
The ''<composer>'' field is automatically extracted from the page name. The page is included in category {{CiteCat|Compositions by composer categories}}, sorted by ''<composer>'''s last name.
The ''<composer>'' field is automatically extracted from the page name. The page is included in category {{CiteCat|Composer works categories}}, sorted by ''<composer>'''s last name.


'''Syntax with sort key:'''
'''Syntax with sort key:'''
<pre>{{CompCatTxt|Vaughan Williams, Ralph}}</pre>
:{{tl|CompCatTxt|Vaughan Williams, Ralph}}
which inserts the text
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
The ''<composer>'' field is automatically extracted from the category's name. The page is included in category {{CiteCat|Compositions by composer categories}}, using the sort key "Vaughan Williams, Ralph".
The ''<composer>'' field is automatically extracted from the category's name. The page is included in category {{CiteCat|Composer works categories}}, using the sort key "Vaughan Williams, Ralph".


In both cases, the category link ("''<composer>''_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).
In both cases, the category link ("''<composer>''_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).
}}
}}
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Category header templates]]
</noinclude>
</noinclude>

Revision as of 03:19, 3 November 2014


Usage

Syntax:

{{CompCatTxt}}

which inserts the text

This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.

The <composer> field is automatically extracted from the page name. The page is included in category Composer works categories, sorted by <composer>'s last name.

Syntax with sort key:

{{CompCatTxt|Vaughan Williams, Ralph}}

which inserts the text

This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.

The <composer> field is automatically extracted from the category's name. The page is included in category Composer works categories, using the sort key "Vaughan Williams, Ralph".

In both cases, the category link ("<composer>_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).