Module:Hatnote inline: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
changing function name
(Saving modified code of Module:Hatnote. Haven't read f-all about Lua yet, flying on intuition. Not sure how to reuse �p.findNamespaceId, etc., from orig. module yet.)
 
(changing function name)
Line 103:
 
--------------------------------------------------------------------------------
-- HatnoteInline
-- Hatnote-inline
--
-- Produces standard hatnote-inline text. Implements the {{hatnote-inline}} template.
--------------------------------------------------------------------------------
 
function p.hatnotehatnoteInline(frame)
local args = getArgs(frame)
local s = args[1]
Line 121:
options.extraclasses = args.extraclasses
options.selfref = args.selfref
return p._hatnote_hatnoteInline(s, options)
end
 
function p._hatnote_hatnoteInline(s, options)
checkType('_hatnote_hatnoteInline', 1, s, 'string')
checkType('_hatnote_hatnoteInline', 2, options, 'table', true)
local classes = {'hatnote-inline'}
local extraclasses = options.extraclasses
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu