Шаблон:Game updates monthly overview — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) (временное возвращение dpl, smw глючит) |
||
(не показано 30 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | <includeonly>__NOTOC__{{ #vardefine: month | {{#time: Y-m | 01 {{#explode:{{ | + | <includeonly>__NOTOC__{{#vardefine:month-name|{{#explode:{{#explode:{{PAGENAME}}|/|1}}| |0}}}}{{#vardefine:month|{{#time: Y-m | 01 {{#switch:{{#var:month-name}}|Январь=January|Февраль=February|Март=March|Апрель=April|Май=May|Июнь=June|Июль=July|Август=August|Сентябрь=September|Октябрь=October|Ноябрь=November|Декабрь=December|#default={{#var:month-name}}}} {{#explode:{{PAGENAME}}| |2}} }}}}{{#vardefine: game updates | {{#ask: [[Category:Обновления за {{#time: F Y | {{#var:month}}-01 }}]] [[Has context::Game update]] [[~Обновления игры/20*]] | link = none | format = plainlist | order = descending }} }} |
− | {| {{STDT}} style="float:right; margin-left:10px;" | + | {| {{STDT|promo}} style="float:right; margin-left:10px;" |
− | ! Обновления за {{# | + | ! [[Обновления игры|Обновления]] за {{#time: F Y | {{#var:month}}-01 }} |
|- | |- | ||
| | | | ||
{{ #dpl: | {{ #dpl: | ||
| namespace = | | namespace = | ||
− | | titlematch = Обновления игры/{{ #var: month }}% | + | | titlematch = Обновления игры/{{#var:month}}% |
+ | | nottitlematch = Обновления игры/{{#var:month}}%/% | ||
| ordermethod = title | | ordermethod = title | ||
| order = descending | | order = descending | ||
| replaceintitle = /Обновления игры\//, | | replaceintitle = /Обновления игры\//, | ||
− | | format = ,¶* [[%PAGE%|²{ #time: l, j | + | | format = ,¶* [[%PAGE%|²{ucfirst: ²{#time: l, j xg Y ¦ %TITLE% }² }²]], |
| noresultsheader = ''Обновлений пока нет'' | | noresultsheader = ''Обновлений пока нет'' | ||
}} | }} | ||
|- | |- | ||
− | ! [[ | + | ! {{ifexists|Обновления игры/{{ucfirst:{{#time: F Y | {{#var:month}}-14 - 20 days}}}}|[[Обновления игры/{{ucfirst:{{#time: F Y | {{#var:month}}-14 - 20 days}}}}|← Ранее]]|← Ранее}} {{bullet}} {{ifexists|Обновления игры/{{ucfirst:{{#time: F Y | {{#var:month}}-14 + 20 days}}}}|[[Обновления игры/{{ucfirst:{{#time: F Y | {{#var:month}}-14 + 20 days}}}}|Позднее →]]|Позднее →}} |
|} | |} | ||
{{ #dpl: | {{ #dpl: | ||
| namespace = | | namespace = | ||
− | | titlematch = Обновления игры/{{ #var: month }}% | + | | titlematch = Обновления игры/{{#var:month}}% |
+ | | nottitlematch = Обновления игры/{{#var:month}}%/% | ||
| ordermethod = title | | ordermethod = title | ||
| order = descending | | order = descending | ||
Строка 26: | Строка 28: | ||
}} | }} | ||
− | [[Category:Обновления|{{#expr:({{#time:Y|{{#var:month}}-01}} / 1 ) mod | + | [[Category:Обновления|{{#expr: ({{#time: Y | {{#var:month}}-01 }} / 1) mod 100 }} {{#var:month}}]] |
− | [[Category:Обновления за {{ #time: F Y | + | [[Category:Обновления за {{#time: F Y | {{#var:month}}-01 }}|*]]</includeonly><noinclude> |
− | |||
== Usage == | == Usage == | ||
<pre>{{Game updates monthly overview}}</pre> | <pre>{{Game updates monthly overview}}</pre> | ||
Строка 34: | Строка 35: | ||
== Example == | == Example == | ||
See [[Game updates/June 2018]]. | See [[Game updates/June 2018]]. | ||
− | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |