Difference between revisions of "Template:Version/doc"

From Europa Universalis 4 Wiki
Jump to navigation Jump to search
m (1 revision: Templates imported from the V2 Wiki)
(Updated)
Line 1: Line 1:
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 
     <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
     <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
'''''Version''''' can be used to indicate if information in an article applies to specific versions of Victoria II.
+
'''''Version''''' can be used to indicate if information in an article applies to specific versions of Crusader Kings II.
  
 
== Usage ==
 
== Usage ==
Line 20: Line 20:
 
!style="text-align:left;"| Explanation
 
!style="text-align:left;"| Explanation
 
|-  
 
|-  
| '''''Victoria II Base game'''''
+
| '''''Expansion'''''
| Accuracy with regards to the base game of Victoria II (no expansion installed)
+
| Which expansion has it been updated for
|-
 
| '''''Victoria II : A House Divided'''''
 
| Accuracy with regards to that expansion of Victoria II : A House Divided.
 
|-
 
| '''''Victoria II : Heart of Darkness'''''
 
| Accuracy with regards to that expansion of Victoria II : Heart of Darkness.
 
 
|}
 
|}
  
Line 37: Line 31:
 
!style="text-align:left;"| Explanation
 
!style="text-align:left;"| Explanation
 
|-  
 
|-  
| '''''(version number)'''''
+
| '''''(expansion)'''''
| The version number for which this article has been written (for example 1.3. or 2.2)
+
| The expansion for which this article has been written (for example Legacy of Rome. or the Old Gods)
 
|-
 
|-
| '''''Time'''''
+
| '''''Time/Timeless'''''
 
| For timeless articles.
 
| For timeless articles.
 
|}
 
|}
Line 47: Line 41:
  
 
== Effects ==
 
== Effects ==
* Puts the including page into the [[:Category:Current Version]] if the version is equal to the current version, [[:Category:Timeless]] for articles that don't have time sensitive content, or puts it into [[:Category:Obsolete]] otherwise.
+
* Puts the including page into [[:Category:Timeless]] for articles that don't have time sensitive content or puts it into [[:Category:Obsolete]] if it is not up to date.
  
 
== Updating This Template ==
 
== Updating This Template ==
Add the new version number in the #Switch to the new version:
+
Replace the expansion listed in the template with the new one.
<pre>
 
<includeonly><div class="boilerplate metadata" style="float:right; clear:both; width:23em; background-color:#fffff0; border:1px solid #aaa; padding:0 0.5em; margin:0.5em; font-size:80%;">
 
{{#Switch: {{{1}}}
 
  | Time = This article's contents are [[Category:Timeless]] [[:Category:Timeless|timeless]] and true to any version of the game.
 
  | #Default = This article is regarded as [[Template:Version|accurate]] for the following versions of Vicky2:<BR>
 
* Vanilla: {{{1|Unknown}}} {{#Switch: {{{1}}}
 
      | 1.0 = [[Category:Current Version]] ([[:Category:Current Version|Current]])
 
<!-- Add it here in the fashion of the previous entries -->
 
      | #Default = [[Category:Obsolete]] ([[:Category:Obsolete|Obsolete]])
 
}}}}
 
</div></includeonly>
 
</pre>
 
 
 
If an expansion comes out, add another line similar to this line, except replace "vanilla" with the expansion name.
 
 
 
== Example ==
 
<pre>{{Version|1.3|2.31}}</pre>
 
 
 
Will display the version status you can see to the right:
 
 
 
{{Version|1.3|2.31}}
 

Revision as of 15:55, 28 June 2013

This is the documentation page for Template:Version.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.

Version can be used to indicate if information in an article applies to specific versions of Crusader Kings II.

Usage

This infobox may be added by copy-pasting the template as shown below into an article.

{{Version|X}}

Substitute the value for X.

Parameters

The template has currently been set up to handle the following versions:

Parameter Explanation
Expansion Which expansion has it been updated for

Values

The above parameters can have the following values:

Parameter Explanation
(expansion) The expansion for which this article has been written (for example Legacy of Rome. or the Old Gods)
Time/Timeless For timeless articles.

The default value is Unknown if no other values have been set for a given version/parameter.

Effects

Updating This Template

Replace the expansion listed in the template with the new one.