Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 23:56, 9 June 2024 by 1F616EMO (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Usage

{{colorbull|color|shape|wikilink|size=|description=}}

  • 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 % of the default style text size. Default is 100.
  • The named parameter description replaces the default color tooltip. This is also heard by a screen reader.

Examples

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

See also

Color box templates Template:VTE
Template Description Example
{{Color box}} Color box size with black borders and text color. Standard size.   or  ORANGE 
{{Color box striped}} Striped color box. Standard size.     
{{RouteBox}} Borderless color box with text color and wikilinks.  ORANGE 
{{Colorbull}} Colored bullet with wikilinks.
{{Legend inline}} Color box size with black borders. Standard size.   
{{Color sample}} Color box size with black borders. Smaller size.
{{Swatch inline}} orange
{{Background color}} orangeTemplate:Ensure AAA contrast ratio
{{Rail color box}} A version with more display options. Part of Module:Adjacent stations Lua error: expandTemplate: template "Taipei Metro color" does not exist., Lua error: expandTemplate: template "San Diego Trolley color" does not exist.
{{Diagonal split color box}} Color box split diagonally. Standard size.
   
   


This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Colorbull in articles based on its TemplateData.

TemplateData for Colorbull

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
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
Link target3
Optionally, a page name to link to.
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
Descriptiondescription
When hovered over, this is also heard by a screen reader. This optional parameter can be used to change the default to something more user-friendly.
Default
the value used for color as a tooltip
Example
dark blue