▶️
Planeshift.
该module的文档可以在Template:Tooltip找到。
You may be forwarded to another wiki language, in case a translation is not available.
local libraryUtil = require('libraryUtil')
local getArgs = require('Module:Arguments').main
local p = {}
function p.main()
local args = getArgs()
return p._main(args)
end
function p._main(args)
libraryUtil.checkType('_main', 1, args, 'table')
assert(args[1] and args[2], '缺少参数')
local output = mw.html.create('span'):attr('id', 'tooltip')
:attr('title', args[2])
:wikitext(args[1])
if args['plain'] then
return output
else
return output:css('cursor', 'help')
:css('border-bottom', '1px dotted')
end
end
return p