Jcompat/doc
From Joomla! Documentation
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Jcompat.
Displays the Joomla! version image known from extensions.joomla.org. The images are applied via CSS which can be customized here for all skins: MediaWiki:common.css
Usage[edit]
- {{
jcompat|1.0
}} gives Template:Jcompat - {{
jcompat|1.0.14
}} gives Template:Jcompat - {{
jcompat|1.5.0
}} gives Template:Jcompat - {{
jcompat|1.6.3
}} gives Template:Jcompat
Simply out, any version that does not translate to a predefine CSS class will result in the "Joomla! ?.?" version badge.
Parameters[edit]
Parameter Name | Parameter Description | req./opt. |
---|---|---|
{{{1}}} | version number: major.minor or major.minor.revision | Required. |
Known Issues[edit]
MediaWiki:common.css needs to be updated with each new release of Joomla! to create the appropriate image. All images are local copies taken from extensions.joomla.org and should also be updated in case their design will change.
Image:compat_10.png Image:compat_15.png Image:compat_16.png Image:compat_xy.png
The same applies for the "unknown" version image
Image:compat_xy.png
The version number is rendered in the HTML but moved from display using CSS. Textbrowers will display this version number. It is therefor recommended to use the version vector incl. a release number. The default value is "9.9" to prevent an error in the parser function and heavy #switch statements.
See also Category:Images copyright by OSM