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"
Jump to navigation
Jump to search
m (fix parent categories) |
m (fix parent category detection) |
||
Line 3: | Line 3: | ||
#ifeq:{{NAMESPACE}}|Category| | #ifeq:{{NAMESPACE}}|Category| | ||
<!-- display --> | <!-- display --> | ||
− | {{#vardefine:cv-ns| | + | {{#vardefine:cv-ns|{{#rsplit:{{#var:cv-page}}|:|0}}}}{{#if:{{#var:cn-ns}}||{{#vardefine:cv-ns|parent}}}}{{ |
#vardefine:cv-cn|{{#rsplit:{{#var:cv-page}}|:|1}} | #vardefine:cv-cn|{{#rsplit:{{#var:cv-page}}|:|1}} | ||
}}{{ | }}{{ | ||
Line 15: | Line 15: | ||
[[{{#ifeq:{{#var:cv-ns}}|23a|*}}:Category:23a:{{#var:cv-cn}}|v0.23.130.23a]] | [[{{#ifeq:{{#var:cv-ns}}|23a|*}}:Category:23a:{{#var:cv-cn}}|v0.23.130.23a]] | ||
|bottom={{version links/link|Template:cv|More Info}} | |bottom={{version links/link|Template:cv|More Info}} | ||
− | |center={{#switch:{{lc:{{#var:cv-ns}}}}|#default=This category | + | |center={{#switch:{{lc:{{#var:cv-ns}}}}|#default=This category contains pages about an '''older version''' of DF.|parent=This is a parent category.|template=This category is in the template namespace.|{{lc:{{df:current}}}}=This category contains pages about the current version of DF.}} |
}}[[Category:{{#var:cv-ns}}|{{#var:cv-cn}}]][[Category:{{#var:cv-cn}}|*{{version order|{{#var:cv-ns}}}}]]|<!-- errors --> | }}[[Category:{{#var:cv-ns}}|{{#var:cv-cn}}]][[Category:{{#var:cv-cn}}|*{{version order|{{#var:cv-ns}}}}]]|<!-- errors --> | ||
<span class="error">This page is not in the Category namespace!</span>}} | <span class="error">This page is not in the Category namespace!</span>}} |