Module:etymology: Difference between revisions

Jump to navigation Jump to search
m
Made it so that back-formation shows "Back-formation from" instead of "Back-formation of"
No edit summary
m (Made it so that back-formation shows "Back-formation from" instead of "Back-formation of")
Line 170: Line 170:
     if not text_data then return "" end
     if not text_data then return "" end
     if type(text_data) == "function" then return text_data(nocap_arg) end
     if type(text_data) == "function" then return text_data(nocap_arg) end
     return "[[Appendix:Glossary#" .. label .. "|" .. (nocap_arg and label or mw.ustring.gsub(label, "^%l", string.upper)) .. "]] of "
    local prep = "of"
    if label == "back-formation" then prep = "from" end
     return "[[Appendix:Glossary#" .. label .. "|" .. (nocap_arg and label or mw.ustring.gsub(label, "^%l", string.upper)) .. "]] " .. prep .. " "
end
end


Navigation menu