Template

Difference between revisions of "JVer/multi"

From Joomla! Documentation

< Template:JVer
m (default CMS switch)
m (Added support for Joomla Platform 12.1, 12.2 and 12.3.)
Line 1: Line 1:
<includeonly>{{#arraydefine:icon|{{{1|}}}}}{{#arrayprint:icon| |@@@@|&nbsp;[[Image:Compat_icon_{{#switch:@@@@|1.0=1_0|1.5=1_5|1.6=1_6|1.7=1_7|2.5=2_5|3.0=3_0|platform=platform|Platform=platform|11.1=11_1|11.2=11_2|11.3=11_3|#default=CMS}}{{#ifeq:{{{3}}}|long|_long|}}.png|{{{2|Joomla @@@@}}}]]}}{{#arrayreset:icon}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#arraydefine:icon|{{{1|}}}}}{{#arrayprint:icon| |@@@@|&nbsp;[[Image:Compat_icon_{{#switch:@@@@|1.0=1_0|1.5=1_5|1.6=1_6|1.7=1_7|2.5=2_5|3.0=3_0|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|#default=CMS}}{{#ifeq:{{{3}}}|long|_long|}}.png|{{{2|Joomla @@@@}}}]]}}{{#arrayreset:icon}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 02:58, 7 October 2012

[view] [edit] [history]

Template-info.pngTemplate documentation

Enter the purpose of this template...

Functions/Features[edit]

Ability to add multiple Joomla! CMS or Platform Version icons, see {{JVer/multi}}

Usage[edit]

{{JVer/multi|2.5,3.x,3.0,3.1}}

Will place 4 version icons like this:  Joomla 2.5 Joomla 3.x Joomla 3.0 Joomla 3.1

Parameters[edit]

Versions Short icon Long icon
CMS Versions {{JVer/multi|1.0,1.5}}:  Joomla 1.0 Joomla 1.5 {{JVer/multi|1.6,1.7,2.5|Joomla Version|long}}:  Joomla Version Joomla Version Joomla Version
Platform {{JVer/multi|11.1,11.2}}:  Joomla 11.1 Joomla 11.2 Not Available
Mix CMS/Platform {{JVer/multi|1.7,11.2}}:  Joomla 1.7 Joomla 11.2 Not Available

Known Issues[edit]

  • Tool tip must be generic for multi long icons such as "Joomla! Version or Joomla! Platform. The long icon can only be called if there is a tool tip, see {{JVer}}, and using "Joomla! 2.5" for a multi icon call will make all icons show a Joomla! 2.5 tool tip.
As an example, hover over icons:  Joomla! 2.5 Joomla! 2.5 Joomla! 2.5

See also[edit]