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:CategoryVersion"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (<includeonly>)
(fix v0.31)
Line 4: Line 4:
 
{{#vardefine:cv-ns|{{#rsplit:{{#var:cv-page}}|:|0}}}}{{
 
{{#vardefine:cv-ns|{{#rsplit:{{#var:cv-page}}|:|0}}}}{{
 
#vardefine:cv-cn|{{#rsplit:{{#var:cv-page}}|:|1}}
 
#vardefine:cv-cn|{{#rsplit:{{#var:cv-page}}|:|1}}
}}<table id="avtable" style='text-align: center; margin: 0 auto; padding: 0.25em; border: 2px {{#switch:{{#var:cv-ns}}|{{df:current}}=solid #bd8; background: #f5ffee;|#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:{{#var:cv-ns}}|DF2012|{{avcurrent|v{{current/version}}|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:DF2012:{{#var:cv-cn}}|{{avcolorlinks|:Category:DF2012:{{#var:cv-cn}}|v{{current/version}}|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:DF2012:{{#var:cv-cn}}|v{{current/version}}}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|v0.31|{{avcurrent|v0.31.25|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:v0.31:{{#var:cv-cn}}|{{avcolorlinks|:Category:v0.31:{{#var:cv-cn}}|v0.31.25|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:v0.31:{{#var:cv-cn}}|v0.31.25}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|40d|{{avcurrent|v0.28.181.40d|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:40d:{{#var:cv-cn}}|{{avcolorlinks|:Category:40d:{{#var:cv-cn}}|v0.28.181.40d|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:40d:{{#var:cv-cn}}|v0.28.181.40d}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|23a|{{avcurrent|v0.23.130.23a|{{#var:cv-ns}}}}|{{#ifexist:Category:23a:{{#var:cv-cn}}|{{avcolorlinks|:Category:23a:{{#var:cv-cn}}|v0.23.130.23a|{{#var:cv-ns}}}}|<font style="font-size:95%">{{avbadlink|:Category:23a:{{#var:cv-cn}}|v0.23.130.23a}}</font>}}}}</font></div><font style="size:75%;">{{#switch:{{#var:cv-ns}}|#default=This category is about an '''older version''' of DF.|Template=This category is in the template namespace.|{{df:current}}=This category is about the current version of DF.}}</font><br><div style="float: right; font-size:75%; padding-right:2px; margin-top: -2px; margin-bottom:-7px;">{{avcolorlinks|Template:CategoryVersion|More Info|{{#var:cv-ns}}}}[[Category:{{#var:cv-ns}}|{{#var:cv-cn}}]][[Category:{{#var:cv-cn}}|*{{version order|{{#var:cv-ns}}}}]]</div></td></tr></table>|
+
}}<table id="avtable" style='text-align: center; margin: 0 auto; padding: 0.25em; border: 2px {{#switch:{{#var:cv-ns}}|{{df:current}}=solid #bd8; background: #f5ffee;|#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:{{#var:cv-ns}}|DF2012|{{avcurrent|v{{current/version}}|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:DF2012:{{#var:cv-cn}}|{{avcolorlinks|:Category:DF2012:{{#var:cv-cn}}|v{{current/version}}|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:DF2012:{{#var:cv-cn}}|v{{current/version}}}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|V0.31|{{avcurrent|v0.31.25|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:v0.31:{{#var:cv-cn}}|{{avcolorlinks|:Category:v0.31:{{#var:cv-cn}}|v0.31.25|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:v0.31:{{#var:cv-cn}}|v0.31.25}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|40d|{{avcurrent|v0.28.181.40d|{{#var:cv-ns}}}}{{dot}}|{{#ifexist:Category:40d:{{#var:cv-cn}}|{{avcolorlinks|:Category:40d:{{#var:cv-cn}}|v0.28.181.40d|{{#var:cv-ns}}}}{{dot}}|<font style="font-size:95%">{{avbadlink|:Category:40d:{{#var:cv-cn}}|v0.28.181.40d}}</font>{{dot}}}}}} {{#ifeq:{{#var:cv-ns}}|23a|{{avcurrent|v0.23.130.23a|{{#var:cv-ns}}}}|{{#ifexist:Category:23a:{{#var:cv-cn}}|{{avcolorlinks|:Category:23a:{{#var:cv-cn}}|v0.23.130.23a|{{#var:cv-ns}}}}|<font style="font-size:95%">{{avbadlink|:Category:23a:{{#var:cv-cn}}|v0.23.130.23a}}</font>}}}}</font></div><font style="size:75%;">{{#switch:{{#var:cv-ns}}|#default=This category is about an '''older version''' of DF.|Template=This category is in the template namespace.|{{df:current}}=This category is about the current version of DF.}}</font><br><div style="float: right; font-size:75%; padding-right:2px; margin-top: -2px; margin-bottom:-7px;">{{avcolorlinks|Template:CategoryVersion|More Info|{{#var:cv-ns}}}}[[Category:{{#var:cv-ns}}|{{#var:cv-cn}}]][[Category:{{#var:cv-cn}}|*{{version order|{{#var:cv-ns}}}}]]</div></td></tr></table>|
 
<span class="error">Invalid category name! Name should be in format <tt>Category:''Namespace'':''Category Name''</tt>.</span>}}|
 
<span class="error">Invalid category name! Name should be in format <tt>Category:''Namespace'':''Category Name''</tt>.</span>}}|
 
<span class="error">This page is not in the Category namespace! Please move to [[:Category:{{#var:cv-page}}]].</span>}}</includeonly><noinclude>
 
<span class="error">This page is not in the Category namespace! Please move to [[:Category:{{#var:cv-page}}]].</span>}}</includeonly><noinclude>

Revision as of 15:45, 12 April 2014

Shortcut:
template:cv


Documentation

A variation of {{ArticleVersion}} (or {{av}}) for category pages.