Actions

Template

Difference between revisions of "JVer"

From Joomla! Documentation

m (adding 3.x icon)
m (adding in 3.2 icon)
 
Line 1: Line 1:
<includeonly>[[Image:Compat_icon_{{#switch:{{{1}}}|1.0=1_0|1.5=1_5|1.6=1_6|1.7=1_7|2.5=2_5|3.x=3_x|3.0=3_0|3.1=3_1|platform=platform|Platform=platform|11.1=11_1|11.2=11_2|11.3=11_3|12.1=12_1|12.2=12_2|12.3=12_3|13.1=13_1|#default=CMS}}{{#ifeq:{{{3}}}|long|_long|}}.png|{{{2|Joomla {{{1}}}}}}]]</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>[[Image:Compat_icon_{{#switch:{{{1}}}|1.0=1_0|1.5=1_5|1.6=1_6|1.7=1_7|2.5=2_5|3.x=3_x|3.0=3_0|3.1=3_1|3.2=3_2|platform=platform|Platform=platform|11.1=11_1|11.2=11_2|11.3=11_3|12.1=12_1|12.2=12_2|12.3=12_3|13.1=13_1|#default=CMS}}{{#ifeq:{{{3}}}|long|_long|}}.png|{{{2|Joomla {{{1}}}}}}]]</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 10:32, 13 October 2013

[view] [edit] [history]

Template-info.pngTemplate documentation

Contents

The JVer template embeds a standard Joomla version icon into a page.

Functions/Features

You can specify the version of Joomla and the tooltip text that the user will when they hover over the icon. You also have a choice of short or long versions of the icon.

Usage

  • For a regular icon with the default tooltip text use {{JVer|2.5}}: Joomla 2.5
  • Override the tooltip text by adding a second argument {{JVer|2.5|My tooltip}}: My tooltip
  • For a long icon, add the third argument {{JVer|2.5|This is a long icon|long}}: This is a long icon

Parameters

Parameter Parameter description req./opt.
{{{1}}} Joomla version number. See below for the complete list of supported values. required
{{{2}}} Tooltip text. Default: "Joomla " followed by the version specified in {{{1}}} optional
{{{3}}} Icon style. The only value supported is "long". optional

Supported Joomla version numbers

Version Short icon Long icon
CMS 1.0 {{JVer|1.0}}: Joomla 1.0 {{JVer|1.0|Joomla 1.0|long}}: Joomla 1.0
CMS 1.5 {{JVer|1.5}}: Joomla 1.5 {{JVer|1.5|Joomla 1.5|long}}: Joomla 1.5
CMS 1.6 {{JVer|1.6}}: Joomla 1.6 {{JVer|1.6|Joomla 1.6|long}}: Joomla 1.6
CMS 1.7 {{JVer|1.7}}: Joomla 1.7 {{JVer|1.7|Joomla 1.7|long}}: Joomla 1.7
CMS 2.5 {{JVer|2.5}}: Joomla 2.5 {{JVer|2,5|Joomla 2.5|long}}: Joomla 2.5
CMS 3.x {{JVer|3.x}}: Joomla 3.x {{JVer|3.x|Joomla 3.x|long}}: Joomla 3.x
CMS 3.0 {{JVer|3.0}}: Joomla 3.0 {{JVer|3.0|Joomla 3.0|long}}: Joomla 3.0
CMS 3.1 {{JVer|3.1}}: Joomla 3.1 {{JVer|3.1|Joomla 3.1|long}}: Joomla 3.1
CMS 3.2 {{JVer|3.2}}: Joomla 3.2 {{JVer|3.2|Joomla 3.2|long}}: Joomla 3.2
Joomla! CMS {{JVer|multi}}: Joomla multi Not available
Platform {{JVer|Platform}}: Joomla Platform Not available
Platform 11.1 {{JVer|11.1}}: Joomla 11.1 Not available
Platform 11.2 {{JVer|11.2}}: Joomla 11.2 Not available
Platform 11.3 {{JVer|11.3}}: Joomla 11.3 Not available
Platform 12.1 {{JVer|12.1}}: Joomla 12.1 Not available
Platform 12.2 {{JVer|12.2}}: Joomla 12.2 Not available
Platform 12.3 {{JVer|12.3}}: Joomla 12.3 Not available
Platform 13.1 {{JVer|13.1}}: Joomla 13.1 Not available

Known Issues

  • In order to get a long icon you must specify the tooltip text.

See also

Stylesheet

<include only>

</include only>