قالب:Colorbull
■
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
- {{Colorbox}}, a small color box with grey borders and wikilinks. (e.g. or ORANGE )
- {{Color box}}, a small color box with black borders and text color. (e.g. or ORANGE )
- {{RouteBox}}, a borderless version with text color and wikilinks. (e.g. ORANGE )
- {{Colorbull}}, a colored bullet with wikilinks. (e.g. ■)
- {{*}} / {{bull}} / {{bullet}}, a simple bullet. (e.g. • )
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
Color | 1 | Most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.
| نص | مقترح |
Shape | 2 | “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 ■
| نص | مقترح |
Link target | 3 | Optionally, a page name to link to. | اسم الصفحة | اختياري |
Size | size | The size of the bullet relative to surrounding text, as a percentage. Omit the % sign.
| رقم | اختياري |
Description | description | 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.
| نص | اختياري |
Format: inline
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
Color | 1 | Most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.
| نص | مقترح |
Shape | 2 | “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 ■
| نص | مقترح |
Link target | 3 | Optionally, a page name to link to. | اسم الصفحة | اختياري |
Size | size | The size of the bullet relative to surrounding text, as a percentage. Omit the % sign.
| رقم | اختياري |
Description | description | 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.
| نص | اختياري |
The above documentation is transcluded from قالب:Colorbull/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |