打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模块:Vertical Rail Route Map Stations:修订间差异

来自RIA | Wiki
秋月白留言 | 贡献
创建页面,内容为“local p = {} function p.render(frame) local args = frame:getParent().args local lineColor = args['line-color'] or '#7f7f7f' local length = args.length or '40' local output = {} local i = 1 while true do local typeParam = args['type' .. i] if not typeParam or typeParam == '' then break end local transParam = args['trans' .. i] local zhName = args['statio…”
 
秋月白留言 | 贡献
无编辑摘要
 
(未显示同一用户的14个中间版本)
第17行: 第17行:
         end
         end
          
          
         local transParam = args['trans' .. i]
         local transParam = args['trans' .. i] or ''
         local zhName = args['station-zh-name' .. i]
         local zhName = args['station-zh-name' .. i] or ''
         local enName = args['station-en-name' .. i]
         local enName = args['station-en-name' .. i] or ''
       
        local trans = transParam or ''
       
        local vrmn = '{{VRMN|' .. typeParam .. '|' .. lineColor .. '|' .. trans .. '|length=' .. length .. '}}'
       
        table.insert(output, '{{!}}-')
        table.insert(output, '{{!}} ' .. trans)
        table.insert(output, '{{!}} ' .. vrmn)
        table.insert(output, '{{!}} <span style="font-size:1em;">' .. (zhName or '') .. '</span><br><span style="font-size:0.66em;">' .. (enName or '') .. '</span>')
          
          
        table.insert(output, '{{!}} ' .. transParam .. ' \n')
        table.insert(output, '{{!}} {{VRMN|' .. typeParam .. '|' .. lineColor .. '|' .. transParam .. '|length=' .. length .. '}} \n')
        table.insert(output, '{{!}} <span style="font-size:1em;">' .. zhName .. '</span><br><span style="font-size:0.66em;">' .. enName .. '</span>'  .. ' \n')
        table.insert(output, '{{!}}-'  .. '\n')
               
         i = i + 1
         i = i + 1
     end
     end
      
      
     return table.concat(output, '\n')
     return frame:preprocess(table.concat(output, '\n'))
end
end


return p
return p

2026年3月5日 (四) 12:02的最新版本

此模块的文档可以在模块:Vertical Rail Route Map Stations/doc创建

local p = {}

function p.render(frame)
    local args = frame:getParent().args
    
    local lineColor = args['line-color'] or '#7f7f7f'
    local length = args.length or '40'
    
    local output = {}
    local i = 1
    
    while true do
        local typeParam = args['type' .. i]
        
        if not typeParam or typeParam == '' then
            break
        end
        
        local transParam = args['trans' .. i] or ''
        local zhName = args['station-zh-name' .. i] or ''
        local enName = args['station-en-name' .. i] or ''
        
        table.insert(output, '{{!}} ' .. transParam .. ' \n')
        table.insert(output, '{{!}} {{VRMN|' .. typeParam .. '|' .. lineColor .. '|' .. transParam .. '|length=' .. length .. '}} \n')
        table.insert(output, '{{!}} <span style="font-size:1em;">' .. zhName .. '</span><br><span style="font-size:0.66em;">' .. enName .. '</span>'  .. ' \n')
        table.insert(output, '{{!}}-'  .. '\n')
                
        i = i + 1
    end
    
    return frame:preprocess(table.concat(output, '\n'))
end

return p