Module:Location Table: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Repurpose so this can work with the seperate LocTableHead/LocLine/LocTableBottom templates) |
mNo edit summary |
||
Line 10: | Line 10: | ||
function p.head(frame) |
function p.head(frame) |
||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
assert(not persistant.in_table, 'Second |
assert(not persistant.in_table, 'Second Template:LocTableHead (Missing Template:LocTableBottom?)') |
||
persistant.in_table = true |
persistant.in_table = true |
||
persistant.json = {} |
persistant.json = {} |
||
Line 21: | Line 21: | ||
function p.line(frame) |
function p.line(frame) |
||
assert(persistant.in_table, ' |
assert(persistant.in_table, 'Template:LocLine when not in a location table (Missing Template:LocTableHead?)') |
||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
local loc = args.loc |
local loc = args.loc |
||
Line 49: | Line 49: | ||
function p.bottom(frame) |
function p.bottom(frame) |
||
assert(persistant.in_table, ' |
assert(persistant.in_table, 'Template:LocTableBottom when not in a location table (Missing Template:LocTableHead?)') |
||
if persistant.version then |
if persistant.version then |