Anonymous user
Module:Hatnote: Difference between revisions
Undid revision 609825678 by SMcCandlish (talk) this change will have quite far-reaching consequences, so should be discussed first
(Adding ability to handle "inline" parameter; sandboxed this at Module:Hatnote/sandbox-inline and with Template:Hatnote-inline. I have big plans for this.) |
(Undid revision 609825678 by SMcCandlish (talk) this change will have quite far-reaching consequences, so should be discussed first) |
||
Line 184:
options.extraclasses = args.extraclasses
options.selfref = args.selfref
return p._hatnote(s, options)
end
Line 194 ⟶ 193:
local extraclasses = options.extraclasses
local selfref = options.selfref
if type(extraclasses) == 'string' then
classes[#classes + 1] = extraclasses
Line 201 ⟶ 199:
classes[#classes + 1] = 'selfref'
end
▲ return string.format(
▲ table.concat(classes, ' '),
)
▲ s
▲ '<div class="%s">%s</div>',
end
|