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
m (Protected "Template:Ns-name": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(+example) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{#invoke:versions/parserFunctions|getNamespaceByIndex|{{{id|{{ns-rel-id|{{{1}}}}}}}}|}}<noinclude> |
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | }}<noinclude> | ||
* When given an unnamed parameter, returns a normalized namespace name | * When given an unnamed parameter, returns a normalized namespace name | ||
* When given an ``id`` parameter, acts as the opposite of {{tl|ns-rel-id}} | * When given an ``id`` parameter, acts as the opposite of {{tl|ns-rel-id}} | ||
Line 12: | Line 6: | ||
<nowiki>{{ns-name|id=1}}</nowiki> → {{ns-name|id=1}} | <nowiki>{{ns-name|id=1}}</nowiki> → {{ns-name|id=1}} | ||
+ | |||
+ | <nowiki>{{ns-name|unknown}}</nowiki> → {{ns-name|unknown}} | ||
+ | |||
+ | [[Category:Version templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 23:35, 27 November 2022
Main
- 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}} → v0.34
{{ns-name|id=1}} → 23a
{{ns-name|unknown}} → Main