Template:LyricistSettingsList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(replace individual categories with a generic one)
(automatically defaults to two columns if list is larger than 10 elements)
Line 1: Line 1:
<includeonly>{{#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
|distinct=false
|mode=userformat
|resultsheader=%TOTALPAGES%
|noresultsheader=0
|allowcachedresults=false}} > 10
|<!-- if more than 10 results, display in two columns by default
-->{{#dpl:category=Works with texts by known authors
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}}_compositions
|columns={{{2|{{{cols|2}}}}}}
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
|rowcolformat=width=100%
|order=ascending
|ordermethod=sortkey
|allowcachedresults=false
|suppresserrors=true
|listattr= style="font-style: italic;"}}
|<!-- if else, display in one column by default
-->{{#dpl:category=Works with texts by known authors
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
|linksto={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}}_compositions
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}}_compositions

Revision as of 14:55, 6 April 2015

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}}