i'm using mediawiki extension dynamicpagelist (third-party) can used template:
{{#dpl: |category=foo |notcategory=bar }} i try use template in 1 of templates uses more parameter e.g.:
{{mytemplate |category=foo |notcategory=bar |mypara1=bla |mypara2=lala }} mytemplate looks this:
do mypara1 ... mypara2 ... {{#dpl: |category=foo |notcategory=bar }} i know parameters #dpl: can use 1 or many parameters.
how can separate parameters #dpl: ones? , how can hand on parameters belongs #dpl:?
thanks,
ray
finally came following solution:
dpl has additional template #dplreplace. i'm using parse parameters.
call template:
{{mytemplate | filter=category:foo;notcategory:bar | mypara1=bla | mypara2=lala }} in template replace : = , : {{!}}.
{{#dpl: | {{#dplreplace: {{#dplreplace: {{{filter}}} | /:/ | = }} | /;/ | {{!}} }} | ordermethod = sortkey | suppresserrors = true }} note: {{!}} template replaced |.
regards;
ray
Comments
Post a Comment