Difference between revisions of "Template:Patch notes"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(update version)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250902}}
| 0.9.3.9
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250817}}
| 0.9.3.6
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250815}}
| 0.9.3.0
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250427}}
| 0.9.2.13
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250331}}
| 0.9.2.11
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250312}}
| 0.9.2.3
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250214}}
| 0.9.1.19
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250130}}
| 0.9.1.18
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250127}}
| 0.9.1.17
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250123}}
| 0.9.1.16
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20250106}}
| 0.9.1.11
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20241216}}
| 0.9.1.0
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20230915}}
| 0.8.2.3
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20230527}}
| 0.8.1.8
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20230111}}
| 0.8.0.27
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20221208}}
| 0.8.0.19
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20221120}}
| 0.8.0.18
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20221013}}
| 0.8.0.17
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20221012}}
| 0.8.0.14
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220829}}
| 0.8.0.13
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220813}}
| 0.8.0.11
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220805}}
| 0.8.0.0
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220227}}
| 0.7.0.27
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220215}}
| 0.7.0.26
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20220206}}
| 0.7.0.24
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211229}}
| 0.7.0.23
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211221}}
| 0.7.0.22
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211216}}
| 0.7.0.17
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211206}}
| 0.7.0.16
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211202}}
| 0.7.0.15
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211129}}
| 0.7.0.14
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211126}}
| 0.7.0.13
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211125}}
| 0.7.0.12
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211124}}
| 0.7.0.11
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211122}}
| 0.7.0.9
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211120}}
| 0.7.0.7
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211119}}
| 0.7.0.4
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20211118}}
| 0.7.0.0
|
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20210519}}
{{#ifexpr: {{#time: xNU|{{REVISIONTIMESTAMP}}}} > {{#time: xNU|20210519}}
| 0.6.1.10
| 0.6.1.10
Line 92: Line 206:
| 0.5.7.12
| 0.5.7.12
| 0.5.7.11
| 0.5.7.11
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}<noinclude>
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}<!--
--- Check if BASEPAGENAME exists in datapages, if yes, load last revision timestamp from that datapage as variable ---
--> <!--
-->{{#ifeq: {{:Weapon_data|{{BASEPAGENAME}}}}|Data does not exist.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:Weapon data}} }} }} }}<!--
-->{{#ifeq: {{:Armor_data|{{BASEPAGENAME}}}}|Data does not exist.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:Armor data}} }} }} }}<!--
---{{#ifeq: {{:Consumable_data|{{BASEPAGENAME}}}}|Data does not exist.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:Consumable data}} }} }} }}---
-->{{#ifeq: {{:Enemy_data|{{BASEPAGENAME}}}}|Data does not exist.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:Enemy data}} }} }} }}<!--
-->{{#ifeq: {{:Book_data|{{BASEPAGENAME}}}}|Data does not exist.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:Book data}} }} }} }}<!--
--- For Skills, load the timestamp from the respective skill tree data page. Conveniently, the name is provided by switch on the Skill_data page. ---
-->{{#ifeq: {{:Skill_data|{{BASEPAGENAME}}}}|Skill data missing.||{{#vardefine:DataTime|{{#time: xNU|{{REVISIONTIMESTAMP:{{:Skill_data|{{BASEPAGENAME}}}}}} }} }} }}<!--
--- Convert the timestamp into game version ---
-->{{#if: {{#var:DataTime}}|{{!}} ''Data Page last updated in:'' {{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250902}}
| 0.9.3.9
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250817}}
| 0.9.3.6
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250815}}
| 0.9.3.0
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250427}}
| 0.9.2.13
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250331}}
| 0.9.2.11
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250312}}
| 0.9.2.3
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250214}}
| 0.9.1.19
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250130}}
| 0.9.1.18
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250127}}
| 0.9.1.17
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20250123}}
| 0.9.1.16
|
{{#ifexpr: {{#var:DataTime}} > {{#time: xNU|20241216}}
| 0.9.1.0
| before RtR}} }} }} }} }} }} }} }} }} }} }} }}<!--
--><noinclude>
{{doc}}
{{doc}}


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

Latest revision as of 00:58, 3 September 2025

0.9.3.9

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.

 }}