LLWiki正在建设中,欢迎
加入我们
!
查看“︁Module:Sif2reward”︁的源代码
←
Module:Sif2reward
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} local getArgs = require("Module:Arguments").getArgs local colors = mw.loadData("module:sif2reward/data") function p.main(frame) local args = getArgs(frame, {parentOnly = true, removeBlanks = false}) local arg1, arg2, arg3 = mw.ustring.upper(args[1]), mw.ustring.lower(args[2] or ""), mw.ustring.lower(args[3] or "") local r = tostring( mw.html.create('span'):addClass("game-item") :wikitext("[[file:SIF2 "..arg1..".png|40px|link=]]") ) if arg2 == "" then return r end local color, name if colors[arg2] then color = colors[arg2] name = args[3] elseif colors[arg3] then color = colors[arg3] name = args[2] else return '<span class="error">Sif2reward模板的属性参数错误!</span>' end return r.." '''"..frame:expandTemplate{title = "color", args = {color, name}}.."'''" end return p
该页面使用的模板:
Module:Sif2reward/doc
(
查看源代码
)
返回
Module:Sif2reward
。
导航菜单
个人工具
创建账号
登录
命名空间
模块
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
随机页面
最近更改
沙盒
互助客栈
方针与指引
帮助
工具
链入页面
相关更改
特殊页面
页面信息