维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Module:State trait”的源代码
←
Module:State trait
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
-- -- Module:State trait -- -- For use with Module:State, it builds a collapse list with state trait icon, name, and effects -- local p = {}; local getArgs = require('Module:Arguments').getArgs local lister = require('Module:Tooltip').effectList function p.main(frame) local args = getArgs(frame) return p.state_trait(args[1], args[2]) end function p.state_trait(trait, width) -- ensure width is a number, defaults to 30px width = type(width) == 'number' and width or 30 local trait_data = mw.loadData('Module:State trait/List')[trait] -- return error message if not found if not trait_data then return '<span style="color:red; font-size:11px;">(unrecognized trait "' .. trait .. '" for [[Module:State trait]])</span>[[Category:Pages with unrecognized state traits]]' end local icon = mw.ustring.format("[[File:State trait %s.png|%spx|link=State traits#%s]] %s", trait_data['icon'],width,trait,trait) -- long bracket string allows including literal newlines as well as both single and double quotes local s = mw.ustring.format([[<div class="mw-collapsible mw-collapsed">'''%s'''<span style="visibility:hidden;color:transparent;"> </span> <div class="mw-collapsible-content">]], icon) s = s .. lister(trait_data['effect'], { listStyle="newline", indent="**", color={css=1}}) .. "\n</div></div>" return s end return p
本页使用的模板:
Template:Clear
(
查看源代码
)
Template:Lua
(
查看源代码
)
Template:Template
(
查看源代码
)
Template:Tlx
(
查看源代码
)
Module:Arguments
(
查看源代码
)
Module:Lua
(
查看源代码
)
Module:State trait/doc
(
查看源代码
)
Module:TableTools
(
查看源代码
)
Module:Yesno
(
查看源代码
)
返回
Module:State trait
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录