Difference between revisions of "Template:ArticleVersion"

From Mystcraft
Jump to: navigation, search
 
(14 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
</noinclude>{{
 
</noinclude>{{
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
#vardefine:ecur|{{#ifexist:v0.12:{{#var:PAGE}}|1}}}}{{
+
#vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{
#vardefine:e4|{{#var:ecur}}}}{{
+
#vardefine:e2|{{#var:ecur}}}}{{
#vardefine:e3|{{#ifexist:v0.11:{{#var:PAGE}}|1}}}}{{
+
#vardefine:e1|{{#ifexist:Older:{{#var:PAGE}}|1}}}}{{
#vardefine:e2|{{#ifexist:v0.10_1.7.2:{{#var:PAGE}}|1}}}}{{
+
#vardefine:evan|{{#if:{{#var:e2}}{{#var:e1}}|1}}}}
#vardefine:e1|{{#ifexist:v0.10_1.6.4:{{#var:PAGE}}|1}}}}{{
+
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft=blue|#default=orange}}
#vardefine:evan|{{#if:{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
+
|r1={{#if:{{#var:evan}}|{{
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Project=blue|#default=orange}}
+
version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.13|1|0}}|v0.13:{{PAGENAME}}|v0.13}}{{dot}}{{
|r1={{#if:{{#var:evan}}|
+
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}}|v{{current/version}}}}{{dot}}{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.11|1|0}}|v0.11:{{PAGENAME}}|v0.11.13.00}}{{dot}}{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.10_1.7.2|1|0}}|v0.10_1.7.2:{{PAGENAME}}|v0.10.15.00}}{{dot}}{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.10_1.6.4|1|0}}|v0.10_1.6.4:{{PAGENAME}}|v0.10.13.01}}
 
}}
 
 
|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.|Project=This article is in the 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}}]]}}
 
}}{{#ifeq:{{lc:{{NAMESPACE}}}}}}<noinclude>
 
}}{{#ifeq:{{lc:{{NAMESPACE}}}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:11, 15 July 2018

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