Difference between revisions of "Template:ArticleVersion"

From Mystcraft
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
 
#vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{
 
#vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{
#vardefine:e4|{{#var:ecur}}}}{{
+
#vardefine:e2|{{#var:ecur}}}}{{
#vardefine:e3|{{#ifexist:v0.13.2:{{#var:PAGE}}|1}}}}{{
+
#vardefine:e1|{{#ifexist:Older:{{#var:PAGE}}|1}}}}{{
#vardefine:e2|{{#ifexist:v0.12:{{#var:PAGE}}|1}}}}{{
+
#vardefine:evan|{{#if:{{#var:e2}}{{#var:e1}}|1}}}}
#vardefine:e1|{{#ifexist:v0.11:{{#var:PAGE}}|1}}}}{{
 
#vardefine:evan|{{#if:{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
 
 
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft=blue|#default=orange}}
 
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft=blue|#default=orange}}
 
|r1={{#if:{{#var:evan}}|{{
 
|r1={{#if:{{#var:evan}}|{{
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.12|1|0}}|v0.13.4:{{PAGENAME}}|v0.13.4}}{{dot}}{{
+
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.13|1|0}}|v0.13:{{PAGENAME}}|v0.13}}{{dot}}{{
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.12|1|0}}|v0.13.2:{{PAGENAME}}|v0.13.2}}{{dot}}{{
+
version links/link|selected={{#ifeq:{{NAMESPACE}}|Older|1|0}}|Older:{{PAGENAME}}|Older}}}}
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.12|1|0}}|v0.12:{{PAGENAME}}|v0.12}}{{dot}}{{
 
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.11|1|0}}|v0.11:{{PAGENAME}}|v0.11}}}}
 
 
|bottom={{version links/link|template:av|More Info}}
 
|bottom={{version links/link|template:av|More Info}}
 
|center={{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of Mystcraft.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:ecur}}||[[category:Missing current version|{{PAGENAME}}]]}}|Template=This article is in the template namespace.|Mystcraft=This article is in the main Mystcraft wiki namespace.|{{Project:Current}}=This article is about the current version of Mystcraft.[[category:Current|{{PAGENAME}}]]}}
 
|center={{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of Mystcraft.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:ecur}}||[[category:Missing current version|{{PAGENAME}}]]}}|Template=This article is in the template namespace.|Mystcraft=This article is in the main Mystcraft wiki namespace.|{{Project:Current}}=This article is about the current version of Mystcraft.[[category:Current|{{PAGENAME}}]]}}

Latest revision as of 08:11, 15 July 2018

Shortcut:
template:av
This article is in the template namespace.