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行: | 第15行: | ||
{{Co|Green text with a red background|#00FF00|red}} | {{Co|Green text with a red background|#00FF00|red}} | ||
{{ | {{Co|Grayish-green text with a red background|green|red}} | ||
</pre> | </pre> | ||
;Result | ;Result | ||
| 第22行: | 第22行: | ||
{{Co|Green text with a red background|#00FF00|red}} | {{Co|Green text with a red background|#00FF00|red}} | ||
{{ | {{Co|Grayish-green text with a red background|green|red}} | ||
* Mind that '''{{color block|#00FF00}}<code>#00FF00</code> and {{color block|green}}<code>green</code> are diffrent in our wiki'''. | * Mind that '''{{color block|#00FF00}}<code>#00FF00</code> and {{color block|green}}<code>green</code> are diffrent in our wiki'''. | ||
2025年5月4日 (日) 21:44的版本
Usage:
{{Co|text|color|background-color}}
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
{{Co|Gold text|gold}}
{{Co|Green text with a red background|#00FF00|red}}
{{Co|Grayish-green text with a red background|green|red}}
- Result
Gold text
Green text with a red background
Grayish-green text with a red background
- Mind that Template:Color block
#00FF00and Template:Color blockgreenare diffrent in our wiki.
See also
{{{{ safesubst:#if:|:|}}color block{{ safesubst:#if:||{{{arg}}}}}}}