Template

Icon: Difference between revisions

From Joomla! Documentation

Tom Hutchison (talk | contribs)
m oops needs to be icon
Wilsonge (talk | contribs)
Update to avoid html tag?
 
Line 1: Line 1:
{{#tag:html|<icon class="fa fa-{{{1|info-circle}}} {{#if:{{{2}}}|fa-{{{2}}}|}}" style="color:{{{3|#000}}};"></icon>}}<noinclude>{{documentation}}
<span class="fa fa-{{{1|info-circle}}} {{#if:{{{2}}}|fa-{{{2}}}|}}" style="color:{{{3|#000}}};"></span><noinclude>{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:25, 26 January 2025

[view] [edit] [history]

Template documentation

This template allows for the easy insertion of Font-Awesome icons into pages. The current version available and install on JDOCs is v4.3.

Functions/Features

Easy to add a font-awesome icon, control its size and color.

{{icon|[fontname]|[size]|[color]}}

{{icon|joomla|3x|#5290C8}} becomes...

...a Joomla's blue color icon.

No parameters defaults to:


Parameters

Parameter Parameter description req./opt.
{{{1}}} font-name {{icon|pencil}} yeilds pencil optional
{{{2}}} size {{icon|pencil||#aaa}} yeilds smallest optional
{{{3}}} color {{icon|pencil||#5290C8}} yeilds blue optional

Known Issues

Include notes about ...


See also

Provide links to ...


Stylesheet

Provide CSS selectors ... for [[MediaWiki::joomla.css]] (or [[MediaWiki::common.css]])

some.class