Difference between revisions of "Template:ArticleVersion"
From Mystcraft
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| | + | {{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.| | + | |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
This article is in the template namespace. |
(view - edit - history - purge) Documentation
This template is to be used on all pages that are game version specific.
Usage
To use this template simply add {{ArticleVersion}} or {{av}} to the top of an article.
"There's a new version! What do I do?"
If the version is major enough to warrant a new namespace (this will have been determined by the community), then the most important thing to do is update this page with the newest namespace. This will cause all the templates to show the proper current/outdated message.
The second thing to do is update the ArticleVersion template. This template is widely used and quite complicated; please do not attempt to modify it unless you are very familiar with wiki template code. Instead, please post an update request on its talk page.