Template talk:Birth date and age: Difference between revisions

From BoyWiki
No edit summary
Meco (talk | contribs)
Great job!
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Needs fixing==
==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. __[[User:Meco|meco]] ([[User talk:Meco|talk]]) 14:26, 2 November 2015 (UTC)
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. __[[User:Meco|meco]] ([[User talk: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. --[[User:Etenne|Etenne]] ([[User talk:Etenne|talk]]) 15:20, 2 November 2015 (UTC)
:all fixed--[[User:Etenne|Etenne]] ([[User talk:Etenne|talk]]) 18:00, 2 November 2015 (UTC)
This is one of the problems:
<Blockquote>
Note, if using the output of magic words, you must raw format them in order to remove commas, and translate the numerals. For example {{NUMBEROFUSERS}} results in 3,955,021, where we want 3955021, which can be obtained using {{formatnum:{{NUMBEROFUSERS}}|R}}. This is especially important in some languages, where numerals are translated. For example, in Bengali, <nowiki>{{NUMBEROFUSERS}} produces ৩০,০৬১.</nowiki>


:<nowiki>{{#expr:{{NUMBEROFUSERS}}+100}} → Expression error: Unrecognized punctuation character ",".</nowiki>
<nowiki>{{Birth date and age|1993|2|4|df=yes}}</nowiki>
:<nowiki>{{#expr:{{formatnum:{{NUMBEROFUSERS}}|R}}+100}} → 3955121</nowiki>
 
</Blockquote>
Gives:
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
 
{{Birth date and age|1993|2|4|df=yes}}
 
:Great job! __[[User:Meco|meco]] ([[User talk:Meco|talk]]) 19:13, 2 November 2015 (UTC)

Latest revision as of 19:13, 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)

all fixed--Etenne (talk) 18:00, 2 November 2015 (UTC)

{{Birth date and age|1993|2|4|df=yes}}

Gives:

(1993-02-04) 4 February 1993 (age 31)

Great job! __meco (talk) 19:13, 2 November 2015 (UTC)