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:Version switch"
Jump to navigation
Jump to search
Brightgalrs (talk | contribs) |
(leave cat undefined) |
||
Line 8: | Line 8: | ||
* [[Template:40d {{{1}}}]] | * [[Template:40d {{{1}}}]] | ||
* [[Template:23a {{{1}}}]] | * [[Template:23a {{{1}}}]] | ||
− | |23a|40d|v0.31|v0.34|Masterwork ={{ {{NAMESPACE}} {{{1}}} |cat={{{cat}}} }} | + | |23a|40d|v0.31|v0.34|Masterwork ={{ {{NAMESPACE}} {{{1}}} |cat={{{cat|}}} }} |
− | |#default ={{{{df:current}} {{{1}}} |cat={{{cat}}} }} | + | |#default ={{{{df:current}} {{{1}}} |cat={{{cat|}}} }} |
}}<noinclude><!-- line break is necessary --> | }}<noinclude><!-- line break is necessary --> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Revision as of 20:26, 25 February 2015
This is a helper template that transcludes different templates based on the namespace of the page where it is included. The following templates are supported:
- [[Template:DF2014 {{{1}}}]]
- [[Template:v0.34 {{{1}}}]]
- [[Template:Masterwork {{{1}}}]]
- [[Template:v0.31 {{{1}}}]]
- [[Template:40d {{{1}}}]]
- [[Template:23a {{{1}}}]]
(view - edit - history - purge) Documentation
This template includes other templates based on the current page's namespace.
Usage
{{version switch|Base template name}}
Examples
{{version switch|metals}}
- When the template is included in the template namespace, a list of supported templates will be displayed (such as Template:DF2014 metals, Template:v0.34 metals, etc.).
- When included from a supported namespace, the appropriate template for that namespace will be included (such as Template:40d metals when included on a 40d page).
- When included in any other namespace, the template for the current version will be included (Template:v50 metals in this case).