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:Ns-name"
Jump to navigation
Jump to search
(Created page with "{{#switch:{{ns-rel-id|{{{1}}}}} |1=23a |2=40d |3=v0.31 |4=v0.34 |5=DF2014 }}<noinclude> Returns a namespace ID given a major version ID (opposite of {{tl|ns-rel-id}}) <nowiki...") |
|||
Line 1: | Line 1: | ||
− | {{#switch:{{ns-rel-id|{{{1}}}}} | + | {{#switch:{{{id|{{ns-rel-id|{{{1}}} }} }}} |
|1=23a | |1=23a | ||
|2=40d | |2=40d | ||
Line 6: | Line 6: | ||
|5=DF2014 | |5=DF2014 | ||
}}<noinclude> | }}<noinclude> | ||
− | + | * When given an unnamed parameter, returns a normalized namespace name | |
+ | * When given an ``id`` parameter, acts as the opposite of {{tl|ns-rel-id}} | ||
− | <nowiki>{{ns-name|1}}</nowiki> → {{ns-name|1}} | + | <nowiki>{{ns-name|DF2012}}</nowiki> → {{ns-name|DF2012}} |
+ | |||
+ | <nowiki>{{ns-name|id=1}}</nowiki> → {{ns-name|id=1}} | ||
</noinclude> | </noinclude> |
Revision as of 18:57, 25 November 2015
- When given an unnamed parameter, returns a normalized namespace name
- When given an
id
parameter, acts as the opposite of {{ns-rel-id}}
{{ns-name|DF2012}} →
{{ns-name|id=1}} → 23a