Difference between revisions of "Template:Highlight round/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wdchk
imported>Jay D. Easy
Line 2: Line 2:
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
== Usage ==
+
=== Usage ===
This template highlights the included text using a rounded box with shadows.
 
  
* unnamed 1: Content
+
<code><nowiki>{{highlight round|text|bc=(optional)}}</nowiki></code>
* ''bc'': background color; defaults to {{code|yellow}}
+
 
 +
If no value is given for the color, the template defaults to yellow.
 +
 
 +
{|
 +
| '''Code''' || '''Output'''
 +
|-
 +
| <code><nowiki>{{highlight round|some text}}</nowiki></code> || {{highlight round|some text}}
 +
|-
 +
| <code><nowiki>{{highlight round|some text|bc=#ffa07a}}</nowiki></code> || {{highlight round|some text|bc=#ffa07a}}
 +
|-
 +
| <code><nowiki>{{highlight round|some text|bc=lightgreen}}</nowiki></code> || {{highlight round|some text|bc=lightgreen}}
 +
|}
  
 
== See also ==
 
== See also ==
* {{tl|Hilite}}
+
* {{tl|Highlight}}
  
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
+
[[Category:Text color templates]]
 +
[[Category:Typing-aid templates]]
 
</includeonly>
 
</includeonly>

Revision as of 04:24, 16 December 2018

Usage

{{highlight round|text|bc=(optional)}}

If no value is given for the color, the template defaults to yellow.

Code Output
{{highlight round|some text}} some text
{{highlight round|some text|bc=#ffa07a}} some text
{{highlight round|some text|bc=lightgreen}} some text

See also