Template:CompFromWorkTitle: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
Tag: Undo |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|-1}} |0|-1}}</includeonly><noinclude><!-- | ||
-->{{DisplayBox|title=Documentation|text= | -->{{DisplayBox|title=Documentation|text= | ||
Line 11: | Line 11: | ||
If no parameter is provided, <tt><nowiki>{{PAGENAME}}</nowiki></tt> is used: | If no parameter is provided, <tt><nowiki>{{PAGENAME}}</nowiki></tt> is used: | ||
{{tl|CompFromWorkTitle}} | {{tl|CompFromWorkTitle}} on the works page [[Domine Jesu Christe (No. 4 from 'Andliga sånger') (August Söderman)]] | ||
: | :will return | ||
{{CompFromWorkTitle}} | {{CompFromWorkTitle|Domine Jesu Christe (No. 4 from 'Andliga sånger') (August Söderman)}} | ||
}} | }} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</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)}}
- returns
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