Module:RaritySort: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:
     end
     end


    local raw = rarity
     rarity = mw.text.trim(rarity)
     rarity = mw.text.trim(rarity)
     local r = mw.ustring.lower(rarity)
     local r = string.lower(rarity)
 
    -- Debug: remove these after testing
    if mw.title.getCurrentTitle().text == "Sandbox" then
        return "RAW: " .. tostring(raw) .. " | TRIMMED: " .. rarity
    end


     if r == "always" then
     if r == "always" then