Difference between revisions of "Template:ArticleVersion"

From Mystcraft
Jump to: navigation, search
 
(11 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_10v172:{{#var:PAGE}}|1}}}}{{
+
#vardefine:evan|{{#if:{{#var:e2}}{{#var:e1}}|1}}}}
#vardefine:e1|{{#ifexist:v0_10v164:{{#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|Mystcraft Wiki=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}}}}¶
 
{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0_11|1|0}}|v0_11:{{PAGENAME}}|v0.11.13.00}}
 
{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0_10v172|1|0}}|v0_10v172:{{PAGENAME}}|v0.10.15.00}}¶
 
{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0_10v164|1|0}}|v0_10v164:{{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.|Mystcraft Wiki=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 09:11, 15 July 2018

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