Help talk:Extension:ParserFunctions/2013

How to use tag function within parser function?
I'm trying to build an if-clause that automatically inserts == References ==  character or possibly a tag inside a function where tags aren't allowed. However, even when I remove all instances of the  character from the template (by eliminating the comments, the   tags, and the   tags), the error message persists.

Here is the text of the template:

[removed]

Any idea what the problem is and/or how I can correct it? Thanks! ~ Michael Chidester (Contact) 15:07, 22 March 2013 (UTC)

Solution
Ultimately I determined that this was a DPL conflict, possibly due to the  function refusing to parse the standard output format of DPL. To help anyone having this problem in the future, here is my modified code, changing out the deprecated string functions for their replacements and modifying the DPL output to produce a regular string rather than a link:

The next document number is 

Cheers. ~ Michael Chidester (Contact) 15:40, 26 March 2013 (UTC)

handling of incomplete dates
"Full or partial absolute dates can be specified; the function will "fill in" parts of the date that are not specified using the current values:"

I think this is not acceptable behaviour, unless it can be switched on or off. I am parsing incomeplete dates, and if you have a historical Person in a wiki with a birth date "May 1875" than the #time function should return nothing for a day and not the current day!!
 * You have full control over how you format the output of the #time function. If you only want month, year, then   produces  when you pass may 1875.  If you want to make it more complicated, then try playing with:
 * day month year
 * 5 month year
 * 5 5 year
 * 5 month 1875
 * 5 5 1875
 * day 5 1875
 * day month 1875
 * day 5 year
 * You can also change the layout so that it looks like any of these:
 * If you want to make it really complex:
 * day month year
 * 5 month year
 * day 5 year
 * day month 1875
 * 5 5 year
 * 5 month 1875
 * day 5 1875
 * 5 5 1875
 * I hope this satisfies your need... Technical 13 (talk) 14:12, 19 September 2013 (UTC)
 * Thank you for these great examples, but it's not quite what I need. I have dates and some of them are incomplete. Say "24 April 1875" or "Mai 1920". If I use  I get "24" which is fine, but with   I recieve "1". But it rather should return an error, because if there is no day present I don't want to get a day... --Krabina (talk) 06:39, 24 September 2013 (UTC)
 * If you want to make it really complex:
 * day month year
 * 5 month year
 * day 5 year
 * day month 1875
 * 5 5 year
 * 5 month 1875
 * day 5 1875
 * 5 5 1875
 * I hope this satisfies your need... Technical 13 (talk) 14:12, 19 September 2013 (UTC)
 * Thank you for these great examples, but it's not quite what I need. I have dates and some of them are incomplete. Say "24 April 1875" or "Mai 1920". If I use  I get "24" which is fine, but with   I recieve "1". But it rather should return an error, because if there is no day present I don't want to get a day... --Krabina (talk) 06:39, 24 September 2013 (UTC)
 * 5 5 year
 * 5 month 1875
 * day 5 1875
 * 5 5 1875
 * I hope this satisfies your need... Technical 13 (talk) 14:12, 19 September 2013 (UTC)
 * Thank you for these great examples, but it's not quite what I need. I have dates and some of them are incomplete. Say "24 April 1875" or "Mai 1920". If I use  I get "24" which is fine, but with   I recieve "1". But it rather should return an error, because if there is no day present I don't want to get a day... --Krabina (talk) 06:39, 24 September 2013 (UTC)
 * 5 5 1875
 * I hope this satisfies your need... Technical 13 (talk) 14:12, 19 September 2013 (UTC)
 * Thank you for these great examples, but it's not quite what I need. I have dates and some of them are incomplete. Say "24 April 1875" or "Mai 1920". If I use  I get "24" which is fine, but with   I recieve "1". But it rather should return an error, because if there is no day present I don't want to get a day... --Krabina (talk) 06:39, 24 September 2013 (UTC)
 * Thank you for these great examples, but it's not quite what I need. I have dates and some of them are incomplete. Say "24 April 1875" or "Mai 1920". If I use  I get "24" which is fine, but with   I recieve "1". But it rather should return an error, because if there is no day present I don't want to get a day... --Krabina (talk) 06:39, 24 September 2013 (UTC)


 * The problem is that  returns the same result as  . Both are 1 but in case of April 2013 it is an assumption. Depending what users are doing with the result things could take a wrong turn on there wiki's. The desired result should be something that can not be a day, like 0 so users can "catch" it. Regards, --Jongfeli (talk) 10:00, 24 September 2013 (UTC)