Module:Sandbox/User:Californ1a/T/Quests: Difference between revisions
m
no 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 yes = '✔' local no = '✘' local icon_size = 20 -- Template entrypoint function p.main(frame) return p._main(frame:getParent().args) end function p._main(args) local other = { free = yn(pt.default_to(args.free, false), false), collapsed = yn(pt.default_to(args.free, fals...") |
Californ1a (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3:
local pt = require('Module:Paramtest')
local yn = require('Module:Yesno')
local p = {}
Line 18 ⟶ 17:
local other = {
free = yn(pt.default_to(args.free, false), false),
collapsed = yn(pt.default_to(args.
right = yn(pt.default_to(args.right, false), false)
}
Line 150:
end
local div = out
if other.right then
div = mw.html.create('div')
:css({float='right'})
:node(out)
:done()
end
return div
end
|