Template:LyricistSettingsList: Difference between revisions
Jump to navigation
Jump to search
Documentation
m (another try) |
No edit summary |
||
(22 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}} | <includeonly>{{#ifexpr: {{#dpl:category=Works with texts by known authors | ||
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}} | |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}}}}}} | |columns={{{2|{{{cols|1}}}}}} | ||
|titlemaxlength={{{3|{{{maxlen|100}}}}}} | |titlemaxlength={{{3|{{{maxlen|100}}}}}} | ||
Line 6: | Line 31: | ||
|order=ascending | |order=ascending | ||
|ordermethod=sortkey | |ordermethod=sortkey | ||
|allowcachedresults= | |allowcachedresults=false | ||
| | |noresultsheader=''No results.'' | ||
}}}} [[Category:Lyricists]]</includeonly><noinclude><!-- | |||
-->{{DisplayBox| | -->{{DisplayBox|title=Documentation|text= | ||
Displays a list of settings by a given lyricist. Only those | 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. | ||
;Basic syntax: | ;Basic syntax: {{tl|LyricistSettingsList}} | ||
;Usage with optional parameters: | ;Usage with optional parameters: {{tl|LyricistSettingsList|''lyricist_name''|''num_columns''|''max_title_length''}} | ||
;Usage with named parameters (in any position): | ;Usage with named parameters (in any position): {{tl|LyricistSettingsList|'''maxlen'''{{=}}''max_title_length''|'''cols'''{{=}}''num_columns''|'''name'''{{=}}''lyricist_name''}} | ||
}} | }} | ||
[[Category:Templates | [[Category:Templates]] | ||
[[Category:DPL templates]]</noinclude> |
Revision as of 14:08, 15 November 2020
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}}