Jayantanth
২০ ফেব্রুয়ারি ২০০৮ তারিখে যোগ দিয়েছেন
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
→Sysop message.: নতুন অনুচ্ছেদ |
→Templates: নতুন অনুচ্ছেদ |
||
২১২ নং লাইন:
[[User:Psneog|Psneog]] ([[User talk:Psneog|আলাপ]]) ১৯:৩৮, ৩ ফেব্রুয়ারি ২০১২ (ইউটিসি)
== Templates ==
Hello, firstly, sorry for writing in english.
The templates [[Template:Monthname convert]] and [[Template:Bn2endigits]] can together solve the problem that you were facing with #time. The code would be:
<code><nowiki>{{#time:Y-F-j|{{Bn2endigits|{{{1|{{CURRENTYEAR}}}}}}}-{{Monthname convert|{{{2|{{CURRENTMONTH}}}}}}}-{{Bn2endigits|{{{3|{{CURRENTDAY}}}}}}} -1 days}}</nowiki></code>
Still, for some as yet unknown reason the output is {{#time:Y-F-j|{{Bn2endigits|{{{1|{{CURRENTYEAR}}}}}}}-{{Monthname convert|{{{2|{{CURRENTMONTH}}}}}}}-{{Bn2endigits|{{{3|{{CURRENTDAY}}}}}}} -1 days}}
Note though that <code><nowiki>{{#time:Y-F-j|{{Bn2endigits|{{CURRENTYEAR}}}}-{{Monthname convert|{{CURRENTMONTHNAME}}}}-{{Bn2endigits|{{CURRENTDAY}}}}}}</nowiki></code> works as expected and gives the output {{#time:Y-F-j|{{Bn2endigits|{{CURRENTYEAR}}}}-{{Monthname convert|{{CURRENTMONTHNAME}}}}-{{Bn2endigits|{{CURRENTDAY}}}}}}
And <code><nowiki>{{#time:Y-F-j|{{CURRENTYEAR}}-{{CURRENTMONTHNAME}}-{{CURRENTDAY}}}}</nowiki></code> gives {{#time:Y-F-j|{{CURRENTYEAR}}-{{CURRENTMONTHNAME}}-{{CURRENTDAY}}}}
So the problem is not with the templates anymore. You need to figure out what input #time wants in place of <code>1days</code>. Maybe it wants <code>day</code> translated or something? Basically, I don't know what's causing this problem. I'll try to find out though, but I don't know if I can solve this one.
I hope this is (partially) what you were looking for. Oh, and someone should translate [[Template:Bn2endigits/doc]] and delete [[Template:Bn2endigits/2]], the subtemplate is unneeded and superceded by [[Template:Bn2endigits/large]]. Regards--[[User:Siddhartha Ghai|Siddhartha Ghai]] ([[User talk:Siddhartha Ghai|আলাপ]]) ০৮:৩০, ৬ ফেব্রুয়ারি ২০১২ (ইউটিসি)
|