Issue:Can't call a EmbedVideo extension with the Parser function method

From FollowTheScore
Jump to: navigation, search
Description: Can call EmbedVideo extension with the Parser extension method but cant with the Parser function method
Extension / Version: DPL   /   1.7.3
Type / Status: Bug   /   answered

Problem

Yep that's my problem and it would help me a lot to be able to call DPL with the Parser function method so I can use template variables as parameters for DPL. Here's the code I use for the Parser extension method :

<DPL>
category            =Final Burn&Video
mode                =userformat
ordermethod         =firstedit
order               =descending
nottitlematch       =Video
includepage         ={Video}:Long Description[40],{Video}:VService,{Video}:vID,{Video}:Long Description
addfirstcategorydate=true
listseparators      =,,,
secseparators       ={| class="collapsible autocollapse" border="0" style="background:black; color:white" cellspacing="0" border-collapse="collapse" bordercolor="black"¶|- style="background:black; color:white"¶!width="425" align="left"|[[%PAGE%|%TITLE%]]¶!width="300" align="left"|,[[%PAGE%|...]]¶!width="200"|%DATE%¶|- align="center"¶,| {{#ev:,|,,}}, ||,¶|}¶
</DPL>

It works. You can see the videos for example on this page. The embedvideo (#ev) parser function works great.

Now when I call it in parser function mode :

{{#dpl:
|debug=0
|category            =Final Burn&Video
|mode                =userformat
|ordermethod         =firstedit
|order               =descending
|nottitlematch       =Video
|includepage         ={Video}:Long Description[40],{Video}:VService,{Video}:vID,{Video}:Long Description
|addfirstcategorydate=true
|listseparators      =,,,
|secseparators       ={¦ class="collapsible autocollapse" border="0" style="background:black; color:white" cellspacing="0" border-collapse="collapse" bordercolor="black"¶¦- style="background:black; color:white"¶!width="425" align="left"¦[[%PAGE%¦%TITLE%]]¶!width="300" align="left"¦,[[%PAGE%¦...]]¶!width="200"¦%DATE%¶¦- align="center"¶,¦ ²{#ev:,¦,}²,, ¦¦,¶¦}¶
}}

Problem is the parser function is not detected, it's not passed through its regular path I guess because no video appears as output. This is the extension page of EmbedVideo. Basically the EmbedVideo parser function is called using something like this :

{{#ev:youtube|dMH0bHeiRNg}}

where youtube is the video service and dMH0bHeiRNg is the video ID. It outputs a video that can be viewed directly on the wiki page (using the embed video function of youtube). I guess when things go in the DPL parser function they are not passed correctly to the processes that would render this kind of parser function. Basically, I want to call a parserfunction inside your DPL parser function.


Reply

Sorry I realised that you could do that but that the parameters of the parser function call could just not be variables so I changed the way I do things and it now works...