Difference between revisions of "Template:ArticleVersion"

From Mystcraft
Jump to: navigation, search
Line 10: Line 10:
 
#vardefine:e1|{{#ifexist:v0.10_1.6.4:{{#var:PAGE}}|1}}}}{{
 
#vardefine:e1|{{#ifexist:v0.10_1.6.4:{{#var:PAGE}}|1}}}}{{
 
#vardefine:evan|{{#if:{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
 
#vardefine:evan|{{#if:{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Project=blue|#default=orange}}
+
{{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft Wiki=blue|#default=orange}}
 
|r1={{#if:{{#var:evan}}|
 
|r1={{#if:{{#var:evan}}|
 
{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.12|1|0}}|v0.12:{{PAGENAME}}|v{{current/version}}}}¶
 
{{version links/link|selected={{#ifeq:{{NAMESPACE}}|v0.12|1|0}}|v0.12:{{PAGENAME}}|v{{current/version}}}}¶
Line 18: Line 18:
 
}}
 
}}
 
|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 Wiki=This article is in the 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>

Revision as of 02:52, 26 July 2015

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