Difference between revisions of "Template:TitleOnly"

From ChoralWiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|3}}|{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}({{#explode:{{{1|{{PAGENAME}}}}}|(|1}}({{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|2}}|-1}}
 
{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|3}}|{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}({{#explode:{{{1|{{PAGENAME}}}}}|(|1}}({{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|2}}|-1}}
 
|{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|2}}|{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}({{#explode:{{{1|{{PAGENAME}}}}}|(|1}}
 
|{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|2}}|{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}({{#explode:{{{1|{{PAGENAME}}}}}|(|1}}
|{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|1}}|{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}|-1|}}|{{{1|{{PAGENAME}}}}}}}}}}}
+
|{{#if:{{#explode:{{{1|{{PAGENAME}}}}}|(|1}}|{{#sub:{{#explode:{{{1|{{PAGENAME}}}}}|(|0}}|-1}}|{{{1|{{PAGENAME}}}}}}}}}}}
 
</includeonly><noinclude><!--
 
</includeonly><noinclude><!--
  

Revision as of 13:55, 20 April 2019

Documentation

Extracts the Title portion from a work title:

{{TitleOnly|Brattle Street (1786) (William Billings)}} returns Brattle Street (1786)

{{TitleOnly|Psalmen Davids, Op. 5 (1661) (Heinrich Schütz)}} returns Psalmen Davids, Op. 5 (1661)

{{TitleOnly|Tenebrae Responsories (Tomás Luis de Victoria)}} returns s


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

{{TitleOnly}}

returns

TitleOnly