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
(can now specify which version in the namespace to return, changed default message for {{{1}}}, added title parameter, updated & moved doc)
Line 1: Line 1:
{{#if:{{{v|}}}{{{2|}}}|v}}{{#switch:{{{1|{{DF:Current}}}}}
+
<includeonly>{{#switch:{{{title}}}|dwarffortress|df=DF&nbsp;|version|ver|v=v|#default=}}{{#switch:{{{1|{{DF:Current}}}}}
|DF2014={{current/version}}
+
|DF2014       = {{#switch:{{{release}}}{{{r}}}
|DF2012|v0.34=0.34.11
+
|1=0.40.01|2=0.40.02|3=0.40.03|4=0.40.04|5=0.40.05|6=0.40.06|7=0.40.07|8=0.40.08|9=0.40.09|10=0.40.10|11=0.40.11|12=0.40.12|13=0.40.13|14=0.40.14|15=0.40.15|16=0.40.16|17=0.40.17|18=0.40.18|19=0.40.19|20=0.40.20|21=0.40.21|22=0.40.22|23=0.40.23|24=0.40.24|25=0.42.01|26=0.42.02|27=0.42.03|28=0.42.04|29=0.42.05|30=0.42.06|31=0.43.01|32=0.43.02|33=0.43.03|34=0.43.04|35=0.43.05|36=0.44.01|37=0.44.02|38=0.44.03|39=0.44.04|#default={{current/version}}}}
|DF2010|v0.31=0.31.25
+
|DF2012|v0.34 = {{#switch:{{{release}}}{{{r}}}
|40d=0.28.121.40d
+
|1=0.34.01|2=0.34.02|3=0.34.03|4=0.34.04|5=0.34.05|6=0.34.06|7=0.34.07|8=0.34.08|9=0.34.09|10=0.34.10|#default=0.34.11}}
|23a=0.23.130.23a
+
|DF2010|v0.31 = {{#switch:{{{release}}}{{{r}}}
|#default=(unknown)
+
|1=0.31.01|2=0.31.02|3=0.31.03|4=0.31.04|5=0.31.05|6=0.31.06|7=0.31.07|8=0.31.08|9=0.31.09|10=0.31.10|11=0.31.11|12=0.31.12|13=0.31.13|14=0.31.14|15=0.31.15|16=0.31.16|17=0.31.17|18=0.31.18|19=0.31.19|20=0.31.20|21=0.31.21|22=0.31.22|23=0.31.23|24=0.31.24|#default=0.31.25}}
}}<noinclude>
+
|40d          = {{#switch:{{{release}}}{{{r}}}
 
+
|1=0.27.169.32a|2=0.27.169.33a|3=0.27.169.33b|4=0.27.169.33c|5=0.27.169.33d|6=0.27.169.33e|7=0.27.169.33f|8=0.27.169.33g|9=0.27.173.38a|10=0.27.176.38a|11=0.27.176.38b|12=0.27.176.38c|13=0.28.181.39a|14=0.28.181.39b|15=0.28.181.39c|16=0.28.181.39d|17=0.28.181.39e|18=0.28.181.39f|19=0.28.181.40a|20=0.28.181.40b|21=0.28.181.40c|#default=0.28.121.40d}}
Inverse of {{tl|ns}} &mdash; Takes a namespace and returns the corresponding version (the most recent version for the {{DF:Current}} namespace).
+
|23a          = {{#switch:{{{release}}}{{{r}}}
 
+
|1=0.21.93.19a|2=0.21.93.19b|3=0.21.93.19c|4=0.21.95.19a|5=0.21.95.19b|6=0.21.95.19c|7=0.21.100.19a|8=0.21.101.19a|9=0.21.101.19b|10=0.21.101.19c|11=0.21.101.19d|12=0.21.102.19a|13=0.21.104.19a|14=0.21.104.19b|15=0.21.104.19c|16=0.21.104.19d|17=0.21.104.21a|18=0.21.104.21b|19=0.21.104.21c|20=0.21.105.21a|21=0.22.107.21a|22=0.22.110.22a|23=0.22.110.22b|24=0.22.110.22c|25=0.22.110.22d|26=0.22.110.22e|27=0.22.110.22f|28=0.22.110.23a|29=0.22.110.23b|30=0.22.110.23c|31=0.22.120.23a|32=0.22.120.23b|33=0.22.121.23a|34=0.22.121.23b|35=0.22.123.23a|36=0.23.125.23a|37=0.23.125.23b|#default=0.23.130.23a}}
==Usage==
+
|#default    = <span style="color: #d33; font-size: larger;">'''Error: Namespace not found'''</span>
{{<nowiki/>nsv|''Namespace''}}
+
}}</includeonly><noinclude>{{documentation}}</noinclude>
{{<nowiki/>nsv|''Namespace''|v=''yes''}} &larr; Displays a leading "v" *
 
{{<nowiki/>nsv|''Namespace''|''yes''}}   &larr; Also displays a leading "v" *
 
* Any non-blank parameter will work as a substitute for "yes"
 
 
 
==Examples==
 
<pre>{{nsv|DF2012}}</pre>
 
{{nsv|DF2012}}
 
 
 
<pre>{{nsv|40d}}</pre>
 
{{nsv|40d}}
 
 
 
<pre>{{nsv}}</pre>
 
{{nsv}} (equivalent to {{tl|current/version}})
 
 
 
</noinclude>
 

Revision as of 07:29, 2 February 2018