Anonymous user
Module:Redirect-distinguish: Difference between revisions
Undid revision 747302044 by Nihiltres (talk) revert pronoun detection - this actually causes problems when it comes to misspellings of words that need distinguishing
Line 12:
function p._redirectDistinguish(args)
if not args[1] then
return mHatnote.makeWikitextError(
Line 28 ⟶ 27:
args[1] = args[1] .. '[[Category:Missing redirects]]'
end
if not args[2] then
return mHatnote.makeWikitextError(
Line 37 ⟶ 34:
)
end
args = mTableTools.compressSparseArray(args)
--Assignment by removal here makes for convenient concatenation later
local redirect = table.remove(args, 1)
local text = string.format(
'"%s" redirects here.
redirect,
mHatlist.orList(args, true)
)
|