Difference between revisions of "Module:HiddenUnicode"

From Northumberland Climbing
Jump to navigation Jump to search
newcastle>Traveler100
m (Protected "Module:HiddenUnicode": used in all listings on all pages ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 06:17, 2 August 2020

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;