Difference between revisions of "Template:Patch notes"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added doc link)
old>Realpsojed
(added doc link)
Line 1: Line 1:
• ''Last edited during patch:''
''Last edited during patch:''
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200220}}
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200220}}
| 0.5.7.18
| 0.5.7.18
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200219}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200219}}
| 0.5.7.17
| 0.5.7.17
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200217}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200217}}
| 0.5.7.16
| 0.5.7.16
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200213}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200213}}
| 0.5.7.15
| 0.5.7.15
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200211}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200211}}
| 0.5.7.14
| 0.5.7.14
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200210}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200210}}
| 0.5.7.13
| 0.5.7.13
| {{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200209}}
|  
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20200209}}
| 0.5.7.12
| 0.5.7.12
| 0.5.7.11
| 0.5.7.11
Line 18: Line 24:




<noinclude>[[Template:Patch notes/doc]]
<noinclude>== [[Template:Patch notes/doc]] ==


{{doc}}
{{doc}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:17, 5 March 2020

Last edited during patch: 0.5.7.18


Template:Patch notes/doc

Template-info.png Documentation

This one is a little rough. Basically this template takes the latest edit timestamp, converts it to a number using the #time function and then we compare that number with the date when a patch was released. I'm inputting the patch dates manually, and I take them from the News section on Steam.

If the last page revision happened AFTER the patch date (ie. REVISIONTIMESTAMP > patch date is true), it returns the patch number.

If the last page revision happened BEFORE the patch date (ie. REVISIONTIMESTAMP > patch is false), it moves on to previous patch date and runs the same check again.


Adding new patch:

1) Edit the Template:Patch notes page, add these lines on a new line after ''Last edited during patch:''

{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|date of patch release, using format YYYYMMDD}}
| patch number
| 

2) Edit the patch number and date of patch release in the lines you just added. Example: Patch 0.5.7.18 was released on 20.02.2020, so the date should be 20200220

3) Then find the line with many brackets:

}} }} }} }} }} }}

4) Now add new brackets at the end.

 }}