维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Module:Color/doc”的源代码
←
Module:Color/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly>{{lua|Module:Arguments}}Documentation [[Module:Color/doc]]</includeonly> This module is similar to {{template|Color}} but for modules. Makes text bold and colored, using game text colors or a custom color. ==Usage== The first parameter sets the color according to the list below; the second parameter sets the text; the parameter <code>backing</code> applies a background effect if defined <code><nowiki>color('red','text you want red')</nowiki></code> gives {{#invoke:Color|main|red|text you want red}} <code><nowiki>color('green','text you want green',{backing=1})</nowiki></code> gives {{#invoke:Color|main|green|text you want green|backing=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 {{#invoke:Color|main|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) |- | {{#invoke:Color|main|black|black}} || black || 0% 0% 0% / 60% |- | {{#invoke:Color|main|blue|blue}} || blue || 41% 67% 74% |- | {{#invoke:Color|main|gold|gold}} || gold || 100% 67.4% 45.4% |- | {{#invoke:Color|main|green|green}} || green || 39% 67% 33% |- | {{#invoke:Color|main|wiki_green|green}} || wiki_green || 0% 128% 0% |- | {{#invoke:Color|main|light_green|light_green}} || light_green || 25% 57% 45% |- | {{#invoke:Color|main|grey|grey}} || grey || 60% 57% 55% |- | {{#invoke:Color|main|red|red}} || red || 88% 34% 34% |- | {{#invoke:Color|main|wiki_red|red}} || wiki_red || 255% 0% 0% |- | {{#invoke:Color|main|white|white|backing=1}} || white || 94% 95% 88% |- | {{#invoke:Color|main|darker_white|darker_white}} || darker_white || 76% 74% 72% |- | {{#invoke:Color|main|yellow|yellow|backing=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}}. Setting the parameter <code>html</code> or <code>css</code> to anything allows the use of CSS named colors that overlap the keys above. <noinclude>[[Category:Module documentation]]</noinclude><includeonly>[[Category:Modules]]</includeonly>
本页使用的模板:
Template:Color
(
查看源代码
)
Template:Path
(
查看源代码
)
Template:Template
(
查看源代码
)
Template:Tlx
(
查看源代码
)
Module:Arguments
(
查看源代码
)
Module:Color
(
查看源代码
)
返回
Module:Color/doc
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录