Template:Current version: Difference between revisions
m (noinclude) |
(update) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{ | {{Protection}} | ||
{{Documentation}} | {{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/IWBUMS'', or ''test'' version. | |||
</noinclude><includeonly>{{#switch:{{{1}}} | |||
| date | ==Usage== | ||
| stable | | ===Parameters=== | ||
;<code>1</code> | |||
| test | :This is the variable that determines what is displayed. Can be one of the following (case insensitive): | ||
}}{{#switch: {{{date}}} | :*<code>date</code> | ||
| stable | :*<code>stable</code> | ||
:*<code>unstable</code>, <code>iwbums</code> | |||
| test | :*<code>test</code>, <code>testing</code> | ||
;<code>date</code> | |||
:Returns the release date of the spcecified version. Can be one of the following (case insensitive): | |||
:*<code>stable</code> | |||
:*<code>unstable</code>, <code>iwbums</code> | |||
:*<code>test</code>, <code>testing</code> | |||
===Date updated=== | |||
This is to identify the last time this template was updated. | |||
*{{tll|Current version|date}} -> {{Current version|date}} | |||
===Stable=== | |||
Used to display the current stable build. | |||
*{{tll|Current version|stable}} -> {{Current version|stable}} | |||
*{{tll|Current version|date{{=}}stable}} -> {{Current version|date=stable}} | |||
===Unstable=== | |||
Used to display the current unstable build. | |||
*{{tll|Current version|unstable}} / {{tll|Current version|iwbums}} -> {{Current version|unstable}} | |||
*{{tll|Current version|date{{=}}unstable}} / {{tll|Current version|date{{=}}iwbums}} -> {{Current version|date=unstable}} | |||
===Test=== | |||
Used to display the current public test build. | |||
*{{tll|Current version|test}} -> {{Current version|test}} | |||
*{{tll|Current version|date{{=}}test}} -> {{Current version|date=test}} | |||
==Updating== | |||
The variables within this template can be updated easily. | |||
===Version Number=== | |||
Replace the old version number with the new one: | |||
{{!}} stable = {{ll<nowiki/>|Build 41|'''41.78.16'''}} | |||
If it's a whole new build, replace the article name - this will provide a link to the relevant changelogs: | |||
{{!}} stable = {{ll<nowiki/>|'''Build 41'''|41.78.16}} | |||
===Date=== | |||
Replace the old date with when the update was released: | |||
{{!}} stable = '''12/12/2022''' | |||
{{Translation guide}} | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly>{{#switch: {{lc: {{{1|}}} }} | |||
| date = {{REVISIONDAY}}/{{REVISIONMONTH1}}/{{REVISIONYEAR}} | |||
| stable = {{ll|Build 41|41.78.16}} | |||
| iwbums | unstable = {{ll|Build 41|41.78.16}} | |||
| test | testing = {{ll|Build 42|42}} | |||
}}{{#switch: {{lc: {{{date|}}} }} | |||
| stable = 12/12/2022 | |||
| iwbums | unstable = 8/12/2022 | |||
| test | testing = 19/02/2023 | |||
}}</includeonly> | }}</includeonly> |
Revision as of 19:52, 30 December 2023
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, 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
test
,testing
date
- Returns the release date of the spcecified version. Can be one of the following (case insensitive):
stable
unstable
,iwbums
test
,testing
Date updated
This is to identify the last time this template was updated.
{{Current version|date}}
-> 30/12/2023
Stable
Used to display the current stable build.
{{Current version|stable}}
-> 41.78.16{{Current version|date=stable}}
-> 12/12/2022
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}}
-> 8/12/2022
Test
Used to display the current public test build.
{{Current version|test}}
-> 42{{Current version|date=test}}
-> 19/02/2023
Updating
The variables within this template can be updated easily.
Version Number
Replace the old version number with the new one:
| stable = {{ll|Build 41|41.78.16}}
If it's a whole new build, replace the article name - this will provide a link to the relevant changelogs:
| stable = {{ll|Build 41|41.78.16}}
Date
Replace the old date with when the update was released:
| stable = 12/12/2022
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.