Template:Iconspanclass/doc

From Hearthstone Wiki
Jump to navigation Jump to search

This template is a shorthand for using Template:Icon immediately by Template:Spanclass for the same term.

Usage:

{{iconspanclass|name|optional size|optional text}}

Where name is the filename of the icon minus the " icon.png" part and the name of the CSS class to use. When used as the CSS class, the name will converted to lowercase and all spaces replaced with hyphens. An optional size can be provided in standard MediaWiki syntax. If optional text is specified, it will be the text displayed in the span after the icon; otherwise, the name will be displayed.