Difference between revisions of "Template:ArticleVersion"

From Mystcraft
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
#vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{
 
#vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{
 
#vardefine:e2|{{#var:ecur}}}}{{
 
#vardefine:e2|{{#var:ecur}}}}{{
#vardefine:e1|{{#ifexist:Old:{{#var:PAGE}}|1}}}}{{
+
#vardefine:e1|{{#ifexist:Older:{{#var:PAGE}}|1}}}}{{
 
#vardefine:evan|{{#if:{{#var:e2}}{{#var:e1}}|1}}}}
 
#vardefine:evan|{{#if:{{#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.13|1|0}}|v0.13:{{PAGENAME}}|v0.13}}{{dot}}{{
 
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.13|1|0}}|v0.13:{{PAGENAME}}|v0.13}}{{dot}}{{
version links/link|selected={{#ifeq:{{NAMESPACE}}|Older|1|0}}|v0.11:{{PAGENAME}}|v0.11}}}}
+
version links/link|selected={{#ifeq:{{NAMESPACE}}|Older|1|0}}|Older:{{PAGENAME}}|Older}}}}
 
|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.