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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Don't blindly return the current version number for unrecognized input)
Line 13: Line 13:
 
  {{<nowiki/>nsv|''Namespace''}}
 
  {{<nowiki/>nsv|''Namespace''}}
 
  {{<nowiki/>nsv|''Namespace''|v=''yes''}} &larr; Displays a leading "v" *
 
  {{<nowiki/>nsv|''Namespace''|v=''yes''}} &larr; Displays a leading "v" *
  {{<nowiki/>nsv|''Namespace''|''yes''}} &larr; Also displays a leading "v" *
+
  {{<nowiki/>nsv|''Namespace''|''yes''}}   &larr; Also displays a leading "v" *
* Using "yes" is not necessary (anything non-blank will work)
+
* Any non-blank parameter will work as a substitute for "yes"
  
 
==Examples==
 
==Examples==

Revision as of 21:06, 21 July 2014

(unknown)

Inverse of {{ns}} — Takes a namespace and returns the corresponding version (the most recent version for the Main namespace).

Usage

{{nsv|Namespace}}
{{nsv|Namespace|v=yes}} ← Displays a leading "v" *
{{nsv|Namespace|yes}}   ← Also displays a leading "v" *
* Any non-blank parameter will work as a substitute for "yes"

Examples

{{nsv|DF2012}}

0.34.11

{{nsv|40d}}

0.28.121.40d

{{nsv}}

(unknown) (equivalent to {{current/version}})