Template:LyricistSettingsList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(lyricist_name now defaults to PAGENAME)
(changed behaviour so that it won't list compositions by the lyricist proper - added Category:Lyricists)
Line 1: Line 1:
<includeonly>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
<includeonly>{{#dpl:category={{{1|{{{name|{{PAGENAME}}}}}}}}_settings
|notcategory={{{1|{{{name|{{PAGENAME}}}}}}}}_compositions
|columns={{{2|{{{cols|1}}}}}}
|columns={{{2|{{{cols|1}}}}}}
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
|titlemaxlength={{{3|{{{maxlen|100}}}}}}
Line 8: Line 9:
|suppresserrors=true
|suppresserrors=true
|listattr= style="font-style: italic;"
|listattr= style="font-style: italic;"
}}</includeonly><noinclude>
}} [[Category:Lyricists]]</includeonly><noinclude>
{{DisplayBox|bgcolor=g|text=
{{DisplayBox|bgcolor=g|text=
<center><big>'''Documentation'''</big></center>
<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.
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>{{!}}''<lyricist_name>''<nowiki>}}</nowiki></tt>
;Basic syntax: <tt><nowiki>{{LyricistSettingsList}}</nowiki></tt>


;Usage with optional parameters: <tt><nowiki>{{</nowiki>LyricistSettingsList{{!}}''<lyricist_name>''{{!}}''<num_columns>''{{!}}''<max_title_length>''<nowiki>}}</nowiki></tt>
;Usage with optional parameters: <tt><nowiki>{{</nowiki>LyricistSettingsList{{!}}''<lyricist_name>''{{!}}''<num_columns>''{{!}}''<max_title_length>''<nowiki>}}</nowiki></tt>
Line 19: Line 20:
;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 named parameters (in any position): <tt><nowiki>{{LyricistSettingsList|</nowiki>'''maxlen'''=''<max_title_length>''{{!}}'''cols'''=''<num_columns>''{{!}}'''name'''=''<lyricist_name>''<nowiki>}}</nowiki></tt>


In any case the lyricist informed in <tt>''<lyricist_name>''</tt> (or the article name by default) will be included in category {{CiteCat|Lyricists}}
}}
}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 13:37, 30 April 2009


Documentation

Displays a list of settings by a given lyricist. Only those settings 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>}}

In any case the lyricist informed in <lyricist_name> (or the article name by default) will be included in category Lyricists