Module:Redirect-distinguish: Difference between revisions
Jump to navigation
Jump to search
m
Merging the sentences is more likely to be interpreted as referring to the redirect term than the subject of the article. Using separate sentences, especially without a pronoun hence doesn't make sense!
(Created page with "local mHatnote = require('Module:Hatnote') local mHatlist = require('Module:Hatnote list') local mArguments --initialize lazily local mTableTools = require('Module:TableTools') local p = {} function p.redirectDistinguish (frame) mArguments = require('Module:Arguments') local args = mArguments.getArgs(frame) return p._redirectDistinguish(args) end function p._redirectDistinguish(args) if not args[1] then return mHatnote.makeWikitextError( 'no redirect supplied'...") |
m (Merging the sentences is more likely to be interpreted as referring to the redirect term than the subject of the article. Using separate sentences, especially without a pronoun hence doesn't make sense!) |
||
| Line 49: | Line 49: | ||
local redirect = table.remove(args, 1) | local redirect = table.remove(args, 1) | ||
local text = string.format( | local text = string.format( | ||
'"%s" redirects here | '"%s" redirects here and is not to be confused with %s.', | ||
redirect, | redirect, | ||
mHatlist.orList(args, true) | mHatlist.orList(args, true) | ||