Module:Sort title and Module:Sort title/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Ymblanter
m Changed protection level for "Module:Sort title": High-risk Lua module: request at WP:RFPP ([Edit=Require template editor access] (indefinite))
 
imported>Lemondoge
Synced; simplified
 
Line 17: Line 17:
local function isFirstWordAnArticle(word)
local function isFirstWordAnArticle(word)
word = string.lower(word)
word = string.lower(word)
if (word == "a" or word == "an" or word == "the") then
return (word == "a" or word == "an" or word == "the")
return true
else
return false
end
end
end