模板:Colorbox
维基媒体模板 / 維基百科,自由的 encyclopedia
More information Visual effect, Markup ...
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}}
|
Close
More information Visual effect, Markup ...
Visual effect | Markup |
---|---|
^ | {{colorbox|#CEF2E0|^}}
|
† | {{colorbox|#CEDFF2|†}}
|
‡ | {{colorbox|#DDCEF2|‡}}
|
* | {{colorbox|#F2E0CE|*}}
|
Close
這個模板取代了{{legend3}}。
使用法
{{colorbox|color|text|wikilink}}
例子
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.
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.
參見
- {{Color box}}:黑色外框版本
上述文件嵌入自Template:Colorbox/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |