跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
397
文件
1979
用户
1.2万
编辑
Gal中文百科
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
在其他项目中
打开/关闭外观设置菜单
无法加载偏好设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
讨论
贡献
创建账号
登录
编辑“︁
Module
:
播放讯息
”︁
来自Gal中文百科
查看
阅读
编辑源代码
查看历史
associated-pages
模块
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
local p = {} local platform = {} function platform.part(args) args = args or {} local platform_part = mw.html.create("tr") platform_part:tag("th") :attr("colspan", 5) :css("background", (args["3"] or args["background"] or "#CCCCFF")) :css("color", (args["4"] or args["color"] or "black")) :wikitext(args["2"]) return tostring(platform_part) end function platform.main(args) args = args or {} local aType = args["1"] or args["type"] or nil if aType == "part" then return platform.part(args) elseif aType == "line" then return mw.html.create("tr"):css("border-bottom", ".3em solid "..(args["2"] or args["color"] or "#CCCCFF")) end local platform_table = mw.html.create("table") platform_table :addClass(args.class or "wikitable") :css("font-size", args.size or "small") :css("text-align", args.align or "left") :cssText(args.style or "") if args.version ~= nil then args.version = args.version.." " end if args.season ~= nil then args.season = args.season.." " end local text = ((args.area or "日本国内").." "..(args.media or "电视").."/"..(args.version or "")..(args.season or "").. (args.caption or "播放日期时间")) if (args.ref or args.refname) then local reference = { "ref", args.ref } if args.refname and args.refgroup then reference = { "ref", args.ref or "", name=args.refname, args.refgroup } elseif args.refname then reference = { "ref", args.ref or "", name=args.refname } elseif args.refgroup then reference = { "ref", args.ref or "", name=args.refgroup } else reference = { "ref", args.ref } end text = text..mw.getCurrentFrame():callParserFunction("#tag", reference) end platform_table:tag("caption") :wikitext(args.network or text) platform_table:tag("tr") platform_table :tag("th"):css("width",args["width1"]):wikitext(args["1"] or "播放日期") :tag("th"):css("width",args["width2"]):wikitext(args["2"] or "播放时间") :tag("th"):css("width",args["width3"]):wikitext(args["3"] or "所属联播网") local startWith = 5 local percentWith = 5 if args[4] ~= nil and not args["4"]:match("^%s*$") then platform_table:tag("th"):css("width",args["width4"]):wikitext(args["4"]) else percentWith = percentWith - 1 end if args[5] ~= nil and not args["5"]:match("^%s*$") then platform_table:tag("th"):css("width",args["width5"]):wikitext(args["5"]) else percentWith = percentWith - 1 end local num = 0 local num2 = 0 platform_table:tag("tr") for i=(startWith+1),160 do if args[i] == nil then break end if not args[i]:match("^%s*$") then platform_table:tag("td"):wikitext(args[i]) elseif not ((args[num+1] == "备注") or (args[num+1] == "备注")) then platform_table:tag("td"):attr("abbr",args[i]):cssText((num2 < percentWith and "" or "border-top:hidden")):wikitext("") else platform_table:tag("td"):wikitext("") end num = num + 1 num2 = num2 + 1 if num>=percentWith then platform_table:tag("tr") num = 0 end end if args["note"] ~= nil then platform_table:tag("tr"):tag("td"):attr("colspan",startWith):css("font-size", "x-small"):wikitext(args.note) end return tostring(platform_table) end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { removeBlanks = false, wrappers = "Template:播放讯息" }) return platform.main(args) end return p
摘要:
请注意,所有对Gal中文百科的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Gal中文百科:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
此页面嵌入的页面:
Module:播放讯息/doc
(
编辑
)
编辑“︁
Module
:
播放讯息
”︁
来自Gal中文百科