Difference between revisions of "Template:TestVersion"

From Arcen Wiki
Jump to navigation Jump to search
(Test version template)
 
(Documentation)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:right; clear:right; width:35em; background-color:#f3f9ff; border:1px solid #aaa; padding:0 0.5em; margin:0.5em; font-size:80%;">
+
<includeonly>{{#ifeq: {{{1}}} | {{AIWarCurrentVersion}}
{{#ifeq: {{1}} | {{AIWarCurrentVersion}} | This article is accurate for the latest version of [[AI_War:AI War|AI War]] | This article is accurate up to version {{{1}}}<br> '''Please help update this page''' to include information on {{AIWarCurrentVersion}}. }}
+
| <div style="float:right; clear:right; width:35em; background-color:#f3f9ff; border:1px solid #aaa; padding:0 0.5em; margin:0.5em; font-size:80%;">
 +
 
 +
This article is accurate for the latest version of [[AI_War:AI War|AI War]]
 +
 
 
</div>
 
</div>
 +
 +
| <div style="float:right; clear:right; width:35em; background-color:#FFCCCC; border:1px solid #aaa; padding:0 0.5em; margin:0.5em; font-size:80%;">
 +
 +
This article is '''outdated'''<br> '''Please help update this page''' to include information on the latest version ({{AIWarCurrentVersion}}).
 +
 +
</div>
 +
 +
}}</includeonly><noinclude>
 +
==Use==
 +
Use this template to mark the version the article is up-to-date with. If unknown, leave the parameter blank to denote the article is out of date.
 +
 +
==Syntax==
 +
 +
{| class="wikitable"
 +
!Code
 +
!Description
 +
!Example
 +
|-
 +
|<pre>{{TestVersion|8.024}}</pre>
 +
|If the parameter matches the latest version, the template will display:
 +
|{{TestVersion|{{AIWarCurrentVersion}}}}
 +
|-
 +
|<pre>{{TestVersion}}</pre>
 +
|If the parameter does NOT match the latest version, the template will display:
 +
|{{TestVersion}}
 +
|}
 +
Put this template on top of the page.
 +
 +
</noinclude>

Latest revision as of 02:40, 2 December 2017

Use

Use this template to mark the version the article is up-to-date with. If unknown, leave the parameter blank to denote the article is out of date.

Syntax

Code Description Example
{{TestVersion|8.024}}
If the parameter matches the latest version, the template will display:

This article is accurate for the latest version of AI War

{{TestVersion}}
If the parameter does NOT match the latest version, the template will display:

This article is outdated
Please help update this page to include information on the latest version (8.024).

Put this template on top of the page.