Szablon:Kalendarz: Różnice pomiędzy wersjami

Z L6F
Przejdź do nawigacji Przejdź do wyszukiwania
Gnomex (dyskusja | edycje)
Utworzono nową stronę "{{#ifeq: {{{2|}}} | day | {{padleft:{{#expr:({{#time:z|{{{1|}}}}} mod 90) + 1 + {{#ifexpr:({{#time:z|{{{1|}}}}}+1) > 360|{{#expr:({{#time:z|{{{1|}}}}} mod 360) + 1}}|0}}..."
 
Gnomex (dyskusja | edycje)
Nie podano opisu zmian
Linia 1: Linia 1:
{{#ifeq: {{{2|}}} | day | {{padleft:{{#expr:({{#time:z|{{{1|}}}}} mod 90) + 1 + {{#ifexpr:({{#time:z|{{{1|}}}}}+1) > 360|{{#expr:({{#time:z|{{{1|}}}}} mod 360) + 1}}|0}}}}|2|0}} | {{#ifeq: {{{2|}}} | season | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | Kolosa | Latorośli }} | Feniksa }} | Zefira}} | {{#ifeq: {{{2|}}} | year | {{#expr: {{#time: Y | {{{1|}}}}} - 687}} | {{padleft:{{#expr:({{#time:z|{{{1|}}}}} mod 90) + 1 + {{#ifexpr:({{#time:z|{{{1|}}}}}+1) > 360|{{#expr:({{#time:z|{{{1|}}}}} mod 360) + 1}}|0}}}}|2|0}} Sezonu {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | Kolosa | Latorośli }} | Feniksa }} | Zefira}} {{#expr: {{#time: Y | {{{1|}}}}} - 687}} }} }} }}<noinclude>
{{#ifeq: {{{2|}}} | dzień | {{padleft:{{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 273)}} mod 91 + 1)}} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 181)}} mod 92 + 1)}} }} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 90)}} mod 91 + 1)}} }} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}})}} mod 90 + 1)}}}}}} |{{#ifeq: {{{2|}}} | sezon | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | Kolosa | Latorośli }} | Feniksa }} | Zefira}} | {{#ifeq: {{{2|}}} | rok | {{#expr: {{#time: Y | {{{1|}}}}} - 687}} | {{padleft:{{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 273)}} mod 91 + 1)}} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 181)}} mod 92 + 1)}} }} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}} - 90)}} mod 91 + 1)}} }} | {{#expr:({{#expr:({{#time: z | {{{1|}}}}})}} mod 90 + 1)}}}} Sezonu {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 90 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 181 | {{#ifexpr: {{#expr: {{#time: z | {{{1|}}}}} + 1}} > 273 | Kolosa | Latorośli }} | Feniksa }} | Zefira}} {{#expr: {{#time: Y | {{{1|}}}}} - 687}} }} }} }} }} <noinclude>


== Usage ==
== Użycie ==
Converts a [[wikipedia:Gregorian calendar|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).
Konwertuje datę [[wikipedia:Gregorian calendar|Kalendarza Gregoriańskiego]] w datę [[Mouvelian calendar]].
=== Parameters ===
=== Parametry ===
;parameter 1
;parametr 1
:Expects a [[wikipedia:timestamp|timestamp]] in the format YYYYMMDDHHmmss. Defaults to {{CURRENTTIMESTAMP}}, i.e. <code><nowiki>{{CURRENTTIMESTAMP}}</nowiki></code>.
:Oczekuje [[wikipedia:timestamp|timestamp]] w formacie RRRRMMDDGGmmss. Domyślnie {{CURRENTTIMESTAMP}}, czyli <code><nowiki>{{CURRENTTIMESTAMP}}</nowiki></code>.


;parameter 2
;parametr 2
: Optional. Forces the template to return only the day, season, or year rather than the entire string. Possible values are <code>day</code>, <code>season</code>, and as you might guess, <code>year</code>.
: Opcjonalny. Zmusza szablon do zwrócenia tylko dnia, sezonu lub roku zamiast całego wiersza. Możliwe wartości to <code>dzień</code>, <code>sezon</code>, i jak się domyślacie, <code>rok</code>.


=== Examples ===
=== Przykłady ===
<pre>
<pre>
:''"Lion's Arch was invaded on {{Kalendarz|20140218170000}}, and liberated on {{Kalendarz|20140304170000|day}} Sezonu {{Kalendarz|20140304170000|season}} of that same year."''
:''"Lion's Arch zostało zaatakowane {{Kalendarz|20140218170000}}, i dobite {{Kalendarz|20140304170000|dzień}} Sezonu {{Kalendarz|20140304170000|sezon}} tego samego roku."''
</pre>
</pre>
returns
returns
:''"Lion's Arch was invaded on {{Kalendarz|20140218170000}}, and liberated on {{Kalendarz|20140304170000|day}} Sezonu {{Kalendarz|20140304170000|season}} of that same year."''
:''"Lion's Arch zostało zaatakowane {{Kalendarz|20140218170000}}, and liberated on {{Kalendarz|20140304170000|dzień}} Sezonu {{Kalendarz|20140304170000|sezon}} tego samego roku."''


=== To-do ===
=== To-do ===

Wersja z 02:12, 27 lip 2015

50 Sezonu Latorośli 1339

Użycie

Konwertuje datę Kalendarza Gregoriańskiego w datę Mouvelian calendar.

Parametry

parametr 1
Oczekuje timestamp w formacie RRRRMMDDGGmmss. Domyślnie 20260819132158, czyli {{CURRENTTIMESTAMP}}.
parametr 2
Opcjonalny. Zmusza szablon do zwrócenia tylko dnia, sezonu lub roku zamiast całego wiersza. Możliwe wartości to dzień, sezon, i jak się domyślacie, rok.

Przykłady

:''"Lion's Arch zostało zaatakowane {{Kalendarz|20140218170000}}, i dobite {{Kalendarz|20140304170000|dzień}} Sezonu {{Kalendarz|20140304170000|sezon}} tego samego roku."''

returns

"Lion's Arch zostało zaatakowane 49 Sezonu Zefira 1327 , and liberated on 63 Sezonu Zefira tego samego roku."

To-do

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