2,875
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
-- Produces standard hatnote text -- | -- Produces standard hatnote text -- | ||
function p.hatnote(frame) | function p.hatnote(frame) | ||
local args = frame:getParent().args | local args = frame.args or frame:getParent().args | ||
local s = args | local s = args[1] | ||
if not s then | if not s then | ||
return '<strong class="error">No text specified for hatnote</strong>' | return '<strong class="error">No text specified for hatnote</strong>' |
edits