Difference between revisions of "Ns"
From Joomla! Documentation
m (trying find out why a linebreak is occurring) |
m (making a slight change) |
||
Line 11: | Line 11: | ||
| Help32 = 3.2 | | Help32 = 3.2 | ||
| Help35 = 3.5 | | Help35 = 3.5 | ||
+ | | Help2.5 = Help25 | ||
| #default = <!-- empty ---> | | #default = <!-- empty ---> | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 19:30, 25 May 2013
This documentation is transcluded from Template:Ns/doc.
To discuss this template as a whole, please see JDOC:WTP. If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.
This template automates the output of the numerical value of a namespace for the {{JVer}} template.
Functions/Features[edit]
Automatically returns the numeric value of a namespace for Versioning.
Usage[edit]
- {{JVer|{{ns}}}} will result in {{JVer|2.5}} being parsed and render the icon when used in the J2.5: namespace.
- {{JVer|{{ns}}}} will result in {{JVer|3.1}} being parsed and render the icon when used in the J3.1: namespace.
As our namespaces for STS Joomla! Versions are updated by release, this will keep the icon current to the Current STS Versions.
Help namespaces[edit]
This template can also parse out the numerical version value in the HelpXX namespaces.
- {{JVer|{{ns}}}} will result in {{JVer|2.5}} being parsed and render the icon when used in the Help25: namespace.
Overrides[edit]
- Will return an empty value if used in a none version namespace, such as the Main, User, JDOC, etc. namespaces.
- Override the value of the namespace with {{ns|<namespace value>}} such as {{ns|J2.5}}. This allows for complex usage in non version namespaces if needed.
Parameters[edit]
Parameter | Parameter description | req./opt. |
---|---|---|
N/A | namespace value automated | N/A |
{{{1}}} | namespace value manually | optional |
Known Issues[edit]
Non none, please report them on the talk page.