Module:Profession info: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (BlackHawk moved page Module:Sandbox/User:BlackHawk/Profession info to Module:Profession info without leaving a redirect) |
No edit summary |
||
Line 20: | Line 20: | ||
if hc(profession) and hc(level) then |
if hc(profession) and hc(level) then |
||
return pcp(profession, level) |
return pcp(profession, level) |
||
else |
|||
return edit |
|||
end |
|||
end |
|||
local function durationarg(duration) |
|||
if hc(duration) then |
|||
return duration..' seconds' |
|||
else |
else |
||
return edit |
return edit |
||
Line 47: | Line 55: | ||
:tag('td') |
:tag('td') |
||
:wikitext(exparg(args.xp)) |
:wikitext(exparg(args.xp)) |
||
:done() |
|||
:done() |
|||
:tag('tr') |
|||
:tag('th') |
|||
:wikitext('Duration') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext(durationarg(args.duration)) |
|||
:done() |
:done() |
||
:done() |
:done() |