Template:Current version: Difference between revisions
(update) |
(Version number based on https://www.youtube.com/watch?v=Qy8xQC1KKh4 and date based on SteamDB depot, minor fixes) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Protection}} | {{Protection}} | ||
{{Documentation/sandbox|doc = | {{Documentation/sandbox|doc = | ||
A simple template that displays the current version so articles can be updated on a single page (here) rather than updating each page individually. Depending on the variable, this template can display the current ''stable'', ''unstable/ | A simple template that displays the current version so articles can be updated on a single page (here) rather than updating each page individually. Depending on the variable, this template can display the current ''stable'', ''unstable/iwbums/beta'', or ''test'' version. | ||
==Usage== | ==Usage== | ||
Line 10: | Line 10: | ||
:*<code>date</code> | :*<code>date</code> | ||
:*<code>stable</code> | :*<code>stable</code> | ||
:*<code>unstable</code>, <code>iwbums</code> | :*<code>unstable</code>, <code>iwbums</code>, <code>beta</code> | ||
:*<code>test</code>, <code>testing</code> | :*<code>test</code>, <code>testing</code> | ||
;<code>date</code> | ;<code>date</code> | ||
:Returns the release date of the spcecified version. Can be one of the following (case insensitive): | :Returns the release date of the spcecified version. Can be one of the following (case insensitive): | ||
:*<code>stable</code> | :*<code>stable</code> | ||
:*<code>unstable</code>, <code>iwbums</code> | :*<code>unstable</code>, <code>iwbums</code>, <code>beta</code> | ||
:*<code>test</code>, <code>testing</code> | :*<code>test</code>, <code>testing</code> | ||
Line 24: | Line 24: | ||
===Stable=== | ===Stable=== | ||
Used to display the current stable build. | Used to display the current stable build. | ||
*{{tll|Current version|stable}} | *{{tll|Current version|stable}} → {{Current version|stable}} | ||
*{{tll|Current version|date{{=}}stable}} | *{{tll|Current version|date{{=}}stable}} → {{Current version|date=stable}} | ||
===Unstable=== | ===Unstable=== | ||
Used to display the current unstable build. | Used to display the current unstable build. | ||
*{{tll|Current version|unstable}} / {{tll|Current version|iwbums}} | *{{tll|Current version|unstable}} / {{tll|Current version|iwbums}} → {{Current version|unstable}} | ||
*{{tll|Current version|date{{=}}unstable}} / {{tll|Current version|date{{=}}iwbums}} | *{{tll|Current version|date{{=}}unstable}} / {{tll|Current version|date{{=}}iwbums}} → {{Current version|date=unstable}} | ||
===Test=== | ===Test=== | ||
Used to display the current | Used to display the current test build (currently internal testing only, teased on tweets and blog posts). | ||
*{{tll|Current version|test}} | *{{tll|Current version|test}} → {{Current version|test}} | ||
*{{tll|Current version|date{{=}}test}} | *{{tll|Current version|date{{=}}test}} → {{Current version|date=test}} | ||
==Updating== | ==Updating== | ||
Line 42: | Line 42: | ||
===Version Number=== | ===Version Number=== | ||
Replace the old version number with the new one: | Replace the old version number with the new one: | ||
{{!}} stable = | {{!}} stable = '''41.78.16''' | ||
===Date=== | |||
{{!}} stable = | Replace the old date with when the update was released:<br> | ||
''This <u>must</u> be in [[wikipedia:ISO 8601|ISO 8601]] date format (yyyy-mm-dd). The format will change based on user preference.'' | |||
{{!}} stable = '''2022-12-12''' | |||
{{Translation guide}} | {{Translation guide}} | ||
Line 55: | Line 54: | ||
{{ll|Category:Templates}} | {{ll|Category:Templates}} | ||
</noinclude><includeonly>{{#switch: {{lc: {{{1|}}} }} | </noinclude><includeonly>{{#switch: {{lc: {{{1|}}} }} | ||
| date = {{ | | date = {{#formatdate:{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY}}|ISO 8601}} | ||
| stable = | | stable = 41.78.16 | ||
| iwbums | unstable = | | iwbums | unstable | beta = 41.78.16 | ||
| test | testing = | | test | testing = 41.78.17 | ||
}}{{#switch: {{lc: {{{date|}}} }} | }}{{#switch: {{lc: {{{date|}}} }} | ||
| stable = 12 | | stable = {{#formatdate:2022-12-12|ISO 8601}} | ||
| iwbums | unstable = | | iwbums | unstable | beta = {{#formatdate:2022-12-08|ISO 8601}} | ||
| test | testing = | | test | testing = {{#formatdate:2024-03-31|ISO 8601}} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 14:08, 31 March 2024
A simple template that displays the current version so articles can be updated on a single page (here) rather than updating each page individually. Depending on the variable, this template can display the current stable, unstable/iwbums/beta, or test version.
Usage
Parameters
1
- This is the variable that determines what is displayed. Can be one of the following (case insensitive):
date
stable
unstable
,iwbums
,beta
test
,testing
date
- Returns the release date of the spcecified version. Can be one of the following (case insensitive):
stable
unstable
,iwbums
,beta
test
,testing
Date updated
This is to identify the last time this template was updated.
{{Current version|date}}
-> 2024-03-31
Stable
Used to display the current stable build.
{{Current version|stable}}
→ 41.78.16{{Current version|date=stable}}
→ 2022-12-12
Unstable
Used to display the current unstable build.
{{Current version|unstable}}
/{{Current version|iwbums}}
→ 41.78.16{{Current version|date=unstable}}
/{{Current version|date=iwbums}}
→ 2022-12-08
Test
Used to display the current test build (currently internal testing only, teased on tweets and blog posts).
{{Current version|test}}
→ 41.78.17{{Current version|date=test}}
→ 2024-03-31
Updating
The variables within this template can be updated easily.
Version Number
Replace the old version number with the new one:
| stable = 41.78.16
Date
Replace the old date with when the update was released:
This must be in ISO 8601 date format (yyyy-mm-dd). The format will change based on user preference.
| stable = 2022-12-12
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.