Module:Hatnote inline/sandbox
Appearance
local mHatnote = require('Module:Hatnote/sandbox')
local mArguments = require('Module:Arguments')
local yesno = require('Module:Yesno')
local p = {}
function p.hatnoteInline (frame)
local args = mArguments.getArgs(frame)
local s = args[1]
if not s then
return p.makeWikitextError(
'no text specified',
'Template:Hatnote#Errors',
args.category
)
end
local options = {
extraclasses = args.extraclasses,
selfref = args.selfref,
inline = 0
}
if args.inline == nil or yesno(args.inline, true) then
options.inline = 1
end
return mHatnote._hatnote(s, options)
end
p.hatnote = p.hatnoteInline --alias
return p