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 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 |
|||
⚫ | |||
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( |
:wikitext(exparg(args.exp)) |
||
:done() |
:done() |
||
:done() |
:done() |