维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Template:Color/doc”的源代码
←
Template:Color/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> Makes text bold and colored, using game text colors or a custom color. Note that the preset shades of red and green in this template are different from those in {{template|Red}} and {{template|Green}}. ==Usage== The first parameter sets the color according to the list below; the second parameter sets the text; the third parameter applies a background effect if defined <code><nowiki>{{color|red|text you want red}}</nowiki></code> gives {{color|red|text you want red}} <code><nowiki>{{color|green|text you want green|1}}</nowiki></code> gives {{color|green|text you want green|1}} Text can be left unbolded by setting the parameter <code>bold</code> to <code>normal</code>; so <code><nowiki>{{color|red|unbolded text|bold=normal}}</nowiki></code> gives {{color|red|unbolded text|bold=normal}} Numerical font weights can also be used as a CSS font-weight value. == List of colors == Victoria 3 defines text colors using percentage RGB (as 0-1); the following colors are pre-defined in this template and can be found in {{path|gui/textformatting.gui}} {| class="wikitable" ! Color !! key !! rgb (/ alpha) |- | {{color|black|black}} || black || 0% 0% 0% / 60% |- | {{color|blue|blue}} || blue || 41% 67% 74% |- | {{color|gold|gold}} || gold || 100% 67.4% 45.4% |- | {{color|green|green}} || green || 39% 67% 33% |- | {{color|light_green|light_green}} || light_green || 25% 57% 45% |- | {{color|grey|grey}} || grey || 60% 57% 55% |- | {{color|red|red}} || red || 88% 34% 34% |- | {{color|white|white|1}} || white || 94% 95% 88% |- | {{color|darker_white|darker_white}} || darker_white || 76% 74% 72% |- | {{color|yellow|yellow|1}} || yellow || 100% 97% 66% |} Custom colors can be used by defining any valid CSS color value. For example, <code><nowiki>{{color|#cc11cc|hexcode}}</nowiki></code> gives {{color|#cc11cc|hexcode}} <noinclude> [[Category:Template documentation]] </noinclude>
本页使用的模板:
Template:Color
(
查看源代码
)
Template:Path
(
查看源代码
)
Template:Template
(
查看源代码
)
Template:Template doc page viewed directly
(
查看源代码
)
Template:Tlx
(
查看源代码
)
返回
Template:Color/doc
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录