Template:Text: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(add ability to pass class into span)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
See also {{t|texts}} for conversation.


[[Category:Utility templates]]
----
;Template
<onlyinclude><!--
--><span {{#if:{{{class|}}}|class="{{{class|colortext}}}"}} {{#switch:{{lc:{{{1}}}}}
|say
|yell
|emote
|flavor
|whisper
|bossemote
|blizz=class{{=}}"text-{{lc:{{{1}}}}}"
|deathknight
|druid
|hunter
|mage
|paladin
|priest
|rogue
|shaman
|warlock
|warrior=class{{=}}"cc-{{lc:{{{1}}}}}"
|red=style{{=}}"color:#DC143C"
|mvp=style{{=}}"color:#81B558"
|bluepost=style{{=}}"color:#00c0ff"
|#default=style{{=}}"color:{{{1|gray}}};"}}>{{#if:{{{3|}}}|'''{{{2}}}{{#switch:{{lc:{{{1}}}}}|say=<nowiki> </nowiki>says|yell=<nowiki> </nowiki>yells|whisper=<nowiki> </nowiki>whispers}}:''' {{{3}}}|{{{2|}}}}}</span><!--
--></onlyinclude>

Latest revision as of 00:57, 16 December 2020

See also {{texts}} for conversation.


Template