Template:ChangelogVersionHeader: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ifeq: Changelog/{{#show: STEP:Main|?CurrentRelease#}} | {{PAGENAME}} |<!--
<includeonly><!-- IF CURRENT CHANGELOG = CURRENT PAGE


Current
-->{{#ifeq:{{GetGamespace}}:{{#show:STEP:Main|?{{GetGamespace}}CurrentRelease}}/changelog|{{GetGamespace}}:{{PAGENAME}}|<!--


--> '''<''' [[Changelog|All changelogs]] {{!}} [[STEP:{{#show: STEP:Main | ?CurrentRelease# }}|STEP Guide]]
THEN SHOW CURRENT-VERSION CHANGELOG HEADER:
{{alert|type=notice|text=Changes to the live guide can occur at any time between releases, so reference the [[Changelog/{{#show:STEP:Main|?DevelopmentRelease#}}|Developmental Changelog]] to ensure nothing is missed that may impact this release (link above).}} | {{#ifeq: Changelog/{{#show: STEP:Main|?DevelopmentRelease#}} | {{PAGENAME}} | <!--


Development
-->'''<'''  [[{{GetGamespace}}:Changelogs|All {{GetGamespace}} changelogs]]  '''{{!}}'''  [[{{GetGamespace}}:{{BASEPAGENAME}}|{{GetGamespace}}:{{BASEPAGENAME}} Guide]]
{{alert|type=notice|text=Changes to the live guide can occur at any time between releases, so review this changelog to see what may have changed since your {{#show:STEP:Main|?{{GetGamespace}}CurrentRelease}} build date.}}|<!--


--> '''<''' [[Changelog|All changelogs]] {{!}} [[STEP:{{#show: STEP:Main | ?CurrentRelease# }}|STEP Guide]]
ELSE IF DEVELOPMENT CHANGELOG = CURRENT PAGE
{{alert|type=warning|text=This changelog is in development and may not yet be applicable!<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{{fs|1.2em|[[Changelog/{{#show: STEP:Main|?CurrentRelease#}}|'''View the current changelog''']]}}}} | <!--


Out Of Date
-->{{#ifeq:{{GetGamespace}}:{{#show:STEP:Main|?{{GetGamespace}}DevelopmentRelease}}/changelog|{{GetGamespace}}:{{PAGENAME}}|<!--


--> '''<''' [[Changelog|All changelogs]] {{!}} [[STEP:{{#show: STEP:Main | ?CurrentRelease# }}|STEP Guide]]
THEN SHOW DEVELOPMENT-VERSION CHANGELOG HEADER:
{{alert|type=warning|text=This guide is out of date! It may contain information that is incorrect or not in line with the current state of the game!<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{{fs|1.2em|[[Changelog/{{#show: STEP:Main|?CurrentRelease#}}|'''View the current changelog''']].}}}} }} }}</includeonly><noinclude>__NOTOC__
 
-->'''<''' [[{{GetGamespace}}:Changelogs|All {{GetGamespace}} changelogs]] '''{{!}}'''  [[{{GetGamespace}}:{{BASEPAGENAME}}|{{GetGamespace}}:{{BASEPAGENAME}} Guide]]
{{alert|type=warning|text=This changelog pertains to the WIP Guide and does not apply to the {{#show:STEP:Main|?{{GetGamespace}}CurrentRelease}} Guide!<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{fs|1.2em|[[{{GetGamespace}}:{{#show:STEP:Main|?{{GetGamespace}}CurrentRelease}}/changelog|'''View the current changelog instead''']]}}}}|<!--
 
OTHERWISE, SHOW THE PREVIOUS-VERSION CHANGE LOG HEADER:
 
-->'''<'''  [[{{GetGamespace}}:Changelogs|All {{GetGamespace}} changelogs]]  '''{{!}}'''  [[{{GetGamespace}}:{{BASEPAGENAME}}|{{GetGamespace}}:{{BASEPAGENAME}} Guide]]
{{alert|type=warning|text=This guide is not current! It may contain information that is incorrect or not in line with the current state of the game!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{fs|1.2em|[[{{GetGamespace}}:{{#show:STEP:Main|?{{GetGamespace}}CurrentRelease}}/changelog|'''View the current changelog instead''']]}}}}}}}}</includeonly><noinclude>__NOTOC__


== Purpose & Usage ==
== Purpose & Usage ==
Displays a standard header or warning box with a link to the latest changelog with either "this page is out of date" or "this page is still in development."
Displays the current-version changelog if the changelog page is indeed the current changelog. Otherwise, it shows the development-version changelog header if the changelog page corresponds to the development version, else the deprecated-version changelog header is shown.


<!--
<!--

Revision as of 05:20, November 13, 2020


Purpose & Usage

Displays the current-version changelog if the changelog page is indeed the current changelog. Otherwise, it shows the development-version changelog header if the changelog page corresponds to the development version, else the deprecated-version changelog header is shown.


See Also

None