Template:Style

From Source Entities
Jump to navigation Jump to search

{{{2}}}


Protected.png

This page is protected. Only admins can edit it.
Propose edits on the talk page. -Pinsplash (UTC)

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 willy-nilly.

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

This is equivalent to:

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

Here is the example, using the template:

Special text here

An optional third parameter may be specified for any other miscellaneous HTML things, like a title. Remember to use Template:=!