फलकम्:Colorbox/doc
दिखावट
This is a documentation subpage for फलकम्:Terminate sentence It may contain usage information, categories and other content that is not part of the original फलकम् page. |
This template supersedes {{legend3}}.
Usage
[सम्पादयतु]{{colorbox|color|text|wikilink}}
- Colors are most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See web colors for details.
- Text is optional; it is displayed using the default style foreground color as prescribed by CSS. For most users this is black.
- The wikilink parameter is also optional and specifies the article to which the text should point.
Visual effect | Markup |
---|---|
{{colorbox|Red}}
| |
Default color for this text | {{colorbox|Fuchsia|Default color for this text}}
|
Wikilink to "Article" on Wikipedia | {{colorbox|Yellow|Wikilink to "Article" on Wikipedia|Article}}
|
Using an X11 color name | {{colorbox|Chartreuse|'''Using an X11 color name'''|X11 color names}}
|
Using RGB hex triplet | {{colorbox|#FEDCBA|''Using RGB hex triplet''|Web colors#Hex triplet}}
|
NOTE: Using a blue, purple, or red colorbox obscures unvisited, visited, and missing wikilinks, respectively, as these are the default link colors for most users.
Legends and keys
[सम्पादयतु]The colorbox
template is widely used to annotate complex tables in which editors have used color to group like entries. The editor uses the background-color
style to color individual cells in the table and then adds a legend consisting of colorboxes at the beginning or end of the table explaining the meanings behind the color scheme. The editor may also add symbols like a caret (^), dagger/obelisk (†), double dagger/diesis (‡), or asterisk (*) to call attention to the different meanings.
Visual effect | Markup |
---|---|
^ | {{colorbox|#CEF2E0|^}}
|
† | {{colorbox|#CEDFF2|†}}
|
‡ | {{colorbox|#DDCEF2|‡}}
|
* | {{colorbox|#F2E0CE|*}}
|
NOTE:
- Using a black colorbox with text markers obscures the text as the default style foreground color for most users is black.
- The HTML code
*
must be used to create the asterisk as Wikipedia will treat the typed asterisk as an indented bullet point.
Variants
[सम्पादयतु]- {{Colorbox}}, a small color box with grey borders and wikilinks. (e.g. or RED )
- {{Color box}}, a version with black borders and text color. (e.g. or RED )
- {{RouteBox}}, a borderless version with text color and wikilinks. (e.g. RED )
See also
[सम्पादयतु]- {{Infobox color}}, a infobox for the description of a color with many details