Difference between revisions of "Template:ArrangementsList"

From ChoralWiki
Jump to navigation Jump to search
Line 13: Line 13:
 
|noresultsheader=0
 
|noresultsheader=0
 
|allowcachedresults=false}} > 10
 
|allowcachedresults=false}} > 10
|<!-- if more than 10 results, display in two columns by default
+
|<!-- if more than 10 results, display in three columns by default
 
--><h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements
 
--><h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements
 
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions
 
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions
 
|notcategory=Text pages
 
|notcategory=Text pages
|columns={{{2|{{{cols|2}}}}}}
+
|columns={{{2|{{{cols|3}}}}}}
 
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
 
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
 
|rowcolformat=width=100%
 
|rowcolformat=width=100%

Revision as of 16:17, 7 May 2021

Documentation

This template is intended for use on a composer page or CPDL editor page. It displays a list of arrangements by a given composer. The pages will be listed only if the page does not contain the template {{Arranger}}, but an edition on the page is assigned to Category:<composer-name> arrangements.

Basic syntax
{{ArrangementsList}}
Usage with optional parameters
{{ArrangementsList|composer_name|num_columns|max_title_length}}
Usage with named parameters (in any position)
{{ArrangementsList|maxlen=max_title_length|cols=num_columns|name=composer_name}}
Examples

1.

{{ArrangementsList}} (on Joseph Noyon page)
Yields

Arrangements by Joseph Noyon