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
(fix missing current version cat)
(editintro)
Line 14: Line 14:
 
#if:{{#var:PAGE}}||<span class="error">No page in av!</span>}}<table id="avtable" style="text-align: center; margin: 0 auto; padding: 0.25em; {{#if:{{#var:enone}}|padding-top:1em;}} {{border radius|3px}}; border: 2px {{#switch:{{NAMESPACE}}|{{df:current}}=solid #bd8; background: #f5ffee;|Masterwork=solid #b8f; background: #f5e5ff;|Template|Dwarf Fortress Wiki=solid #9df; background: #eef5ff;|#default=solid #db8; background: #fff5ee;}} min-width:27em"><tr><td style="padding: 0.3em 0.3em; width: 100%;">{{#if:{{#var:evan}}|<div style="margin-bottom:6px;"><span style="font-size:100%"><!--- place new version links here --->{{#if:{{#var:e4}}|{{#ifeq:{{NAMESPACE}}|DF2012|{{avcurrent|v{{current/version}}|{{NAMESPACE}}}}|{{avcolorlinks|DF2012:{{#var:PAGE}}|v{{current/version}}|{{NAMESPACE}}}}}}|{{avbadlink|DF2012:{{#var:PAGE}}|v{{current/version}}}}}}{{dot}} {{#if:{{#var:e3}}|{{#ifeq:{{NAMESPACE}}|v0.31|{{avcurrent|v0.31.25|{{NAMESPACE}}}}|{{avcolorlinks|v0.31:{{#var:PAGE}}|v0.31.25|{{NAMESPACE}}}}}}|{{avbadlink|v0.31:{{#var:PAGE}}|v0.31.25}}}}{{dot}} {{#if:{{#var:e2}}|{{#ifeq:{{NAMESPACE}}|40d|{{avcurrent|v0.28.181.40d|{{NAMESPACE}}}}|{{avcolorlinks|40d:{{#var:PAGE}}|v0.28.181.40d|{{NAMESPACE}}}}}}|{{avbadlink|40d:{{#var:PAGE}}|v0.28.181.40d}}}}{{dot}} {{#if:{{#var:e1}}|{{#ifeq:{{NAMESPACE}}|23a|{{avcurrent|v0.23.130.23a|{{NAMESPACE}}}}|{{avcolorlinks|23a:{{#var:PAGE}}|v0.23.130.23a|{{NAMESPACE}}}}}}|{{avbadlink|23a:{{#var:PAGE}}|v0.23.130.23a}}}}</span></div>}}<font style="size:75%;">{{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of DF.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:e4}}||[[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]]'''.}}</font><br>
 
#if:{{#var:PAGE}}||<span class="error">No page in av!</span>}}<table id="avtable" style="text-align: center; margin: 0 auto; padding: 0.25em; {{#if:{{#var:enone}}|padding-top:1em;}} {{border radius|3px}}; border: 2px {{#switch:{{NAMESPACE}}|{{df:current}}=solid #bd8; background: #f5ffee;|Masterwork=solid #b8f; background: #f5e5ff;|Template|Dwarf Fortress Wiki=solid #9df; background: #eef5ff;|#default=solid #db8; background: #fff5ee;}} min-width:27em"><tr><td style="padding: 0.3em 0.3em; width: 100%;">{{#if:{{#var:evan}}|<div style="margin-bottom:6px;"><span style="font-size:100%"><!--- place new version links here --->{{#if:{{#var:e4}}|{{#ifeq:{{NAMESPACE}}|DF2012|{{avcurrent|v{{current/version}}|{{NAMESPACE}}}}|{{avcolorlinks|DF2012:{{#var:PAGE}}|v{{current/version}}|{{NAMESPACE}}}}}}|{{avbadlink|DF2012:{{#var:PAGE}}|v{{current/version}}}}}}{{dot}} {{#if:{{#var:e3}}|{{#ifeq:{{NAMESPACE}}|v0.31|{{avcurrent|v0.31.25|{{NAMESPACE}}}}|{{avcolorlinks|v0.31:{{#var:PAGE}}|v0.31.25|{{NAMESPACE}}}}}}|{{avbadlink|v0.31:{{#var:PAGE}}|v0.31.25}}}}{{dot}} {{#if:{{#var:e2}}|{{#ifeq:{{NAMESPACE}}|40d|{{avcurrent|v0.28.181.40d|{{NAMESPACE}}}}|{{avcolorlinks|40d:{{#var:PAGE}}|v0.28.181.40d|{{NAMESPACE}}}}}}|{{avbadlink|40d:{{#var:PAGE}}|v0.28.181.40d}}}}{{dot}} {{#if:{{#var:e1}}|{{#ifeq:{{NAMESPACE}}|23a|{{avcurrent|v0.23.130.23a|{{NAMESPACE}}}}|{{avcolorlinks|23a:{{#var:PAGE}}|v0.23.130.23a|{{NAMESPACE}}}}}}|{{avbadlink|23a:{{#var:PAGE}}|v0.23.130.23a}}}}</span></div>}}<font style="size:75%;">{{#switch:{{NAMESPACE}}|#default=This article is about an '''older version''' of DF.[[category:Obsolete|{{PAGENAME}}]]{{#if:{{#var:e4}}||[[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]]'''.}}</font><br>
 
