Difference between revisions of "Template talk:Fmc3"
(→Time format always on english: new section) |
(Re) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
The names of the strings are always on english, regardless of the page language.<br> | The names of the strings are always on english, regardless of the page language.<br> | ||
− | This should fix the issue, however, it would cause problems in subpages.<br> | + | This should fix the issue<s>, however, it would cause problems in subpages.</s><br> |
<pre><nowiki>{{#time:{{{date-format|{{lang | <pre><nowiki>{{#time:{{{date-format|{{lang | ||
| en = F j, Y \a\t h:i:s A | | en = F j, Y \a\t h:i:s A | ||
Line 15: | Line 15: | ||
| {{SUBPAGENAME}}}}</nowiki></pre> | | {{SUBPAGENAME}}}}</nowiki></pre> | ||
: Other solution would be creating another template for every language with their correct time format · [[User:Ashe|Ashe]] ([[User talk:Ashe|talk]]) 17:57, 20 May 2021 (UTC) | : Other solution would be creating another template for every language with their correct time format · [[User:Ashe|Ashe]] ([[User talk:Ashe|talk]]) 17:57, 20 May 2021 (UTC) | ||
+ | |||
+ | :: {{code|date-format}} is parameter, you can change it directly: <code><nowiki>{{Fmc3|date-format=j "de" F "de" Y "a las" h:i:s A|adjustment=0|offset=-1}}</nowiki></code> yields <code>{{Fmc3|date-format=j "de" F "de" Y "a las" h:i:s A|adjustment=0|offset=-1}}</code>. | ||
+ | :: As for the problem with subpages, could you elaborate a little bit on that? I haven't been able to find any issues yet. — [[User:Tark|<span style="font-weight:bold;color: #5BC236">Tark</span>]] [[Help:Group rights#Moderators|<span class="locbg">lm</span>]][[Help:Language_translation|<span class="locbg">(pt-br)</span>]] 18:32, 20 May 2021 (UTC) | ||
+ | :::Right, it doesn't cause problems. Then the only change it should have is adding <nowiki>{{SUBPAGENAME}}</nowiki> | ||
+ | <pre><nowiki>{{#time:{{{date-format|F j, Y \a\t h:i:s A}}} | ||
+ | | October 12, 2011 2:12:00 | ||
+ | + {{#expr:({{Fmp3}} + {{{offset|0}}}) * 2551392 }} seconds | ||
+ | - 1 days | ||
+ | + {{#expr:({{{adjustment|0}}} * 2)}} days | ||
+ | + 1 seconds | ||
+ | - {{#expr:({{{adjustment|0}}} * 2)}} seconds | ||
+ | | {{SUBPAGENAME}}}}</nowiki></pre> | ||
+ | ::: · [[User:Ashe|Ashe]] ([[User talk:Ashe|talk]]) 19:57, 20 May 2021 (UTC) |
Latest revision as of 19:57, 20 May 2021
Time format always on english
The names of the strings are always on english, regardless of the page language.
This should fix the issue, however, it would cause problems in subpages.
{{#time:{{{date-format|{{lang | en = F j, Y \a\t h:i:s A | es = j "de" F "de" Y "a las" h:i:s A }}}}} | October 12, 2011 2:12:00 + {{#expr:({{Fmp3}} + {{{offset|0}}}) * 2551392 }} seconds - 1 days + {{#expr:({{{adjustment|0}}} * 2)}} days + 1 seconds - {{#expr:({{{adjustment|0}}} * 2)}} seconds | {{SUBPAGENAME}}}}
- Other solution would be creating another template for every language with their correct time format · Ashe (talk) 17:57, 20 May 2021 (UTC)
date-format
is parameter, you can change it directly:{{Fmc3|date-format=j "de" F "de" Y "a las" h:i:s A|adjustment=0|offset=-1}}
yields14 de December de 2024 a las 11:33:37 AM
.- As for the problem with subpages, could you elaborate a little bit on that? I haven't been able to find any issues yet. — Tark lm(pt-br) 18:32, 20 May 2021 (UTC)
- Right, it doesn't cause problems. Then the only change it should have is adding {{SUBPAGENAME}}
{{#time:{{{date-format|F j, Y \a\t h:i:s A}}} | October 12, 2011 2:12:00 + {{#expr:({{Fmp3}} + {{{offset|0}}}) * 2551392 }} seconds - 1 days + {{#expr:({{{adjustment|0}}} * 2)}} days + 1 seconds - {{#expr:({{{adjustment|0}}} * 2)}} seconds | {{SUBPAGENAME}}}}