Anonymous user
Module:Hatnote inline: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
changing to inline version with span
(starting with fresh copy of code from Module:Hatnote) |
(changing to inline version with span) |
||
Line 1:
--------------------------------------------------------------------------------
--
-- --
-- This module produces inline hatnote
-- to related articles. It implements the {{hatnote
-- and includes helper functions for other Lua hatnote modules
--------------------------------------------------------------------------------
Line 166:
--------------------------------------------------------------------------------
-- HatnoteInline
--
-- Produces standard inline hatnote text
-- Implements the {{hatnote-inline}} template.
--------------------------------------------------------------------------------
function p.
local args = getArgs(frame)
local s = args[1]
Line 178 ⟶ 179:
return p.makeWikitextError(
'no text specified',
'Template:Hatnote-inline#Errors',
args.category
)
Line 184 ⟶ 185:
options.extraclasses = args.extraclasses
options.selfref = args.selfref
return p.
end
function p.
checkType('
checkType('
local classes = {'hatnote-inline'}
local extraclasses = options.extraclasses
local selfref = options.selfref
Line 200 ⟶ 201:
end
return string.format(
'<
table.concat(classes, ' '),
s
|