Actions

Template

Ns

From Joomla! Documentation

Revision as of 18:33, 25 May 2013 by Tom Hutchison (Talk | contribs)

[view] [edit] [history]

Template-info.pngTemplate documentation

Contents


This template automates the output of the numerical value of a namespace for the {{JVer}} template.

Functions/Features

Automatically returns the numeric value of a namespace for Versioning.

Usage

  • {{JVer|{{ns}}}} will result in {{JVer|2.5}} being parsed and render the Joomla 2.5 icon when used in the J2.5: namespace.
  • {{JVer|{{ns}}}} will result in {{JVer|3.1}} being parsed and render the Joomla 3.1 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

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 Joomla 2.5 icon when used in the Help25: namespace.

Overrides

  • 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

Parameter Parameter description req./opt.
N/A namespace value automated N/A
{{{1}}} namespace value manually optional

Known Issues

Non none, please report them on the talk page.

See also