v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:ArticleVersion"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(added warning cause I worry D:)
(for more clarity)
Line 1: Line 1:
 
<!-- DO NOT split this template into two different templates. DO NOT edit this template unless you know very well what you are doing. This template is extremely easy to break. -->
 
<!-- DO NOT split this template into two different templates. DO NOT edit this template unless you know very well what you are doing. This template is extremely easy to break. -->
 
<noinclude>{{shortcut|template:av|template:AV}}</noinclude>
 
<noinclude>{{shortcut|template:av|template:AV}}</noinclude>
<table style="margin: 0 20%; background: {{#switch:{{NAMESPACE}}|{{df:current}}=#CCF|Template=#8f4|#default=#FC8}}; border: 1px solid #CCC; text-align:center; border-left: 10px solid #888; width:60%">
+
<table style="margin: 0 20%; background: {{#switch:{{NAMESPACE}}|{{df:current}}=#CCF|Template=#8f4|Dwarf Fortress Wiki=#8f4|#default=#FC8}}; border: 1px solid #CCC; text-align:center; border-left: 10px solid #888; width:60%">
 
<tr><td style="padding: 0.3em 0.3em; width: 100%;"><div style="float:left; width: 30px">[[Image:DF Dwarf.png|25px]]</div>{{#switch:{{NAMESPACE}}|
 
<tr><td style="padding: 0.3em 0.3em; width: 100%;"><div style="float:left; width: 30px">[[Image:DF Dwarf.png|25px]]</div>{{#switch:{{NAMESPACE}}|
 
#default=Legacy information is contained in this article. Do not add information about new game versions here.[[category:Obsolete|{{PAGENAME}}]]|
 
#default=Legacy information is contained in this article. Do not add information about new game versions here.[[category:Obsolete|{{PAGENAME}}]]|
 
Template=This article is in the template namespace. It probably doesn't have any info directly regarding game version.|
 
Template=This article is in the template namespace. It probably doesn't have any info directly regarding game version.|
 +
Dwarf Fortress Wiki=This article is in the DF wiki namespace. It probably doesn't have any info directly regarding game version.|
 
{{df:current}}=The information in this article is most likely current. '''DO NOT''' add old or unverified information to this page.[[category:Current|{{PAGENAME}}]]}}
 
{{df:current}}=The information in this article is most likely current. '''DO NOT''' add old or unverified information to this page.[[category:Current|{{PAGENAME}}]]}}
 
<br /><div style="float: right; font-size:75%;">[[Template:ArticleVersion|More Info]]</div><span style=""><font style="font-size:80%">Other Versions of this Article: </font><font style="font-size:90%"><!--- place new version links here --->{{#ifeq:{{NAMESPACE}}|DF2010||{{#ifexist:DF2010:{{PAGENAME}}|[[DF2010:{{PAGENAME}}|DF 2010]]{{dot}}|<font style="font-size:75%">(DF 2010)</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|40d||{{#ifexist:40d:{{PAGENAME}}|[[40d:{{PAGENAME}}|v0.28.181.40d]]{{dot}}|<font style="font-size:75%">(v0.28.181.40d)</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|23a||{{#ifexist:23a:{{PAGENAME}}|[[23a:{{PAGENAME}}|v0.23.130.23a]]|<font style="font-size:75%">(v0.23.130.23a)</font>}}}}</font></span></td></tr></table><noinclude>
 
<br /><div style="float: right; font-size:75%;">[[Template:ArticleVersion|More Info]]</div><span style=""><font style="font-size:80%">Other Versions of this Article: </font><font style="font-size:90%"><!--- place new version links here --->{{#ifeq:{{NAMESPACE}}|DF2010||{{#ifexist:DF2010:{{PAGENAME}}|[[DF2010:{{PAGENAME}}|DF 2010]]{{dot}}|<font style="font-size:75%">(DF 2010)</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|40d||{{#ifexist:40d:{{PAGENAME}}|[[40d:{{PAGENAME}}|v0.28.181.40d]]{{dot}}|<font style="font-size:75%">(v0.28.181.40d)</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|23a||{{#ifexist:23a:{{PAGENAME}}|[[23a:{{PAGENAME}}|v0.23.130.23a]]|<font style="font-size:75%">(v0.23.130.23a)</font>}}}}</font></span></td></tr></table><noinclude>

Revision as of 05:55, 26 March 2010

Shortcuts:
template:av
template:AV
DF Dwarf.png
This article is in the template namespace. It probably doesn't have any info directly regarding game version.
Other Versions of this Article: (DF 2010) · (v0.28.181.40d) · (v0.23.130.23a)


Documentation

This template is to be used on all pages that are game version specific.

Usage

To use this template simply add {{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.

A list of templates that need to be updated in each major version can be found here.

Examples

DF Dwarf.png
This article is in the template namespace. It probably doesn't have any info directly regarding game version.
Other Versions of this Article: (DF 2010) · (v0.28.181.40d) · (v0.23.130.23a)


DF Dwarf.png
This article is in the template namespace. It probably doesn't have any info directly regarding game version.
Other Versions of this Article: (DF 2010) · (v0.28.181.40d) · (v0.23.130.23a)


DF Dwarf.png
This article is in the template namespace. It probably doesn't have any info directly regarding game version.
Other Versions of this Article: (DF 2010) · (v0.28.181.40d) · (v0.23.130.23a)