<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AColorbox%2Fdoc</id>
	<title>模板:Colorbox/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AColorbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Colorbox/doc&amp;action=history"/>
	<updated>2026-11-17T03:33:22Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Colorbox/doc&amp;diff=23864&amp;oldid=prev</id>
		<title>wiki&gt;Trizek (WMF)：​update</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Colorbox/doc&amp;diff=23864&amp;oldid=prev"/>
		<updated>2025-02-03T13:24:34Z</updated>

		<summary type="html">&lt;p&gt;update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;colorbox|&amp;#039;&amp;#039;background-color&amp;#039;&amp;#039;|&amp;#039;&amp;#039;Text&amp;#039;&amp;#039;|&amp;#039;&amp;#039;wikilink&amp;#039;&amp;#039;|&amp;#039;&amp;#039;color&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Colors are most commonly specified as either a color name or as the hexadecimal triplet representing an RGB combination.  See [[m:web colors|web colors]] for details.&lt;br /&gt;
** Color accessibility, with sufficient contrast, must be respected. &lt;br /&gt;
** Remember that the meaning of colors is not universal.&lt;br /&gt;
* Text is optional; it is displayed using (by default) the default style foreground color as prescribed by [[:w:Cascading Style Sheets|CSS]]. For most users this is black.&lt;br /&gt;
* The &amp;#039;&amp;#039;wikilink&amp;#039;&amp;#039; parameter is also optional and specifies the article to which the text should point.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! Visual effect !! Markup&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|red}} || &amp;lt;CODE&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|red}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|fuchsia|Default color for this text}} || &amp;lt;CODE&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|fuchsia|Default color for this text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|yellow|Wikilink to &amp;quot;Mediawiki&amp;quot;|Mediawiki}} || &amp;lt;CODE&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|yellow|Wikilink to &amp;quot;Mediawiki&amp;quot;|Mediawiki}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|chartreuse|&amp;#039;&amp;#039;&amp;#039;Using an X11 color name&amp;#039;&amp;#039;&amp;#039;|:w:X11 color names}} || &amp;lt;CODE&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|chartreuse|&amp;#039;&amp;#039;&amp;#039;Using an X11 color name&amp;#039;&amp;#039;&amp;#039;|:w:X11 color names}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|#FEDCBA|&amp;#039;&amp;#039;Using RGB hex triplet&amp;#039;&amp;#039;|:w:Web colors#Hex triplet}} || &amp;lt;CODE&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|#FEDCBA|&amp;#039;&amp;#039;Using RGB hex triplet&amp;#039;&amp;#039;|:w:Web colors#Hex triplet}}&amp;lt;/nowiki&amp;gt;&amp;lt;/CODE&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Controling the visibility of text color on a colored background&lt;br /&gt;
: Using a blue, purple, or red background colorbox obscures unvisited, visited, and missing wikilinks, respectively, as these are the default link colors for most users.&lt;br /&gt;
: Using a black colorbox with text markers obscures the text as the default style foreground color for most users is black.&lt;br /&gt;
: Most background colors (except white and pale colors) will not be contrasting correctly with the default text or link colors.&lt;br /&gt;
: For this reason, you &amp;#039;&amp;#039;&amp;#039;should&amp;#039;&amp;#039;&amp;#039; specify a contrasting color for the rendered text in the 4th parameter (the presence of a link in the 3rd parameter will be made signaled by a bottom dotted line, in the same color as text)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &amp;#039;&amp;#039;&amp;#039;Text marker examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! Visual effect !! Markup&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|black|Inverted text||white}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|black|Inverted text||white}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|black|Inverted link|Help:link|white}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|Inverted link|Help:link|white}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|white|Not a link||blue}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|white|Not a link||blue}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|white|Effective link|Help:link|blue}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|Effective link|Help:link|blue}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Legends and keys ===&lt;br /&gt;
The &amp;lt;code&amp;gt;colorbox&amp;lt;/code&amp;gt; template is widely used to annotate complex tables in which editors have used color to group like entries.  The editor uses the &amp;lt;CODE&amp;gt;background-color&amp;lt;/CODE&amp;gt; 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 [[:w:caret|caret]] (^), [[:w:Dagger (typography)|dagger/obelisk]] (†), [[:w:double dagger|double dagger/diesis]] (‡), or [[:w:asterisk|asterisk]] (*) to call attention to the different meanings.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ &amp;#039;&amp;#039;&amp;#039;Text color examples&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! Visual effect !! Markup&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|#CEF2E0|^}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|#CEF2E0|^}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|#CEDFF2|†}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|#CEDFF2|†}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|#DDCEF2|‡}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|#DDCEF2|‡}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| {{colorbox|#F2E0CE|&amp;amp;#42;}} || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{colorbox|#F2E0CE|&amp;amp;amp;#42;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; Note&lt;br /&gt;
: The HTML code &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;amp;amp;#42;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; must be used to create the asterisk as Wikipedia will treat the typed asterisk as an indented bullet point.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Text color templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Trizek (WMF)</name></author>
	</entry>
</feed>