Difference between revisions of "Template:ArrangementsList"

From ChoralWiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}}=0||{{#ifexpr: {{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}} > 10|<!-- if more than 10 results, display in three columns by default-->{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|columns={{{2|{{{cols|3}}}}}}|titlemaxlength={{{3|{{{maxlen|100}}}}}}|rowcolformat=width=100%|order=ascending|ordermethod=sortkey|allowcachedresults=false|resultsheader=<h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>|noresultsheader=&nbsp;}}|<!-- if else, display in one column by default-->{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|columns={{{2|{{{cols|1}}}}}}|titlemaxlength={{{3|{{{maxlen|100}}}}}}|rowcolformat=width=100%|order=ascending|ordermethod=sortkey|allowcachedresults=false|resultsheader=<h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>|noresultsheader=&nbsp;}}}}}}</includeonly><noinclude><!--
+
<includeonly>{{#ifexpr:{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}}=0||{{#ifexpr: {{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}}>10|{{#ifeq:{{{dis|yes}}}|no||<h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>}}{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|columns={{{2|{{{cols|3}}}}}}|titlemaxlength={{{3|{{{maxlen|100}}}}}}|rowcolformat=width=100%|order=ascending|ordermethod=sortkey|allowcachedresults=false|noresultsheader=''No results.''}}|{{#ifeq:{{{dis|yes}}}|no||<h2>Arrangements by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>}}{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} arrangements|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|columns={{{2|{{{cols|1}}}}}}|titlemaxlength={{{3|{{{maxlen|100}}}}}}|rowcolformat=width=100%|order=ascending|ordermethod=sortkey|allowcachedresults=false|noresultsheader=''No results.''}}}}}}[[Category:Composer pages using ArrangementsList]]</includeonly><noinclude><!--
 
-->{{DisplayBox|title=Documentation|text=
 
-->{{DisplayBox|title=Documentation|text=
  
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 {{tl|Arranger}}, but an edition on the page is assigned to Category:<composer-name> arrangements.
+
This template is intended for use on a composer page or CPDL editor page. It displays a list of arrangements by a given composer, and categorizes the page in "Category:Composer pages using ArrangementsList". The pages will be listed only if the page does '''not''' contain the template {{tl|Arranger}}, but an edition on the page is assigned to Category:<composer-name> arrangements.
  
 
;Basic syntax: {{tl|ArrangementsList}}
 
;Basic syntax: {{tl|ArrangementsList}}
Line 11: Line 11:
  
 
;<u>Examples</u>
 
;<u>Examples</u>
'''1.'''
+
'''1.''' <tt><nowiki>{{ArrangementsList}}</nowiki></tt> (on Joseph Noyon page)
:<tt><nowiki>{{ArrangementsList}}</nowiki></tt> (on Joseph Noyon page)
 
 
:Yields
 
:Yields
{{ArrangementsList|Joseph Noyon}}
+
==Arrangements by Joseph Noyon==
+
:<font color=blue>Ô Nuit (Jean-Philippe Rameau)</font>
 
}}
 
}}
 
[[Category:Experimental templates]]
 
[[Category:Experimental templates]]
 
[[Category:DPL templates]]</noinclude>
 
[[Category:DPL templates]]</noinclude>

Latest revision as of 15:58, 3 September 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, and categorizes the page in "Category:Composer pages using ArrangementsList". 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

Ô Nuit (Jean-Philippe Rameau)