Template:Lyricist: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(replace individual categories with a generic one)
m (a bug somewhere...)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|error}}}
<includeonly>{{#switch:{{{1|error}}}
|error ='''Lyricist:''' <font color="red">''Please use the syntax'' {{tl|Lyricist|''lyricist name''}}</font>
|error ='''Error:''' <font color="red">''Please use the syntax'' {{tl|Lyricist|''lyricist name''}}</font>
| ='''Lyricist:'''
| ='''Lyricist:'''
|2 ='''Lyricists:''' {{#ifexist:{{alias|{{{2}}}}}|[[{{alias|{{{2}}}}}|{{{2}}}]]|{{{2}}}<small><sup>[{{fullurl:{{alias|{{{2}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{#if:{{{5|}}}|{{{4|}}}}}{{{connective|&nbsp;and}}} {{#ifexist:{{alias|{{{3}}}}}|[[{{alias|{{{3}}}}}|{{{3}}}]]|{{{3}}}<small><sup>[{{fullurl:{{alias|{{{3}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{5|{{{4|}}}}}} [[Category:{{alias|{{{2}}}}} settings]] [[Category:{{alias|{{{3}}}}} settings]]
|2 ='''Lyricists:''' {{#ifexist:{{alias|{{{2}}}}}|[[{{alias|{{{2}}}}}|{{{2}}}]]|{{{2}}}<small><sup>[{{fullurl:{{alias|{{{2}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{#if:{{{5|}}}|{{{4|}}}}}{{{connective|&nbsp;and}}} {{#ifexist:{{alias|{{{3}}}}}|[[{{alias|{{{3}}}}}|{{{3}}}]]|{{{3}}}<small><sup>[{{fullurl:{{alias|{{{3}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{5|{{{4|}}}}}} [[Category:{{alias|{{{2}}}}} settings]] [[Category:{{alias|{{{3}}}}} settings]]
Line 10: Line 10:
|Composer?
|Composer?
|Probably the composer ='''Lyricist:''' [[Composer(?) lyricist|Probably the composer]]{{{2|}}} [[Category:Composer(?) lyricist settings|{{{sort|{{{9|?}}}}}}]]
|Probably the composer ='''Lyricist:''' [[Composer(?) lyricist|Probably the composer]]{{{2|}}} [[Category:Composer(?) lyricist settings|{{{sort|{{{9|?}}}}}}]]
|'''Lyricist:''' {{#ifexist:{{alias|{{{1}}}}}|[[{{alias|{{{1}}}}}|{{{1}}}]]|{{{1}}}<small><sup>[{{fullurl:{{alias|{{{1}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{2|}}} <span style="display:none">[[{{alias|{{{1}}}}} settings| ]]</span>[[Category:Works with texts by known authors]]
|#default='''Lyricist:''' {{#ifexist:{{alias|{{{1}}}}}|[[{{alias|{{{1}}}}}|{{{1}}}]]|{{{1}}}<small><sup>[{{fullurl:{{alias|{{{1}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{2|}}} <span style="display:none">[[{{alias|{{{1}}}}} settings| ]]</span>[[Category:Works with texts by known authors]]<!--
}}</includeonly><noinclude>
-->}}</includeonly><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">

Revision as of 17:45, 26 February 2015


Documentation
Usage
  • {{Lyricist|<lyricist_name>|<optional_text>}}
which produces the text
Lyricist: Lyricist_name optional_text
and inserts the page in category Lyricist_name settings
  • {{Lyricist|2|<lyricist1_name>|<lyricist2_name>|<optional_text>}}
which produces the text
Lyricists: Lyricist1_name and Lyricist2_name optional_text
and inserts the page in categories Lyricist1_name settings and Lyricist2_name settings
  • {{Lyricist|3|<lyricist1_name>|<lyricist2_name>|<lyricist3_name>|<optional_text>}}
which produces the text
Lyricists: Lyricist1_name, Lyricist2_name and Lyricist3_name optional_text
and inserts the page in categories Lyricist1_name settings, Lyricist2_name settings and Lyricist3_name settings