Difference between revisions of "Template:Style"

From Frictional Wiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 14:32, 18 July 2020

{{{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