Difference between revisions of "Issue:Parser issue (I think)"
Line 49: | Line 49: | ||
Can you try and let me know? | Can you try and let me know? | ||
+ | |||
+ | Details about escaping wiki special characters are explained in the general part of the manual ... | ||
[[User:Gero|Gero]] 10:54, 31 August 2009 (UTC) | [[User:Gero|Gero]] 10:54, 31 August 2009 (UTC) |
Latest revision as of 11:55, 31 August 2009
Description: | |
Extension / Version: | DPL / ? |
Type / Status: | Other / closed |
Problem
I've made a small php-function that outputs something I need as a titlematch-parameter. It's actually for the DPL-calendar, where I want to show the next 5 events coming up in the remainder of this year and the next one.
I call the function with a tag like this: <getCalendarSpan/>
And right now it outputs the following: 2009_08%|2009_09%|2009_10%|2009_11%|2009_12%|2010%
So the following simple DPL-call should output just what I need:
{{#dpl: |titlematch=<getCalendarSpan/> }}
I've tried putting it in a template but I'm not getting any results. Any help would be appreciated.
Martinfs 01:12, 31 August 2009 (UTC)
Reply
I solved this myself by making my phpfunction an actual Parser Function and attaching a magic word to it. It's now invoked like this:
- {{#getCalendarSpan}}
I hope no one wasted any time on my newbie issues :)
Just getting the hang of writing my own functions. Thanks anyway!
Martinfs 10:28, 31 August 2009 (UTC)
Reply 2
Maybe it would have helped if you had used the special angle brackets instead of the normal angle brackets.
{{#dpl: |titlematch=«getCalendarSpan/» }}
Can you try and let me know?
Details about escaping wiki special characters are explained in the general part of the manual ...
Gero 10:54, 31 August 2009 (UTC)