Template:Span
Jump to navigation
Jump to search
Overview
Quick way of applying a colour or another style to a piece of text.
Parameters
- The text to style
- The colour (CSS style, so keywords ('blue', 'black', 'navy') or 3 or 6 hex digit colour codes '#fff' '#ace' '#225588') to apply
- (Optional) any other CSS declarations to apply to the text
Usage
{{span|text to style|colour[|more:css; options:as, required;]}}
Examples
The following:
{{span|This is red|red}}
Gives:
This is red
The following:
{{span|''This is green, italic and underlined''|green|text-decoration:underline}}
will display:
This is green, italic and underlined
And finally:
{{span|SPOILERS!!|black|background-color:black}}
Shows:
SPOILERS!!