Hearthstone Wiki

Hearthstone Wiki is currently under major revamp. All articles that have card lists or queries may not function properly for now. Please check back later!


Hearthstone Wiki
Hearthstone Wiki
(Created page with "<onlyinclude><includeonly><span class="{{#if:{{{1|}}}|{{lc:{{#replace:{{{1|}}}| |-}} }}">{{{1|{{{2|}}}}}}</span></includeonly></onlyinclude>{{doc}} [[Category:General wiki tem...")
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><span class="{{#if:{{{1|}}}|{{lc:{{#replace:{{{1|}}}| |-}} }}">{{{1|{{{2|}}}}}}</span></includeonly></onlyinclude>{{doc}}
<onlyinclude><includeonly><span class="{{#if:{{{1|}}}|{{lc:{{#replace:{{{1|}}}| |-}} }}|}}">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span></includeonly></onlyinclude>{{doc}}
[[Category:General wiki templates]]
[[Category:Formatting templates]]

Latest revision as of 04:47, 4 May 2021

This template creates a span with a class name based on the provided text, and that text is also the content of the span, or alternate text can be specified.



In the above usage, the text serves as both the class name and the text. Before being used as the class name, spaces are replaced with hyphens and letters are converted to lowercase, but the text is displayed as it was provided.

Alternate usage:


In this usage, the class name is specified separately, but is still forced to lowercase and spaces are still replaced with hyphens.