Difference between revisions of "Template:ArticleVersion"
From Mystcraft
(9 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
</noinclude>{{ | </noinclude>{{ | ||
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{ | #vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{ | ||
− | #vardefine:ecur|{{#ifexist | + | #vardefine:ecur|{{#ifexist:{{Project:Current}}:{{#var:PAGE}}|1}}}}{{ |
− | + | #vardefine:e2|{{#var:ecur}}}}{{ | |
− | + | #vardefine:e1|{{#ifexist:Older:{{#var:PAGE}}|1}}}}{{ | |
− | #vardefine:e2| | + | #vardefine:evan|{{#if:{{#var:e2}}{{#var:e1}}|1}}}} |
− | #vardefine:e1|{{#ifexist: | + | {{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft=blue|#default=orange}} |
− | #vardefine:evan|{{#if: | + | |r1={{#if:{{#var:evan}}|{{ |
− | {{version links|theme={{#switch:{{NAMESPACE}}|{{Project:Current}}=green|Template|Mystcraft | + | 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}}}} |
− | |||
− | |||
− | {{ | ||
− | |||
− | }} | ||
|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 | + | |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
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.