Difference between revisions of "Template:Ns"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page)
 
(+See also)
Line 1: Line 1:
<includeonly>{{ns/0|{{#rreplace:{{{1|}}}|([0-9]+\.[0-9]+)([.0-9a-z]+)|\1}}}}</includeonly><noinclude>
+
<includeonly>{{ns/0|{{#rreplace:{{{1|}}}|v?([0-9]+\.[0-9]+)([.0-9a-z]+)|\1}}}}</includeonly><noinclude>
 
Takes a version number and returns the corresponding namespace.
 
Takes a version number and returns the corresponding namespace.
  
Line 12: Line 12:
  
 
0.23.130.23a: {{ns|0.23.130.23a}}
 
0.23.130.23a: {{ns|0.23.130.23a}}
 +
 +
==See also==
 +
{{tl|nsv}} (the inverse of this template)
 +
<pre>{{ns|{{nsv|DF2012}}}}</pre>
 +
{{ns|{{nsv|DF2012}}}}
 +
<pre>{{nsv|{{ns|v0.31.25}}}}</pre>
 +
{{nsv|{{ns|v0.31.25}}}}
 
</noinclude>
 
</noinclude>

Revision as of 17:18, 23 July 2013

Takes a version number and returns the corresponding namespace.

Examples

0.34.11: v0.34

0.34.02: v0.34

0.31.19: v0.31

0.28.121.40c: 40d

0.23.130.23a: 23a

See also

{{nsv}} (the inverse of this template)

{{ns|{{nsv|DF2012}}}}

v0.34

{{nsv|{{ns|v0.31.25}}}}

0.31.25