Difference between revisions of "Template:Colorbull/doc"

From blackwiki
Jump to navigation Jump to search
imported>GKFX
m (Delete duplicated content)
imported>Useddenim
(rearranged)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 +
This template inserts a colored bullet, with an optional [[wikilink]]. The bullet’s shape and size can also be changed.
 +
 +
== Usage ==
 +
<code>&#123;&#123;colorbull{{!}}''colour''{{!}}''shape''{{!}}''wikilink''{{!}}''size=''}}</code>
 +
 +
*''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:
 +
::{|class="wikitable"
 +
|-
 +
| 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 ===
 +
{| class="wikitable"
 +
|-
 +
! Visual<br/>effect !! Markup
 +
|-
 +
| {{colorbull}} || <code><nowiki>{{colorbull}}</nowiki></code>
 +
|-
 +
| {{colorbull|#039}} || <code><nowiki>{{colorbull|#039}}</nowiki></code>
 +
|-
 +
| {{colorbull|size=50}} || <code><nowiki>{{colorbull|size=50}}</nowiki></code>
 +
|-
 +
| {{colorbull|red|round}} || <code><nowiki>{{colorbull|red|round}}</nowiki></code>
 +
|-
 +
| {{colorbull|green|d}} || <code><nowiki>{{colorbull|green|d}}</nowiki></code>
 +
|-
 +
| {{colorbull||tu|triangle}} || <code><nowiki>{{colorbull||tu|triangle}}</nowiki></code>
 +
|}
 +
 +
== See also ==
 +
{{Color box templates}}
 +
*{{tl|*}}/{{tl|bull}}/{{tl|bullet}}, a simple bullet. (e.g. {{*}})
  
 
{{Format TemplateData|TOC=1|JSON=
 
{{Format TemplateData|TOC=1|JSON=
Line 65: Line 113:
 
"format": "inline"
 
"format": "inline"
 
} }}
 
} }}
 
=== Examples ===
 
{| class="wikitable"
 
|-
 
! Visual<br/>effect !! Markup
 
|-
 
| {{colorbull}} || <code><nowiki>{{colorbull}}</nowiki></code>
 
|-
 
| {{colorbull|#039}} || <code><nowiki>{{colorbull|#039}}</nowiki></code>
 
|-
 
| {{colorbull|size=50}} || <code><nowiki>{{colorbull|size=50}}</nowiki></code>
 
|-
 
| {{colorbull|red|round}} || <code><nowiki>{{colorbull|red|round}}</nowiki></code>
 
|-
 
| {{colorbull|green|d}} || <code><nowiki>{{colorbull|green|d}}</nowiki></code>
 
|-
 
| {{colorbull||tu|triangle}} || <code><nowiki>{{colorbull||tu|triangle}}</nowiki></code>
 
|}
 
 
== See also ==
 
{{Color box templates}}
 
*{{tl|*}}/{{tl|bull}}/{{tl|bullet}}, a simple bullet. (e.g. {{*}})
 
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 11:42, 2 February 2018

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

Usage

{{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

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

See also

Template Description Example
{{Color box}} a small color box with black borders and text color   or  ORANGE 
{{Color box striped}} a striped version     
{{RouteBox}} a borderless version with text color and wikilinks Template:RouteBox
{{Colorbull}} a colored bullet with wikilinks
{{Legend2}} another borderless version   
{{Color sample}} a small color box with black borders
{{Swatch inline}} Template:Swatch inline
{{Background color}} orange
{{Rail color box}} a version with more display options
(part of Module:Adjacent stations)
Template:Rcb, Template:Rcb, etc.
{{Diagonal split color box}} a small color box split diagonally
   
   
, etc.
{{Motor type}} A small color box corresponding to the motor type Template:Motor type, etc.
  1. REDIRECT Template:•)
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Colorbull

INTERNAL: mw.text.jsonDecode: Control character error, possibly incorrectly encoded