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:Nsv"
Jump to navigation
Jump to search
Doorkeeper (talk | contribs) (testing "r" parameter) |
m (Main) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{title}}}}}|dwarf fortress|dwarffortress|df=DF |version|ver|v=v|#default=}}{{#switch:{{{1|{{DF:Current}}}}} | <includeonly>{{#switch:{{lc:{{{title}}}}}|dwarf fortress|dwarffortress|df=DF |version|ver|v=v|#default=}}{{#switch:{{{1|{{DF:Current}}}}} | ||
− | | | + | ||Main = {{Current/version}} |
+ | |DF2014 = 0.47.05 | ||
|DF2012|v0.34 = 0.34.11 | |DF2012|v0.34 = 0.34.11 | ||
|DF2010|v0.31 = 0.31.25 | |DF2010|v0.31 = 0.31.25 | ||
|40d = 0.28.121.40d | |40d = 0.28.121.40d | ||
|23a = 0.23.130.23a | |23a = 0.23.130.23a | ||
− | |#default = | + | |#default = {{Error|Error: Namespace not found}} |
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 02:42, 20 December 2022
(view - edit - history - purge) Documentation
{{nsv}} is the inverse of {{ns}}—it takes a namespace and returns the corresponding version.
Usage
{{nsv|1|release=|title=}}
Parameters
1
— Namespace (DF2014
,v0.34
,DF2012
,v0.31
,DF2010
,40d
,23a
). Putting a nonexistent namespace in the first parameter or leaving it in blank will result in this error message: 50.14. If the parameter is not included at all, it returns the most recent version of the game instead.title
— Displays a leading "v" or "DF " in front of the version number. Case insensitive.- "v" — Accepts
version
,ver
, orv
. - "DF " — Accepts
dwarf fortress
,dwarffortress
, ordf
.
- "v" — Accepts
Examples
* {{nsv|DF2012}} * {{nsv|v0.31}} * {{nsv|40d|title=Dwarf Fortress}} * {{nsv|23a|title=v}} * {{nsv}} (equivalent to {{Current/version}})
- 0.34.11
- 0.31.25
- DF 0.28.121.40d
- v0.23.130.23a
- 50.14 (equivalent to 50.14)