Difference between revisions of "Issue:Parser issue (I think)"
(→Problem) |
|||
Line 4: | Line 4: | ||
|Version = ? | |Version = ? | ||
|Description = | |Description = | ||
− | |Status = | + | |Status = closed |
}} | }} | ||
Line 27: | Line 27: | ||
== Reply == | == 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! | ||
+ | |||
+ | [[User:Martinfs|Martinfs]] 10:28, 31 August 2009 (UTC) |
Revision as of 11:28, 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)