Difference between revisions of "Module:Based on/sandbox"
Jump to navigation
Jump to search
blackwiki>Nardog |
blackwiki>Nardog |
||
| Line 3: | Line 3: | ||
function p._main(args) | function p._main(args) | ||
return args[2] and string.format( | return args[2] and string.format( | ||
| − | '%s <br /><div class="nowrap"><span style="vertical-align:top">by </span><div class="wrap | + | '%s <br /><div class="nowrap"><span style="vertical-align:top">by </span><div class="wrap%s" style="display:inline-block;padding-right:1.25em">%s</div></div>', |
args[1], | args[1], | ||
| + | args[3] and ' plainlist' or '', | ||
args[3] and '\n* ' .. table.concat(args, '\n* ', 2) .. '\n' | args[3] and '\n* ' .. table.concat(args, '\n* ', 2) .. '\n' | ||
or args[2] | or args[2] | ||
Revision as of 21:30, 21 January 2020
Documentation for this module may be created at Module:Based on/sandbox/doc
local p = {}
function p._main(args)
return args[2] and string.format(
'%s <br /><div class="nowrap"><span style="vertical-align:top">by </span><div class="wrap%s" style="display:inline-block;padding-right:1.25em">%s</div></div>',
args[1],
args[3] and ' plainlist' or '',
args[3] and '\n* ' .. table.concat(args, '\n* ', 2) .. '\n'
or args[2]
)
or args[1]
end
function p.main(frame)
return p._main(mw.clone(frame:getParent().args))
end
return p