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 (should fix issue with versions wrapping to two lines)
m (may as well change 0.34 too)
(31 intermediate revisions by 6 users not shown)
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}}</noinclude>
+
<noinclude>
<table id="avtable" style='text-align: center; margin: 0 auto; 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;}} max-width:27em'><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}}|DF2012|{{avcurrent|v{{current/version}}|{{NAMESPACE}}}}{{dot}}|{{#ifexist:DF2012:{{PAGENAME}}|{{avcolorlinks|DF2012:{{PAGENAME}}|v{{current/version}}|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|DF2012:{{PAGENAME}}|v{{current/version}}}}</font>{{dot}}}}}} {{#ifeq:{{NAMESPACE}}|v0.31|{{avcurrent|v0.31.25|{{NAMESPACE}}}}{{dot}}|{{#ifexist:v0.31:{{PAGENAME}}|{{avcolorlinks|v0.31:{{PAGENAME}}|v0.31.25|{{NAMESPACE}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|v0.31:{{PAGENAME}}|v0.31.25}}</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><font style="size:75%;">{{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of DF.[[category:Obsolete|{{PAGENAME}}]]|Template=This article is in the template namespace.|Dwarf Fortress Wiki=This article is in the DF wiki namespace.|{{df:current}}=This article is about the current version of DF.[[category:Current|{{PAGENAME}}]]}}</font><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;">[[{{PAGENAME}}|<span style="text-decoration:none; color:#fbb;">NR</span>]]</div>[[Category:Missing Redirect]]}}</td></tr></table><noinclude>
+
<!-- DO NOT edit this template unless you know very well what you are doing. This template is extremely easy to break. -->
{{docbox|Documentation|template:ArticleVersion/doc}}
+
{{shortcut|template:av}}
{{ArticleVersion/doc}}
+
</noinclude>{{
{{docbox-foot}}
+
#vardefine:PAGE|{{{1|{{PAGENAME}}}}}}}{{
[[category:Templates]]
+
#vardefine:NSID|{{ns-rel-id|{{NAMESPACE}}}}}}{{
 
+
#vardefine:ecur|{{#ifexist:DF2014:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:e5|{{#var:ecur}}}}{{
 +
#vardefine:e4|{{#ifexist:v0.34:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:e3|{{#ifexist:v0.31:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:e2|{{#ifexist:40d:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:e1|{{#ifexist:23a:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:emw|{{#ifexist:Masterwork:{{#var:PAGE}}|1}}}}{{
 +
#vardefine:evan|{{#if:{{#var:e5}}{{#var:e4}}{{#var:e3}}{{#var:e2}}{{#var:e1}}|1}}}}{{
 +
#vardefine:emod|{{#if:{{#var:emw}}|1}}}}{{
 +
#vardefine:ismod|{{#switch:{{NAMESPACE}}|Masterwork=1}}
 +
}}{{version links
 +
|theme={{#switch:{{NAMESPACE}}|{{DF:Current}}=green|Template|Dwarf Fortress Wiki=blue|Masterwork=purple|#default=orange}}
 +
|r1={{#if:{{#var:evan}}|
 +
[[{{#ifeq:{{#var:NSID}}|5|*}}{{ns-name|id=5}}:{{PAGENAME}}|v{{current/version}}]]
 +
[[{{#ifeq:{{#var:NSID}}|4|*}}{{ns-name|id=4}}:{{PAGENAME}}|v{{#ifeq:{{#var:NSID}}|4|0.34.11|0.34}}]]
 +
[[{{#ifeq:{{#var:NSID}}|3|*}}{{ns-name|id=3}}:{{PAGENAME}}|v{{#ifeq:{{#var:NSID}}|3|0.31.25|0.31}}]]
 +
[[{{#ifeq:{{#var:NSID}}|2|*}}{{ns-name|id=2}}:{{PAGENAME}}|v{{#ifeq:{{#var:NSID}}|2|0.28.181.40d|0.28}}]]
 +
[[{{#ifeq:{{#var:NSID}}|1|*}}{{ns-name|id=1}}:{{PAGENAME}}|v{{#ifeq:{{#var:NSID}}|1|0.23.130.23a|0.23}}]]
 +
}}
 +
<!--|r2={{#if:{{#var:emod}}|
 +
{{#if:{{#var:ismod}}||Mods:&nbsp;}}
 +
[[{{#ifeq:{{NAMESPACE}}|Masterwork|*}}Masterwork:{{PAGENAME}}|Masterwork]]
 +
}}-->
 +
|bottom={{version links/link|Template:av|More Info}}
 +
|center={{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of DF.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:ecur}}||[[category:Missing current version|{{PAGENAME}}]]}}|Template=This article is in the template namespace.|Dwarf Fortress Wiki=This article is in the DF wiki namespace.|{{df:current}}=This article is about the current version of DF.[[category:Current|{{PAGENAME}}]]|Masterwork=This article is about a '''[[Main:mod|mod]]'''.}}
 +
}}{{#ifeq:{{lc:{{NAMESPACE}}}}|masterwork|{{mwv}}}}<noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 04:09, 28 November 2015

Shortcut:
template:av
This article is in the template namespace.