Aurora is on version 2.5.0 C#, available at the Aurora Forums.

Contact Erik on the forum for a wiki account.

Difference between revisions of "Template:ArticleVersion"

From AuroraWiki
Jump to navigation Jump to search
(Modified version of http://dwarffortresswiki.org/index.php/Template:ArticleVersion)
 
(lets keep documentation\categorization)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<noinclude>Currently Disabled.</noinclude><!--
 
<noinclude>
 
<noinclude>
 
{{shortcut|template:av}}
 
{{shortcut|template:av}}
 
</noinclude>{{
 
</noinclude>{{
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
 
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
#vardefine:ecur|{{#ifexist:6.43:{{#var:PAGE}}|1}}}}{{
+
#vardefine:ecur|{{#ifexist:6.4X:{{#var:PAGE}}|1}}}}{{
 
#vardefine:e4|{{#var:ecur}}}}{{
 
#vardefine:e4|{{#var:ecur}}}}{{
#vardefine:e3|{{#ifexist:6.42:{{#var:PAGE}}|1}}}}{{
+
#vardefine:e3|{{#ifexist:6.40:{{#var:PAGE}}|1}}}}{{
#vardefine:e2|{{#ifexist:6.0:{{#var:PAGE}}|1}}}}{{
+
#vardefine:e2|{{#ifexist:6.00:{{#var:PAGE}}|1}}}}{{
 
#vardefine:e1|{{#ifexist:5.50:{{#var:PAGE}}|1}}}}{{
 
#vardefine:e1|{{#ifexist:5.50:{{#var:PAGE}}|1}}}}{{
#vardefine:evan|{{#if:{{#var:e5}}{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
+
#vardefine:evan|{{#if:{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}
 
{{version links
 
{{version links
|theme={{#switch:{{NAMESPACE}}|{{Aurora:Current}}=green|Template|Auror Wiki=blue|#default=orange}}
+
|theme={{#switch:{{NAMESPACE}}|{{Aurora_Wiki:Current}}=green|Template|Aurora Wiki=blue|#default=orange}}
 
|r1={{#if:{{#var:evan}}|
 
|r1={{#if:{{#var:evan}}|
[[{{#ifeq:{{NAMESPACE}}|6.43|*}}6.43:{{PAGENAME}}|{{current/version}}]]
+
[[{{#ifeq:{{NAMESPACE}}|Current_Version|*}}6.4X:{{PAGENAME}}|{{current/version}}]]
[[{{#ifeq:{{NAMESPACE}}|6.42|*}}6.42:{{PAGENAME}}|6.42]]
+
[[{{#ifeq:{{NAMESPACE}}|6.40|*}}6.40:{{PAGENAME}}|6.40]]
[[{{#ifeq:{{NAMESPACE}}|6.0|*}}6.0:{{PAGENAME}}|6.0]]
+
[[{{#ifeq:{{NAMESPACE}}|6.00|*}}6.00:{{PAGENAME}}|6.00]]
 
[[{{#ifeq:{{NAMESPACE}}|5.50|*}}5.50:{{PAGENAME}}|5.50]]
 
[[{{#ifeq:{{NAMESPACE}}|5.50|*}}5.50:{{PAGENAME}}|5.50]]
}}
 
|r2={{#if:{{#var:emod}}|
 
{{#if:{{#var:ismod}}||Mods:&nbsp;}}
 
 
}}
 
}}
 
|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 Aurora.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:e4}}||[[category:Missing current version|{{PAGENAME}}]]}}|Template=This article is in the template namespace.|Aurora Wiki=This article is in the DF wiki namespace.|{{df:current}}=This article is about the current version of Aurora.[[category:Current|{{PAGENAME}}]]
+
|center={{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of Aurora.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:e4}}||[[category:Missing current version|{{PAGENAME}}]]}}|Template=This article is in the template namespace.|Aurora Wiki=This article is in the Aurora wiki namespace.|{{Aurora_Wiki:Current}}=This article is about the current version of Aurora.[[category:Current|{{PAGENAME}}]]
}}}}<noinclude>
+
}}}}--><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 06:13, 25 December 2015

Currently Disabled.

[edit] [purge] Template-info.svg Template 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, 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.