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.

Template:Nsv/doc

From Dwarf Fortress Wiki
< Template:Nsv
Revision as of 08:14, 2 February 2018 by Doorkeeper (talk | contribs) (update changes)
Jump to navigation Jump to search

{{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.12. If the parameter is not included at all, it returns the most recent version of the game instead.
  • r — Specifies which version in the release cycle it should return. For example, {{nsv|v0.34|r=1}} will return the first released version for the v0.34 namespace (0.34.11). If this parameter is not included or left blank, it defaults to the latest version number for that namespace.
  • title — Displays a leading "v" or "DF " in front of the version number. Case insensitive.
    • "v" — Accepts version, ver, or v.
    • "DF " — Accepts dwarf fortress, dwarffortress, or df.

Examples

* {{nsv|DF2012}}
* {{nsv|v0.31|r=9}}
* {{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.12 (equivalent to 50.12)