Template:CompFromWorkTitle: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Created page with "{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}<noinclude> {{DisplayBox|title=Documentation|text= Extracts the composer name from a work title: {{tl|CompFromWorkTitle|...")
 
No edit summary
Line 1: Line 1:
{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}<noinclude>
<includeonly>{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}</includeonly><noinclude><!--


{{DisplayBox|title=Documentation|text=
-->{{DisplayBox|title=Documentation|text=
Extracts the composer name from a work title:
Extracts the composer name from a work title:


Line 8: Line 8:
{{CompFromWorkTitle|Domine Jesu Christe (No. 4 from 'Andliga sånger') (August Söderman)}}
{{CompFromWorkTitle|Domine Jesu Christe (No. 4 from 'Andliga sånger') (August Söderman)}}


If no parameter is provided, <tt><nowiki>{{PAGENAME}}</nowiki></tt> is used:
{{tl|CompFromWorkTitle}}
:returns
{{CompFromWorkTitle}}
}}
}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:41, 20 April 2013

Documentation

Extracts the composer name from a work title:

{{CompFromWorkTitle|Domine Jesu Christe (No. 4 from 'Andliga sånger') (August Söderman)}}

returns

August Söderman


If no parameter is provided, {{PAGENAME}} is used:

{{CompFromWorkTitle}}

returns

CompFromWorkTitl