Template:Highlight/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Used for highlighting and/or boxing text. | Used for highlighting and/or boxing text. Can be used inside paragraphs. | ||
==Usage== | ==Usage== | ||
Line 15: | Line 15: | ||
===Border=== | ===Border=== | ||
To add a border | To add a border add <code>|bordered=yes</code> like this: | ||
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered}}</code> makes {{highlight|TEXT GOES HERE|bordered}} | *<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered=yes}}</code> makes {{highlight|TEXT GOES HERE|bordered=yes}} | ||
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered|color=red}}</code> makes {{highlight|TEXT GOES HERE|bordered|color=red}} | *<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered=yes|color=red}}</code> makes {{highlight|TEXT GOES HERE|bordered=yes|color=red}} | ||
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered|color=orange}}</code> makes {{highlight|TEXT GOES HERE|bordered|color=orange}} | *<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered=yes|color=orange}}</code> makes {{highlight|TEXT GOES HERE|bordered=yes|color=orange}} | ||
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered|color=#CADCFB}}</code> makes {{highlight|TEXT GOES HERE|bordered|color=#CADCFB}} | *<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered=yes|color=#CADCFB}}</code> makes {{highlight|TEXT GOES HERE|bordered=yes|color=#CADCFB}} | ||
*<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered|color=#f2e0ce}}</code> makes {{highlight|TEXT GOES HERE|bordered|color=#f2e0ce}} | *<code><nowiki>{{</nowiki>highlight|TEXT GOES HERE|bordered=yes|color=#f2e0ce}}</code> makes {{highlight|TEXT GOES HERE|bordered=yes|color=#f2e0ce}} | ||
<includeonly>[[Category: | <includeonly> | ||
[[Category:Formatting templates]] | |||
</includeonly> |
Latest revision as of 02:32, 22 May 2013
Used for highlighting and/or boxing text. Can be used inside paragraphs.
Usage
{{highlight|TEXT GOES HERE}}
makes TEXT GOES HERE
If the text contains an equals sign (=) then you will have to use this syntax: {{highlight|1=TEXT GOES HERE}}
Color
Default color is #E6E6FA
. This can be overwritten with |color=
like this:
{{highlight|TEXT GOES HERE|color=red}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|color=orange}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|color=#CADCFB}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|color=#f2e0ce}}
makes TEXT GOES HERE
Border
To add a border add |bordered=yes
like this:
{{highlight|TEXT GOES HERE|bordered=yes}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|bordered=yes|color=red}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|bordered=yes|color=orange}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|bordered=yes|color=#CADCFB}}
makes TEXT GOES HERE{{highlight|TEXT GOES HERE|bordered=yes|color=#f2e0ce}}
makes TEXT GOES HERE