Module:Sandbox/User:Artoire/1: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 23:
assert(persistant.in_table, '{{LocLine}} when not in a location table (Missing {{LocTableHead}}?)')
local args = frame.args
local loc = args.loc
local qty = args.quantity
qty = tonumber(qty or '')
Line 32 ⟶ 33:
persistant.counter = persistant.counter + 1
local id = 'LOC_' .. persistant.counter
 
tbl:tag('tr')
:attr{ id = id }
:tag('td'):wikitext(loc_link):done()
:tag('td'):wikitext(parse.episode_func(episode)):done()
:tag('td'):wikitext(qty or edit):done()
:done()
 
mw.smw.subobject({
Line 45 ⟶ 39:
['Location quantity'] = qty or 'Unknown'
}, id)
 
return mw.html.create('tr')
:attr{ id = id }
:tag('td'):wikitext(loc_link):done()
:tag('td'):wikitext(parse.episode_func(episode)):done()
:tag('td'):wikitext(qty or edit):done()
:done()
end
 
697

edits