Difference between revisions of "Template:CompFromWorkTitle"

From ChoralWiki
Jump to navigation Jump to search
m (improved doc)
(Undo revision 1339413 by BarryJ (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}|{{PAGENAME}}}}</includeonly><noinclude><!--
<includeonly>{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}</includeonly><noinclude><!--

Revision as of 17:15, 24 March 2021


Extracts the composer name from a work title:

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


August Söderman

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

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

will return

August Söderman