Module:Profession info: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local editButton = require('Module:Edit button')
local editButton = require('Module:Edit button')
local hc = require('Module:Param Parse').has_content
local hc = require('Module:Param Parse').has_content
local qty = require('Module:Quantity box')._main

local p = {}


function p.main(frame)
function p.main(frame)
local args = frame:getParent().args
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')
local out = mw.html.create('table')
Line 28: Line 36:
:done()
:done()
:tag('td')
:tag('td')
:wikitext(hc(args.exp) and (args.exp) or editButton("'''?''' (edit)"))
:wikitext(exparg(args.exp))
:done()
:done()
:done()
:done()