Module:HiddenUnicode

From Northumberland Climbing
Revision as of 02:10, 9 June 2018 by newcastle>Traveler100 (Protected "Module:HiddenUnicode": used in all listings on all pages ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:HiddenUnicode/doc

local i = {}
 
function i.HiddenUnicode(frame)
    local txt = frame.args[1] or '';
    local catUnicodeIssue = '';
    -- Note the quote ("") below is not empty and actually contains a hidden unicode character.
    if mw.ustring.match(txt,"‎") ~= nil then
        catUnicodeIssue = '[[' .. 'Category:Listing with hidden unicode character]]'
    end
    return catUnicodeIssue;
end
 
return i;