编辑“︁
Module:Jctbtm
”︁
跳转到导航
跳转到搜索
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
local p = {} local types = mw.loadData("Module:Road data/RJL types") local row local columns = { -- Constants for how many columns different list types should have. default = 6, -- default exit = 7, -- default + exit number old = 8, -- default + exit number + old exit number } local function parameterParser(args) local keysParam = args.keys if not(keysParam) then return {} end local keys = mw.text.split(keysParam, ",") table.sort(keys) return keys end local function createLegend(key, html_object) local listargs = { class = 'jct-bottom-legend' } for _,v in ipairs(key) do local type = types[v] if type then table.insert( listargs, '<span class="jct-bottom-legend-color" style="background-color: ' .. type.color .. '"> </span> <span class="nowrap">' .. type.jctbtm .. '</span>' ) end end html_object:wikitext(require('Module:List').horizontal(listargs)) end function p._jctbtm(args) local root = mw.html.create() local cols = args.col or columns[args[1]] or columns.default row = root :tag('tr') :tag('td') :attr('colspan', cols) :addClass('jct-bottom notheme') :wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Module:Jctbtm/styles.css' } }) if (args.conv or 'yes') == 'yes' then row:wikitext("1.000英里=1.609公里;1.000公里=0.621英里<br>") end local key = parameterParser(args) if key[1] then createLegend(key, row) end local keyParam = args.key if keyParam then -- This is a deprecated parameter local page = mw.title.getCurrentTitle() local pagename = page.prefixedText row:wikitext(string.format("[[Category:Jctbtm temporary tracking category|# %s]]", pagename)) end row:wikitext(args.notes or args.key) -- If additional notes are provided, display them. if #row.nodes == 0 then return '|-\n|}' else return tostring(root) .. '\n|-\n|}' end end function p.jctbtm(frame) return p._jctbtm(require('Module:Arguments').getArgs(frame)) end return p
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模块
讨论
English
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息