Template:LyricistSettingsList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(removed Category:Lyricists: better leave it out)
m (1 revision imported: Upgrade to DPL 3.3.3)
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
<includeonly>{{#ifexpr: {{#dpl:category=Works with texts by known authors
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}}_compositions
|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
-->{{#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
}}
|<!-- if else, display in one column by default
-->{{#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}}}}}}
|columns={{{2|{{{cols|1}}}}}}
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
Line 6: Line 30:
|order=ascending
|order=ascending
|ordermethod=sortkey
|ordermethod=sortkey
|allowcachedresults=true
|allowcachedresults=false
|suppresserrors=true
}}}} [[Category:Lyricists]]</includeonly><noinclude><!--
|listattr= style="font-style: italic;"
-->{{DisplayBox|title=Documentation|text=
}}
</includeonly><noinclude>
{{DisplayBox|bgcolor=g|text=
<center><big>'''Documentation'''</big></center>
Displays a list of settings by a given lyricist. Only those settings to which the template <tt>{{[[template:Lyricist|Lyricist]]}}</tt> has been applied will be listed.


;Basic syntax: <tt><nowiki>{{LyricistSettingsList}}</nowiki></tt>
Displays a list of settings by a given lyricist. Only those works pages to which the template {{tl|Lyricist}} has been applied will be listed.


;Usage with optional parameters: <tt><nowiki>{{</nowiki>LyricistSettingsList{{!}}''<lyricist_name>''{{!}}''<num_columns>''{{!}}''<max_title_length>''<nowiki>}}</nowiki></tt>
;Basic syntax: {{tl|LyricistSettingsList}}


;Usage with named parameters (in any position): <tt><nowiki>{{LyricistSettingsList|</nowiki>'''maxlen'''=''<max_title_length>''{{!}}'''cols'''=''<num_columns>''{{!}}'''name'''=''<lyricist_name>''<nowiki>}}</nowiki></tt>
;Usage with optional parameters: {{tl|LyricistSettingsList|''lyricist_name''|''num_columns''|''max_title_length''}}


In any case the lyricist informed in <tt>''<lyricist_name>''</tt> (or the article name by default) will be included in category {{CiteCat|Lyricists}}
;Usage with named parameters (in any position): {{tl|LyricistSettingsList|'''maxlen'''{{=}}''max_title_length''|'''cols'''{{=}}''num_columns''|'''name'''{{=}}''lyricist_name''}}
}}
}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates]]
[[Category:DPL templates]]</noinclude>

Revision as of 08:47, 4 January 2020

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