Module:Sandbox/User:Californ1a/T/Professions: Difference between revisions
Module:Sandbox/User:Californ1a/T/Professions (edit)
Revision as of 09:54, 1 January 2025
, 1 Januaryno edit summary
Californ1a (talk | contribs) (Created page with "require('strict') require('Module:Mw.html extension') local pt = require('Module:Paramtest') local yn = require('Module:Yesno') local lang = mw.language.getContentLanguage() local p = {} local icon_size = 20 local ep_icon_size = 16 -- List episodes with their professions local episodes = { hopeport = {"guard", "chef", "fisher", "forager", "alchemist"}, hopeforest = {"scout", "gatherer", "woodcutter", "carpenter"}, mine = {"minefighter", "bonewright", "miner", "black...") |
Californ1a (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 92:
vertical = yn(pt.default_to(args.vertical, true), true),
free = yn(pt.default_to(args.free, false), false),
date = pt.default_to(args.date, ''),
right = yn(pt.default_to(args.right, false), false)
}
Line 206 ⟶ 207:
:tag('br'):done()
:IF(other.date == 'now')
:wikitext(lang:formatDate('j F Y
:ELSE()
:wikitext(other.date)
Line 215 ⟶ 216:
:END()
local div = out
if other.right then
div = mw.html.create('div')
:css({float='right'})
:node(out)
:done()
end
return div
end
|