Template:Style

From Valve Developer Community
Revision as of 05:58, 26 July 2018 by Pinsplash (talk | contribs) (Created page with "<span style="{{{1}}}">{{{2}}}</span><noinclude> ---- This template wraps text in an HTML <code>span</code> tag with custom inline CSS. The first parameter is the CSS, the seco...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{{2}}}


This template wraps text in an HTML span tag with custom inline CSS. The first parameter is the CSS, the second one is the text or other content. Saves you a whopping 11 characters. Do not use this carelessly!

{{style|background:black;color:white|Special text here}}

This is equivalent to:

<span style="background:black;color:white">Special text here</span>

Here is the example, using the template:

Special text here