Module:Utilities: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) use colors from item infobox |
No edit summary |
||
| Line 264: | Line 264: | ||
end | end | ||
return result | return result | ||
end | |||
-- Helper function | |||
-- Returns true or false depending if the page exist | |||
function p.page_exists(title_text) | |||
local title_obj = mw.title.new(title_text) | |||
return title_obj and title_obj.exists or false | |||
end | end | ||
return p | return p | ||