Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
restore
adj
Line 205:
local stop_noun = data[v]['header stop noun'] or i18n[lang]['stop_noun']
mw.logObject(data[v])
mw.logObject(args[v])
if data[v]['system style'] then
mainHeader = data[v]['system style']
else
'\n!',mainHeader style['header midcell'], (data[v]['system style'] and data[v]['system style'] or= table.concat({(data[v]['system icon'] and data[v]['system icon'] .. ' ' or ''), (data[v]['system title'] or ('[['.. args[v]['system'] ..']]'))})),
end
table.insert(wikitable, table.concat({'\n|-',
'\n!', style['header cell'], i18n[lang]['preceding'](stop_noun),
'\n!', style['header midcell'], mainHeader,
'\n!', style['header midcell'], (data[v]['system style'] and data[v]['system style'] or table.concat({(data[v]['system icon'] and data[v]['system icon'] .. ' ' or ''), (data[v]['system title'] or ('[['.. args[v]['system'] ..']]'))})),
'\n!', style['header cell'], i18n[lang]['following'](stop_noun)
}))