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
m
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. --><noinclude>{{shortcut|template:av|template:AV}}</noinclude>
 
<!-- 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>
<table style='text-align: center; margin: 0 32%; padding: 0.25em; border: 2px {{#switch:{{NAMESPACE}}|{{df:current}}=solid #bd8; background: #f5ffee;|Template=solid #9df; background: #eef5ff;|Dwarf Fortress Wiki=solid #9df; background: #eef5ff;|#default=solid #db8; background: #fff5ee;}} width:36%'><tr><td style="padding: 0.3em 0.3em; width: 100%;"><div style="margin-bottom:6px;"><font style="font-size:100%"><!--- place new version links here --->{{#ifeq:{{NAMESPACE}}|DF2010|{{avcurrent|v0.31.02|{{NAMESPACE}}}}{{dot}}|{{#ifexist:DF2010:{{PAGENAME}}|{{avcolorlinks|DF2010:{{PAGENAME}}|v0.31.02|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|DF2010:{{PAGENAME}}|v0.31.02}}</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|40d|{{avcurrent|v0.28.181.40d|{{NAMESPACE}}}}{{dot}}|{{#ifexist:40d:{{PAGENAME}}|{{avcolorlinks|40d:{{PAGENAME}}|v0.28.181.40d|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|40d:{{PAGENAME}}|v0.28.181.40d}}</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|23a|{{avcurrent|v0.23.130.23a|{{NAMESPACE}}}}|{{#ifexist:23a:{{PAGENAME}}|{{avcolorlinks|23a:{{PAGENAME}}|v0.23.130.23a|{{NAMESPACE}}}}|<font style="font-size:95%">{{avbadlink|23a:{{PAGENAME}}|v0.23.130.23a}}</font>}}}}</font></div>{{#switch:{{NAMESPACE}}|#default=Do not add information about newer game versions here.[[category:Obsolete|{{PAGENAME}}]]|Template=This article is in the template namespace.|Dwarf Fortress Wiki=This article is in the DF wiki namespace.|{{df:current}}='''DO NOT''' add old or unverified information to this page.[[category:Current|{{PAGENAME}}]]}}<br><div style="float: right; font-size:75%; padding-right:2px; margin-top: -2px; margin-bottom:-7px;">{{avcolorlinks|Template:ArticleVersion|More Info|{{NAMESPACE}}}}</div>{{#ifexist:{{PAGENAME}}||<div style="div style="float: left; font-size:75%; padding-left:2px; margin-top: -2px; margin-bottom:-7px; color:#fbb; width:1px;">[[:Template:ArticleVersion#NoRedirect|<span style="text-decoration:none; color:#fbb;">NR</span>]]</div>}}</td></tr></table><noinclude>
+
<table style='text-align: center; margin: 0 32%; padding: 0.25em; border: 2px {{#switch:{{NAMESPACE}}|{{df:current}}=solid #bd8; background: #f5ffee;|Template=solid #9df; background: #eef5ff;|Dwarf Fortress Wiki=solid #9df; background: #eef5ff;|#default=solid #db8; background: #fff5ee;}} width:36%'><tr><td style="padding: 0.3em 0.3em; width: 100%;"><div style="margin-bottom:6px;"><font style="font-size:100%"><!--- place new version links here --->{{#ifeq:{{NAMESPACE}}|DF2010|{{avcurrent|v0.31.02|{{NAMESPACE}}}}{{dot}}|{{#ifexist:DF2010:{{PAGENAME}}|{{avcolorlinks|DF2010:{{PAGENAME}}|v0.31.02|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|DF2010:{{PAGENAME}}|v0.31.02}}</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|40d|{{avcurrent|v0.28.181.40d|{{NAMESPACE}}}}{{dot}}|{{#ifexist:40d:{{PAGENAME}}|{{avcolorlinks|40d:{{PAGENAME}}|v0.28.181.40d|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|40d:{{PAGENAME}}|v0.28.181.40d}}</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|23a|{{avcurrent|v0.23.130.23a|{{NAMESPACE}}}}|{{#ifexist:23a:{{PAGENAME}}|{{avcolorlinks|23a:{{PAGENAME}}|v0.23.130.23a|{{NAMESPACE}}}}|<font style="font-size:95%">{{avbadlink|23a:{{PAGENAME}}|v0.23.130.23a}}</font>}}}}</font></div>{{#switch:{{NAMESPACE}}|#default=Do not add information about newer game versions here.[[category:Obsolete|{{PAGENAME}}]]|Template=This article is in the template namespace.|Dwarf Fortress Wiki=This article is in the DF wiki namespace.|{{df:current}}='''DO NOT''' add old or unverified information to this page.[[category:Current|{{PAGENAME}}]]}}<br><div style="float: right; font-size:75%; padding-right:2px; margin-top: -2px; margin-bottom:-7px;">{{avcolorlinks|Template:ArticleVersion|More Info|{{NAMESPACE}}}}</div>{{#ifexist:{{PAGENAME}}||<div style="div style="float: left; font-size:75%; padding-left:2px; margin-top: -2px; margin-bottom:-7px; color:#fbb; width:1px;">[[:Template:ArticleVersion#NoRedirect|<span style="text-decoration:none; color:#fbb;">NR</span>]]</div>[[Category:Missing Redirect]]}}</td></tr></table><noinclude>
 
{{docbox|Documentation|template:ArticleVersion/doc}}
 
{{docbox|Documentation|template:ArticleVersion/doc}}
 
{{ArticleVersion/doc}}
 
{{ArticleVersion/doc}}

Revision as of 00:05, 9 April 2010

Shortcuts:
template:av
template:AV
This article is in the template namespace.


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

This article is in the template namespace.


This article is in the template namespace.


This article is in the template namespace.