Difference between revisions of "Template:Version Nav"
Line 4: | Line 4: | ||
|- | |- | ||
|} [[Category:Version]] | |} [[Category:Version]] | ||
+ | ''Release on: {{#time: l j F Y|@{{#expr: 1361973600 + ({{#explode:{{PAGENAME}}|.|-1}} * 24 * 60 * 60)}}}}'' | ||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 16:38, 30 January 2021
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
Description
Generates a small widget to go to the next version in the Category:Version or Category:Console version
Also handles the categorization of the page and the setting of Property:Release Date and its display. The date is either calculated manually or can be set with date=
. For testing purposes like on this page date=false
should be set, to forbid that properties are set.
In case of an Unstable version, the field unstable=
must be set to 1 (or any non-empty value). This will also set the page property Stable Version=false
, for search purposes.
Examples
Standard
{{Version Nav}}
on page Version/0.9.722 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
Unstable versions
{{Version Nav|unstable=1}}
on page Version/1.5.4101 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
Special cases
{{Version Nav}}
on page Version/0.9.722 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav|date=2018-10-17}}
on page Version/1.0.0 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav}}
on page Version/0.0.232 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav}}
on page Version/0.1.334 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav}}
on page Version/0.2.363 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav}}
on page Version/0.19.2009 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
{{Version Nav}}
on page current version would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
Console version
{{Version Nav|date=2023-04-25}}
on page Console version/1.21 would produce:
Previous Version: Internal version/0.1.334 | Next Version: Version/0.0.232 |
Release on: Error: Invalid time.
The above documentation is transcluded from Template:Version Nav/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |