钢铁雄心4
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
ParaTranz
资助我们
×
欢迎访问钢铁雄心4百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
注意:请勿在本站上传违反中华人民共和国法律的相关项目及文本,包括但不限于涉及违法犯罪、
历史虚无主义、侮辱先烈、暴力色情等,一经发现将立刻锁定证据并上报网警。
欢迎所有对百科感兴趣的同学加入钢4编辑群:
1137478871
。
阅读
查看源代码
查看历史
讨论
查看“Module:Color”的源代码
←
Module:Color
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} function p.color(color, text, background) local s = "<span class=\"effect-%s\" style=\"color: %s; white-space:nowrap; font-weight:bold;" if color == "green" then s = string.format(s, "green", "#008000") elseif color == "red" then s = string.format(s, "red", "#ff0000") elseif color == "yellow" then s = string.format(s, "yellow", "#ffbd00") elseif color == "blue" then s = string.format(s, "blue", "#0000ff") elseif color == "cyan" then s = string.format(s, "cyan", "#23ceff") elseif color == "grey" then s = string.format(s, "grey", "#b0b0b0") elseif color == "lilac" then s = string.format(s, "lilac", "#c3b091") elseif color == "orange" then s = string.format(s, "orange", "#ffa500") elseif color == "white" then s = string.format(s, "white", "#ffffff") else s = string.format(s, "black", "#000000") end if background then s = s .. " background: #E9E9E9; padding: 1px 3px; border-radius: 2px;" end s = s .. "\">" return s .. text .. "</span>" end return p
本页使用的模板:
Module:Color/doc
(
查看源代码
)
返回
Module:Color
。
×
登录
密码
记住登录
加入钢铁雄心4百科
忘记密码?
其他方式登录