Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 8:
if not service then return '' end
return '<div class="desc">' .. (dir == 'left' and '←' or '→') .. ' ' .. service .. ' toward ' .. dest .. '</div>'
end
Line 22:
local function displayFloorPart(floorPart, floorNum, partNum)
local out = ''
if floorPart.name then
elseif floorPart.platform then▼
out = out .. '<div style="grid-column: span 2;">' .. floorPart.platform .. '</div>'▼
local prefix = floorNum .. '_' .. partNum .. '_'▼
out = out .. 'Invalid floor part! Must have either <code>' .. prefix .. 'name</code> or <code>' .. prefix .. 'platform</code>.'▼
end
▲
end
▲
end
local function displayFloor(stationFloor, num)
local out = '<div class="floor" style="grid-row: span ' .. stationFloor.count .. ';">' .. stationFloor.letter .. '</div>'
out = out .. '<div>'▼
for i = 1, stationFloor.max do
Line 47 ⟶ 44:
end
return out
end
local function createArgTable()
return {
max = 0,
count = 0
}
end
Line 56 ⟶ 60:
if not tbl[num] then
tbl[num] =
tbl.count = tbl.count + 1
end
end
Line 77 ⟶ 82:
local function processArgs(args)
local out =
for i, v in pairs(args) do
Line 84 ⟶ 89:
if not out[level] then
out[level] =
end
Line 103 ⟶ 108:
function p.main(frame)
local sortedArgs = processArgs(frame.args)
local out = frame:extensionTag{
name = 'templatestyles',
args = { src = 'User:BrandonXLF/styles.css' }
}
▲ out = out .. '<div class="station-layout">'
for i = 1, sortedArgs.max do
|