Module:Hatnote list: Difference between revisions
m
19 revisions imported from wikipedia:Module:Hatnote_list
Squareblob (talk | contribs) m (1 revision imported) |
Squareblob (talk | contribs) m (19 revisions imported from wikipedia:Module:Hatnote_list) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 46:
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
Line 171:
for k, v in pairs(forSeeTable) do
local useStr = v.use or options.otherText
local pagesStr = p.andList(v.pages, true) or mHatnote._formatLink
local forSeeStr = string.format(options.forSeeForm, useStr, pagesStr)
forSeeStr = punctuationCollapse(forSeeStr)
|