Open main menu

Changes

Module:Hatnote list

13 bytes added, 15:02, 16 June 2020
switch back to Module:Hatnote instead of Module:Hatnote/sandbox
local separator = options.separator
--searches display text only
local function searchDisp(t, f)
return string.find(string.sub(t, (string.find(t, '|') or 0) + 1), f)
end
for k, v in pairs(forSeeTable) do
local useStr = v.use or options.otherText
local pagesStr = p.andList(v.pages, true) or mHatnote._formatLink({link = mHatnote.disambiguate(options.title))}
local forSeeStr = string.format(options.forSeeForm, useStr, pagesStr)
forSeeStr = punctuationCollapse(forSeeStr)