Module:pages: Difference between revisions

m 1 revision imported
No edit summary
 
(One intermediate revision by the same user not shown)
Line 246: Line 246:
end
end
local ns = title.namespace
local ns = title.namespace
-- Main namespace.
-- Contionary namespace.
if ns == 0 then
if ns == 120 then
return "entry"
return "entry"
-- Wiktionary:
elseif ns == 4 then
return find_sandbox(title.text) and "sandbox" or "project page"
-- Template:
-- Template:
elseif ns == 10 then
elseif ns == 10 then
Line 286: Line 283:
local ns = title.namespace
local ns = title.namespace
-- (main), Appendix, Thesaurus, Citations, Reconstruction.
-- (main), Appendix, Thesaurus, Citations, Reconstruction.
return (ns == 0 or ns == 100 or ns == 110 or ns == 114 or ns == 118) and
return (ns == 0 or ns == 120) and
title.contentModel == "wikitext"
title.contentModel == "wikitext"
end
end