<!--mods-->{{#if:{{#var:eboth}}|<div style="margin:.5em 3px;{{border radius|1px}} border: 1px solid {{#switch:{{NAMESPACE}}|{{df:current}}=#bd8|Masterwork=#b8f|#default=#db8}};"></div>}}{{#if:{{#var:emod}}|<div>{{#if:{{#var:ismod}}|{{#if:{{#var:eboth}}||<div style="min-height:6px;"> </div>}}|Mods:}} {{#ifeq:{{NAMESPACE}}|Masterwork|{{avcurrent|Masterwork|{{NAMESPACE}}}}|{{avcolorlinks|Masterwork:{{PAGENAME}}|Masterwork|{{NAMESPACE}}}}}}</div>}}<!--/mods-->
 
<!--mods-->{{#if:{{#var:eboth}}|<div style="margin:.5em 3px;{{border radius|1px}} border: 1px solid {{#switch:{{NAMESPACE}}|{{df:current}}=#bd8|Masterwork=#b8f|#default=#db8}};"></div>}}{{#if:{{#var:emod}}|<div>{{#if:{{#var:ismod}}|{{#if:{{#var:eboth}}||<div style="min-height:6px;"> </div>}}|Mods:}} {{#ifeq:{{NAMESPACE}}|Masterwork|{{avcurrent|Masterwork|{{NAMESPACE}}}}|{{avcolorlinks|Masterwork:{{PAGENAME}}|Masterwork|{{NAMESPACE}}}}}}</div>}}<!--/mods-->
<div style="float: right; font-size:75%; padding-right:2px; margin-top:-2px; margin-bottom:-7px;">{{avcolorlinks|Template:ArticleVersion|More Info|{{NAMESPACE}}}}</div>{{#if:{{#var:evan}}|{{#ifexist:{{PAGENAME}}||<div class="plainlinks" style="float: left; font-size:75%; padding-left:2px; margin-top: -2px; margin-bottom:-7px; color:#fbb; width:1px;">[{{fullurl:Main:{{PAGENAME}}|action=edit&preload=Template:av/nr&summary={{urlencode:Auto-generated redirect to [[cv:{{PAGENAME}}]]}}}} <span style="text-decoration:none; color:#fbb;">NR</span>]</div>[[Category:Missing Redirect]]}}}}</td></tr>
+
<div style="float: right; font-size:75%; padding-right:2px; margin-top:-2px; margin-bottom:-7px;">{{avcolorlinks|Template:ArticleVersion|More Info|{{NAMESPACE}}}}</div>{{#if:{{#var:evan}}|{{#ifexist:{{PAGENAME}}||<div class="plainlinks" style="float: left; font-size:75%; padding-left:2px; margin-top: -2px; margin-bottom:-7px; color:#fbb; width:1px;">[{{fullurl:Main:{{PAGENAME}}|action=edit&preload=Template:av/nr&editintro=Template:av/nrhelp&summary={{urlencode:Auto-generated redirect to [[cv:{{PAGENAME}}]]}}}} <span style="text-decoration:none; color:#fbb;">NR</span>]</div>[[Category:Missing Redirect]]}}}}</td></tr>
 
{{#ifexist:{{FULLPAGENAME}}||<tr><td><span class="error plainlinks">This page does not exist! If you just created this page, [{{fullurl:{{FULLPAGENAME}}|action=purge}} click here] to refresh this page.</span></td></tr>}}
 
{{#ifexist:{{FULLPAGENAME}}||<tr><td><span class="error plainlinks">This page does not exist! If you just created this page, [{{fullurl:{{FULLPAGENAME}}|action=purge}} click here] to refresh this page.</span></td></tr>}}
 
</table>{{#ifeq:{{lc:{{NAMESPACE}}}}|masterwork|{{mwv}}}}
 
</table>{{#ifeq:{{lc:{{NAMESPACE}}}}|masterwork|{{mwv}}}}
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>

Revision as of 20:59, 5 November 2013

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