Template:Colorbull

From Monarchists.Wiki

Template documentation[view] [edit] [history] [purge]

This template inserts a colored bullet, with an optional wikilink. The bullet’s shape and size can also be changed.

Usage[edit]

{{colorbull|colour|shape|wikilink|size=}}

  • Colors are most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See web colors for details. The default is black.
  • Shape is optional; valid arguments are:
c / circle / r / round
d / diamond
tu / up / uptriangle
td / dn / downtriangle
tl / lt / lefttriangle
tr / rt / righttriangle
default
  • The wikilink parameter is also optional and specifies the article to which the text should point.
  • The named parameter size is a number specifying the bullet size as a percentage of the default style text size. Default is 100.

Examples[edit]

Visual
effect
Markup
{{colorbull}}
{{colorbull|#039}}
{{colorbull|size=50}}
{{colorbull|red|round}}
{{colorbull|green|d}}
{{colorbull||tu|triangle}}

See also[edit]

Template Description Example
{{Color box}} a small color box with black borders and text color      or  ORANGE 
{{RouteBox}} a borderless version with text color and wikilinks  ORANGE 
{{Colorbull}} a colored bullet with wikilinks
{{Legend2}} another borderless version   
{{Color sample}} a small color box with black borders
{{Swatch inline}} orange
{{Background color}} orange
  • {{*}}/{{bull}}/{{bullet}}, a simple bullet. (e.g.  • )


This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Colorbull

ParameterDescriptionTypeStatus
Color1
Most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.
Default
black (or standard link color for links)
Example
#f00
Stringsuggested
Shape2
“c” or “circle” or “r” or “round” gives ●; “d” or “diamond” gives ◆; “tu” or “up” or “uptriangle” gives ▲; “td” or “dn” or “downtriangle” gives ▼; “tl” or “lt” or “lefttriangle” gives ◀; “tr” or “rt” or “righttriangle” gives ▶; default is ■
Default
Stringsuggested
Link target3
Optionally, a page name to link to.
Pagesuggested
Sizesize
The size of the bullet relative to surrounding text, as a percentage. Omit the % sign.
Default
The same size as surrounding text (100)
Example
80
Numbersuggested

Format: inline

Test of raw TemplateData output:

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Color1

Most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.

Default
black (or standard link color for links)
Example
#f00
Stringsuggested
Shape2

“c” or “circle” or “r” or “round” gives ●; “d” or “diamond” gives ◆; “tu” or “up” or “uptriangle” gives ▲; “td” or “dn” or “downtriangle” gives ▼; “tl” or “lt” or “lefttriangle” gives ◀; “tr” or “rt” or “righttriangle” gives ▶; default is ■

Default
Stringsuggested
Link target3

Optionally, a page name to link to.

Pagesuggested
Sizesize

The size of the bullet relative to surrounding text, as a percentage. Omit the % sign.

Default
The same size as surrounding text (100)
Example
80
Numbersuggested