Template:Co/doc:修订间差异
外观
创建页面,内容为“Usage: <pre> {{Co|text|color|background-color}} </pre> Copy-paste the code above and replace * '''text''' with the text you want to have colored * '''color''' with the color the text should have * '''background-color''' with the bg-color the text should have (can be left blank) ==Examples== ;Code <pre> {{Co|Gold text|gold}} {{Co|Green text with a red background|#00FF00|red}} {{Color|Grayish-green text with a red background|green|red}} </pre> ;Result {{Co|Gol…” |
小 →参见 |
||
| (未显示同一用户的15个中间版本) | |||
| 第1行: | 第1行: | ||
==描述== | |||
这是一个用于方便更改文本颜色的模板 | |||
==用法== | |||
<pre> | <pre> | ||
{{Co| | {{Co|文本|颜色|背景色(选填)}} | ||
</pre> | </pre> | ||
== | ===示例=== | ||
<pre> | <pre> | ||
{{Co| | {{Co|金色无底|gold}} | ||
{{Co| | {{Co|正绿红底|#00FF00|red}} | ||
{{ | {{Co|绿色蓝底|green|blue}} | ||
</pre> | </pre> | ||
===效果=== | |||
{{Co| | {{Co|绿色无底|green}} | ||
{{ | {{Co|正黄红底|#FFFF00|red}} | ||
{{Co|金色蓝底|gold|blue}} | |||
* 注意:<code>{{co|#00FF00|#00FF00}}</code> 与 <code>{{co|green|green}}</code> 是不同的,后者应该是 <code>{{co|#008000|#008000}}</code>。 | |||
{{ | |||
2025年5月4日 (日) 22:43的最新版本
描述
这是一个用于方便更改文本颜色的模板
用法
{{Co|文本|颜色|背景色(选填)}}
示例
{{Co|金色无底|gold}}
{{Co|正绿红底|#00FF00|red}}
{{Co|绿色蓝底|green|blue}}
效果
绿色无底
正黄红底
金色蓝底
- 注意:
#00FF00与green是不同的,后者应该是#008000。