Difference between revisions of "Template:MultiPubList5"

From ChoralWiki
Jump to: navigation, search
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>
 
{{#dplvar:set|plc|{{CompFromWorkTitle|{{PAGENAME}}}}}}
 
{{#dplvar:set|plc|{{CompFromWorkTitle|{{PAGENAME}}}}}}
 
{{#ifeq:{{#pos:{{PAGENAME}}|#39;}}||{{#dplvar:set|pnc|{{PAGENAME}}}}|{{#dplvar:set|pnc|{{#multireplace:{{PAGENAME}}|/^([^#39;]*)(#39;)(.*)$/=$1$3|&=,}}}}}}
 
{{#ifeq:{{#pos:{{PAGENAME}}|#39;}}||{{#dplvar:set|pnc|{{PAGENAME}}}}|{{#dplvar:set|pnc|{{#multireplace:{{PAGENAME}}|/^([^#39;]*)(#39;)(.*)$/=$1$3|&=,}}}}}}
 
{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/[!"$&*+-.:;<>?`~„…†‡‹‘’“”•–—›¡§¨«°±·º»¿×÷ʹʺ#%]/ui=,}}}}
 
{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/[!"$&*+-.:;<>?`~„…†‡‹‘’“”•–—›¡§¨«°±·º»¿×÷ʹʺ#%]/ui=,}}}}
{{#if:{{{2|}}}|{{#dplvar:set|pnc|{{{2|}}} {{#dplvar:pnc}}}}}}
 
 
{{#ifexpr:{{#dpl:category=sheet music|category={{#dplvar:plc}}  compositions|distinct=false|mode=userformat|namespace=|resultsheader=%PAGES%|noresultsheader=0|allowcachedresults=false}}>0|
 
{{#ifexpr:{{#dpl:category=sheet music|category={{#dplvar:plc}}  compositions|distinct=false|mode=userformat|namespace=|resultsheader=%PAGES%|noresultsheader=0|allowcachedresults=false}}>0|
 
{{#dplvar:set|plcc|{{CompFromWorkTitle|{{#dplvar:pnc}}}}}}|{{#dplvar:set|plcc|zzzz}}}}
 
{{#dplvar:set|plcc|{{CompFromWorkTitle|{{#dplvar:pnc}}}}}}|{{#dplvar:set|plcc|zzzz}}}}
Line 9: Line 8:
 
{{#ifeq:{{#dplvar:plcc}}|zzzz|{{#ifeq:{{#pos:{{#dplvar:pnc}}|)}}|||{{#ifeq:{{#sub:{{#dplvar:pnc}}|-1}}|)|{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|(=,|)=}}}}|{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|(=,|)=,}}}}}}}}}}
 
{{#ifeq:{{#dplvar:plcc}}|zzzz|{{#ifeq:{{#pos:{{#dplvar:pnc}}|)}}|||{{#ifeq:{{#sub:{{#dplvar:pnc}}|-1}}|)|{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|(=,|)=}}}}|{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|(=,|)=,}}}}}}}}}}
 
{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|,,=,}}}}
 
{{#dplvar:set|pnc|{{#multireplace:{{#dplvar:pnc}}|/^(.*)$/=$1|,,=,}}}}
{{#ifexpr:{{#dpl:category=sheet music|mode=userformat|namespace=|linksto={{PAGENAME}}|include={Pub}|includematch={{#multireplace:{{#dplvar:pnc}}|/(\d*)\s([^\s^\,]*).*/=/$1(.*)$2/}}|resultsheader=%PAGES%|noresultsheader=0|
+
{{#if:{{#dplvar:vn}}
 +
|{{#if:{{#dplvar:y1}}|==={{#dplvar:vname}} 1 ({{#dplvar:y1}})===
 +
{{#dplvar:set|pncx|{{#dplvar:pnc}}}}{{#dplvar:set|pnc|{{#dplvar:y1}} {{#dplvar:pnc}},{{#dplvar:vname}} 1}}{{#dplvar:set|catn|Works in Volume 1}}{{#ifexpr:{{#dpl:category={{#dplvar:catn}}|distinct=false|mode=
 
</includeonly><noinclude>
 
</includeonly><noinclude>
  
 
{{Doc|1=
 
{{Doc|1=
 +
THIS TEMPLATE calls template {{tl|MPList5}}; the description below includes both.
  
 
TEST TEMPLATE
 
TEST TEMPLATE
  
Version 14
+
Version 15e 2019-09-08
  
 
}}
 
}}
 
[[Category:Experimental templates]]
 
[[Category:Experimental templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:19, 9 September 2019


Documentation

THIS TEMPLATE calls template {{MPList5}}; the description below includes both.

TEST TEMPLATE

Version 15e 2019-09-08