Template talk:Fmc3

From Team Fortress Wiki
Revision as of 18:21, 20 May 2021 by Tark (talk | contribs) (Time format always on english)
Jump to: navigation, search

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}} yields 13 de January de 2025 a las 12:16:49 AM. — Tark lm(pt-br) 18:21, 20 May 2021 (UTC)