10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 86: | Line 86: | ||
end | end | ||
local form, colour | local form, colour | ||
if mw.ustring.find(temp, "^%([^%)]+%)%:") then -- for postpositions | |||
form = mw.ustring.match(temp, "^%(([^%)]+)%)%:") | |||
remove_temp("^%([^%)]+%)%:") | |||
if mw.ustring.find(temp, "^%[[^%]]+%]") then | |||
colour = mw.ustring.match(temp, "^%[([^%]]+)%]") | |||
remove_temp("^%[[^%]]+%]") | |||
end | |||
temp_append("(+ " .. glossary(form, colour) .. ") ") | |||
end | |||
if mw.ustring.find(temp, "^%:[^%(%<%[%+%/%:]+") then | if mw.ustring.find(temp, "^%:[^%(%<%[%+%/%:]+") then | ||
if language == nil then error("A language code must be specified in the first parameter for the link function to work") end | if language == nil then error("A language code must be specified in the first parameter for the link function to work") end |