Module:Location Table: Difference between revisions

m
no edit summary
(Repurpose so this can work with the seperate LocTableHead/LocLine/LocTableBottom templates)
mNo edit summary
Line 10:
function p.head(frame)
local args = frame:getParent().args
assert(not persistant.in_table, 'Second {{Template:LocTableHead}} (Missing {{Template:LocTableBottom}}?)')
persistant.in_table = true
persistant.json = {}
Line 21:
 
function p.line(frame)
assert(persistant.in_table, '{{Template:LocLine}} when not in a location table (Missing {{Template:LocTableHead}}?)')
local args = frame:getParent().args
local loc = args.loc
Line 49:
 
function p.bottom(frame)
assert(persistant.in_table, '{{Template:LocTableBottom}} when not in a location table (Missing {{Template:LocTableHead}}?)')
 
if persistant.version then
1,509

edits