Template:LyricistSettingsList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(notcategory=Text pages)
(made category name variable)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#dpl:category=Works with texts by known authors
<includeonly>{{#ifexpr: {{#dpl:category={{{cat|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
Line 9: Line 9:
|allowcachedresults=false}} > 10
|allowcachedresults=false}} > 10
|<!-- if more than 10 results, display in two columns by default
|<!-- if more than 10 results, display in two columns by default
-->{{#dpl:category=Works with texts by known authors
-->{{#dpl:category={{{cat|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
Line 22: Line 22:
|listattr= style="font-style: italic;"}}
|listattr= style="font-style: italic;"}}
|<!-- if else, display in one column by default
|<!-- if else, display in one column by default
-->{{#dpl:category=Works with texts by known authors
-->{{#dpl:category={{{cat|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
Line 42: Line 42:
;Usage with optional parameters: {{tl|LyricistSettingsList|''lyricist_name''|''num_columns''|''max_title_length''}}
;Usage with optional parameters: {{tl|LyricistSettingsList|''lyricist_name''|''num_columns''|''max_title_length''}}


;Usage with named parameters (in any position): {{tl|LyricistSettingsList|'''maxlen'''{{=}}''max_title_length''|'''cols'''{{=}}''num_columns''|'''name'''{{=}}''lyricist_name''}}
;Usage with named parameters (in any position): {{tl|LyricistSettingsList|'''maxlen'''{{=}}''max_title_length''|'''cols'''{{=}}''num_columns''|'''name'''{{=}}''lyricist_name''|'''cat'''{{=}}''category''}}
:where '''cat''' defaults to [[:category: Works with texts by known authors]].
   
   
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 04:30, 21 March 2017

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|cat=category}}
where cat defaults to category: Works with texts by known authors.