Template talk:Birth date and age: Difference between revisions
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
Example: | Example: | ||
<nowiki>{{Birth date|1993|2|4|df=yes}}</nowiki> | <nowiki>{{Birth date and age|1993|2|4|df=yes}}</nowiki> | ||
Gives: | Gives: | ||
{{Birth date|1993|2|4|df=yes}} | {{Birth date and age|1993|2|4|df=yes}} |
Revision as of 17:33, 2 November 2015
Needs fixing
Something's wrong with this template. It, including its two subset templates, are simply copied from the English Wikipedia, so I don't understand why it behaves differently here from there. I hope someone can fix it. __meco (talk) 14:26, 2 November 2015 (UTC)
- It might require Scribunto which is a programming language that BoyWiki doesn't support. I will have to look in to it. --Etenne (talk) 15:20, 2 November 2015 (UTC)
This is one of the problems:
Note, if using the output of magic words, you must raw format them in order to remove commas, and translate the numerals. For example 225 results in 3,955,021, where we want 3955021, which can be obtained using 225. This is especially important in some languages, where numerals are translated. For example, in Bengali, {{NUMBEROFUSERS}} produces ৩০,০৬১.
- {{#expr:{{NUMBEROFUSERS}}+100}} → Expression error: Unrecognized punctuation character ",".
- {{#expr:{{formatnum:{{NUMBEROFUSERS}}|R}}+100}} → 3955121
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
Example:
{{Birth date and age|1993|2|4|df=yes}}
Gives:
4 February 1993