Difference between revisions of "Template:LyricistSettingsList"

From ChoralWiki
Jump to navigation Jump to search
(Amended, so that when settings are zero, no display)
 
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#dpl:category=Works with texts by known authors
+
<includeonly>{{#ifexpr: {{#dpl:category=Works with texts by known authors|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}}>10|<h2>Settings of text by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category=Works with texts by known authors|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|columns={{{2|{{{cols|2}}}}}}|titlemaxlength={{{3|{{{maxlen|100}}}}}}|rowcolformat=width=100%|order=ascending|ordermethod=sortkey|allowcachedresults=false|noresultsheader=''No results.''}}|{{#ifexpr: {{#dpl:category=Works with texts by known authors|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions|notcategory=Text pages|distinct=false|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=false}}<1||<h2>Settings of text by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category=Works with texts by known authors|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings|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}}}}}}[[Category:Lyricists]]</includeonly><noinclude><!--
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings
 
|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 two columns by default
 
--><h2>Settings of text by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category=Works with texts by known authors
 
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings
 
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} compositions
 
|notcategory=Text pages
 
|columns={{{2|{{{cols|2}}}}}}
 
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
 
|rowcolformat=width=100%
 
|order=ascending
 
|ordermethod=sortkey
 
|allowcachedresults=false
 
|noresultsheader=''No results.''
 
}}
 
|<!-- if else, display in one column by default
 
--><h2>Settings of text by {{{1|{{{name|{{PAGENAME}}}}}}}}</h2>{{#dpl:category=Works with texts by known authors
 
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}} settings
 
|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:Lyricists]]</includeonly><noinclude><!--
 
 
-->{{DisplayBox|title=Documentation|text=
 
-->{{DisplayBox|title=Documentation|text=
  

Latest revision as of 03:33, 21 August 2021

Documentation

Displays a list of settings by a given lyricist. Only those works pages to which the template {{Lyricist}} has been applied will be listed.

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