Template:Style

From Frictional Wiki
Revision as of 15:32, 18 July 2020 by TiMan (talk | contribs) (→‎Added style template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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