Module:Lang: Difference between revisions

Jump to navigation Jump to search
Added additional check for localization key ending in "postvalue_label"
fix for localization tags
Line 225: Line 225:
         end
         end
         return fallback .. fallback_tooltip
         return fallback .. fallback_tooltip
    end
   
    -- Always retrieve the last parameter if string contains "|"
    if type(label) == "string" and label:find("|") then
        local parts = mw.text.split(label, "|")
        label = parts[#parts]
     end
     end