Шаблон:Mouvelian

Материал из Guild Wars 2 wiki
Версия от 17:08, 5 мая 2015; Snowbirdie (обсуждение | вклад) (Новая страница: «{{#ifeq: {{{2|}}} | day | {{padleft:{{#expr:({{#time:z|{{{1|}}}}} mod 90) + 1 + {{#ifexpr:({{#time:z|{{{1|}}}}}+1) > 360|{{#expr:({{#time:z|{{{1|}}}}} mod 360) + …»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

58 Season of the Phoenix 1337

Usage

Converts a Gregorian calendar date into a Mouvelian calendar date. Only appropriate for Gregorian dates before the advent of the Living World, and obviously especially inappropriate for dates before the release of Guild Wars 2 (August 28, 2012).

Parameters

parameter 1
Expects a timestamp in the format YYYYMMDDHHmmss. Defaults to 20240527202247, i.e. {{CURRENTTIMESTAMP}}.
parameter 2
Optional. Forces the template to return only the day, season, or year rather than the entire string. Possible values are day, season, and as you might guess, year.

Examples

:''"Lion's Arch was invaded on {{Mouvelian|20140218170000}}, and liberated on {{Mouvelian|20140304170000|day}} Season of the {{Mouvelian|20140304170000|season}} of that same year."''

returns

"Lion's Arch was invaded on 49 Сезон Зефира 1327, and liberated on 63 Season of the Zephyr of that same year."

To-do

  • Add support for skipping February 29th (or making February 28th twice as long) during leap years.