跳转到内容
RA2DIY-WIKI 当前处于维护模式:页面上的内容随时可能发生更改且不会事先告知。

Template:Co/doc:修订间差异

来自RA2DIY
创建页面,内容为“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}}


{{Color|Grayish-green text with a red background|green|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}}


{{Color|Grayish-green text with a red background|green|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

See also

{{{{ safesubst:#if:|:|}}color block{{ safesubst:#if:||{{{arg}}}}}}}