Module:Profession info: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
local p = {}
local editButton = require('Module:Edit button')
local hc = require('Module:Param Parse').has_content
local qty = require('Module:Quantity box')._main
 
local p = {}
 
function p.main(frame)
local args = frame:getParent().args
local function exparg(xp)
if xp ~= '' then
return qty(xp)
else
return qty(0) .. edit
end
end
local out = mw.html.create('table')
Line 28 ⟶ 36:
:done()
:tag('td')
:wikitext(hcexparg(args.exp) and (args.exp) or editButton("'''?''' (edit)"))
:done()
:done()