跳转到内容

模板:Background color:修订间差异

来自天灾之下:危险连接资料站
bwiki>43881503
小 已保护“模板:Background color”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))
 
小 导入1个版本
 
(未显示2个用户的2个中间版本)
第1行: 第1行:
<includeonly><span style="background-color: {{{c|{{{1|}}}}}}">{{{t|{{{2|}}}}}}</span></includeonly><noinclude>
<span style="color:black; background-color: {{{c|{{{1|}}}}}}; {{#ifeq:{{{3}}}|m|font-family:monospace;}}">{{{t|{{{2|}}}}}}</span><noinclude>
 
{{Documentation}}
{{Documentation}}
[[Category:格式模板]]</noinclude>
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>

2025年12月19日 (五) 23:43的最新版本

模板文档


Usage

  • {{Bgc }} redirects here.
Examples
  • {{bgc|yellow|foo}} = foo
  • {{bgc|#FFA8A8|foo}} = foo
  • {{bgc|#FFA8A8|foo|m}} = foo
Parameters
  • 1st or c = color
  • 2nd or t = text
  • m = monospace font
Color suggestions
  • Refer to Design/Typography#Text color for details on accessible color choices.
  • These colors should be fine[1]:
  • {{bgc|#ff6db6|foobar}} = foobar
  • {{bgc|#ffb6db|foobar}} = foobar
  • {{bgc|#b66dff|foobar}} = foobar
  • {{bgc|#6db6ff|foobar}} = foobar
  • {{bgc|#b6dbff|foobar}} = foobar
  • {{bgc|#db6d00|foobar}} = foobar
  • {{bgc|#24ff24|foobar}} = foobar
  • {{bgc|#ffff6d|foobar}} = foobar