32,512
edits
m (1 revision imported: Templates) |
m (1 revision imported: Help:Footnotes) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1:
--[[
-- This module produces a "See also: a, b, and c" link. It implements the
-- template {{see also}}.
--]]
local mHatnote = require('Module:Hatnote')
local mArguments -- lazily initialise
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local p = {}
function p.
▲ mTableTools = require('Module:TableTools')
mArguments = require('Module:Arguments')
local args = mArguments.getArgs(frame, {parentOnly = true})
Line 17:
for k, v in pairs(args) do
if type(k) == 'number' then
local
local
string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v
▲ pages[k] = page
end
end
if not pages[1] then
return mHatnote.makeWikitextError(
Line 33 ⟶ 31:
end
local options = {
selfref = args.selfref
}
return p.
end
function p.
checkType('_seeAlso', 1, args, 'table')
checkType('_seeAlso', 2, options, 'table', true)
options = options or {}
local
local text = string.format('See also: %s', list)
-- Pass options through.
local hnOptions = {
}
return mHatnote._hatnote(text, hnOptions)
end
|