Difference between revisions of "Template:Nsv/doc"

From Dwarf Fortress Wiki
Jump to: navigation, search
m (update changes)
(rmv r parameter)
 
Line 8: Line 8:
  
 
* <code>1</code> — Namespace (<code>DF2014</code>, <code>v0.34</code>, <code>DF2012</code>, <code>v0.31</code>, <code>DF2010</code>, <code>40d</code>, <code>23a</code>). Putting a nonexistent namespace in the first parameter or leaving it in blank will result in this error message: {{nsv|}}. If the parameter is not included at all, it returns the most recent version of the game instead.
 
* <code>1</code> — Namespace (<code>DF2014</code>, <code>v0.34</code>, <code>DF2012</code>, <code>v0.31</code>, <code>DF2010</code>, <code>40d</code>, <code>23a</code>). Putting a nonexistent namespace in the first parameter or leaving it in blank will result in this error message: {{nsv|}}. If the parameter is not included at all, it returns the most recent version of the game instead.
* <code>r</code> — Specifies which version in the release cycle it should return. For example, <code><nowiki>{{nsv|v0.34|r=1}}</nowiki></code> will return the first released version for the v0.34 namespace ({{nsv|v0.34|r=1}}). If this parameter is not included or left blank, it defaults to the latest version number for that namespace.
 
 
* <code>title</code> — Displays a leading "v" or "DF&nbsp;" in front of the version number. Case insensitive.
 
* <code>title</code> — Displays a leading "v" or "DF&nbsp;" in front of the version number. Case insensitive.
 
** "v" — Accepts <code>version</code>, <code>ver</code>, or <code>v</code>.
 
** "v" — Accepts <code>version</code>, <code>ver</code>, or <code>v</code>.
Line 17: Line 16:
 
<pre>
 
<pre>
 
* {{nsv|DF2012}}
 
* {{nsv|DF2012}}
* {{nsv|v0.31|r=9}}
+
* {{nsv|v0.31}}
 
* {{nsv|40d|title=Dwarf Fortress}}
 
* {{nsv|40d|title=Dwarf Fortress}}
 
* {{nsv|23a|title=v}}
 
* {{nsv|23a|title=v}}

Latest revision as of 20:55, 10 July 2018

{{nsv}} is the inverse of {{ns}}—it takes a namespace and returns the corresponding version.

[edit] Usage

{{nsv|1|release=|title=}}

[edit] 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: Error: Namespace not found. 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, or v.
    • "DF " — Accepts dwarf fortress, dwarffortress, or df.

[edit] 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
  • 0.44.12 (equivalent to 0.44.12)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Advertisement