Editing Template:Version Nav
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:fullPageName|{{{page|{{FULLPAGENAME}}} | + | <includeonly>{{#vardefine:fullPageName|{{{page|{{FULLPAGENAME}}}}}}}<!-- |
Find the previous version | Find the previous version | ||
-->{{#vardefine:previousVersion | {{#switch: {{#vardefineecho:pagename|{{PAGENAME}} }} | -->{{#vardefine:previousVersion | {{#switch: {{#vardefineecho:pagename|{{PAGENAME}} }} | ||
| Version/0.0.232 = Version history | | Version/0.0.232 = Version history | ||
− | | #default = {{#ask: [[Category: | + | | #default = {{#ask: [[Category:Version]] [[Release Date::<<{{Q|{{#var: fullPageName}}|Release Date}}]] | format=plainlist | limit=1 | link=none | default=Version history | order=descending | sort=Release Date| searchlabel=}} }} }}<!-- |
Find the next version | Find the next version | ||
-->{{#vardefine:nextVersion | {{#switch: {{#var:pagename}} | -->{{#vardefine:nextVersion | {{#switch: {{#var:pagename}} | ||
| Version/{{Current Version}} = Version history | | Version/{{Current Version}} = Version history | ||
− | | #default = {{#ask: [[Category: | + | | #default = {{#ask: [[Category:Version]] [[Release Date::>>{{Q|{{#var: fullPageName}}|Release Date}}]] | format=plainlist | limit=1 | link=none | default=Version history | order=ascending | sort=Release Date| searchlabel=}} }} }} |
{| style="border-collapse:collapse; padding:5px; outline: 1px #E0E0E0 solid;" align=center | {| style="border-collapse:collapse; padding:5px; outline: 1px #E0E0E0 solid;" align=center | ||
| style="border: 1px #A0A0A0 solid; background-color: #eee; padding: 5px 10px;" | '''Previous Version:''' [[{{#var:previousVersion}}]]<br/>'''Released on:''' {{Q|{{#var:previousVersion}}|Release Date|–}} | | style="border: 1px #A0A0A0 solid; background-color: #eee; padding: 5px 10px;" | '''Previous Version:''' [[{{#var:previousVersion}}]]<br/>'''Released on:''' {{Q|{{#var:previousVersion}}|Release Date|–}} | ||
Line 17: | Line 17: | ||
----<!-- | ----<!-- | ||
Set the category | Set the category | ||
− | -->{{#ifeq: {{#sub:{{#var:pagename}}||8}}|Version/|[[Category: | + | -->{{#ifeq: {{#sub:{{#var:pagename}}||8}}|Version/|[[Category:Version|{{#explode:{{#var:pagename}}|.|-3}}.{{#ifexpr: {{#len:{{#explode:{{#var:pagename}}|.|-2}} }} = 1 | 0 }}{{#explode:{{#var:pagename}}|.|-2}}.{{#explode:{{#var:pagename}}|.|-1}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude> |