Difference between revisions of "Template:Highlight"
From eRepublik Official Wiki
m (Update with more features and backwards compatability) |
m (cat added) |
||
Line 1: | Line 1: | ||
{{#if:{{{1}}}|<span style="background:{{{2|cornsilk}}}; color:{{{3|black}}}">{{{1|Example text}}}</span>}} | {{#if:{{{1}}}|<span style="background:{{{2|cornsilk}}}; color:{{{3|black}}}">{{{1|Example text}}}</span>}} | ||
− | <noinclude>{{Documentation}}</noinclude> | + | <noinclude>{{Documentation}}[[Category:Editing Templates]]</noinclude> |
Latest revision as of 12:49, 13 April 2014
Example text
This is a highlight template which can be used to bring attention to certain sections. For example, it can be used in conjunction with {{Ref}} to highlight particular phrases to be sourced.
Usage
{{Highlight|'text'|'highlight colour'|'text colour'}}
Variables
This template has these variables:
- text
- highlight colour (Optional, default cornsilk)
- text colour (Optional, default black)
Examples
*{{Highlight|Example 1}} *{{Highlight|Example 2|lightblue}} *{{Highlight|Example 3|Darkred|White}}
- Example 1
- Example 2
- Example 3