Difference between revisions of "Template:CompFromWorkTitle"

From ChoralWiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}</includeonly><noinclude><!--
+
<includeonly>{{#if:{{{1|}}}|{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}|{{PAGENAME}}}}</includeonly><noinclude><!--
  
 
-->{{DisplayBox|title=Documentation|text=
 
-->{{DisplayBox|title=Documentation|text=

Revision as of 19:15, 23 March 2021

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

CompFromWorkTitle