10,731
edits
TheNightAvl (talk | contribs) (Undo revision 21868 by TheNightAvl (talk)) Tag: Undo |
TheNightAvl (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
local m_languages = require("Module:languages") | local m_languages = require("Module:languages") | ||
local m_ipa = require("Module:rad-IPA") | local m_ipa = require("Module:rad-IPA") | ||
local irregular_icon = "†" | |||
local C = "bcdðfghħjĵkķlmnņpqrsștvwxzþ°" | local C = "bcdðfghħjĵkķlmnņpqrsștvwxzþ°" | ||
Line 170: | Line 172: | ||
local irregular = args["irr"] or args["irregular"] or false | local irregular = args["irr"] or args["irregular"] or false | ||
local irregular_title = "" | local irregular_title = "" | ||
if irregular then irregular_title = " (''irregular'')" end | if irregular then irregular_title = " (''irregular''" .. irregular_icon .. ")" end | ||
if args[1] and args[2] ~= "adj" and args[2] ~= "adv" then error("Second parameter must be adj or adv") end | if args[1] and args[2] ~= "adj" and args[2] ~= "adv" then error("Second parameter must be adj or adv") end | ||
Line 193: | Line 195: | ||
return rad_link_IPA(lemma, nil, disable_ipa, pre) | return rad_link_IPA(lemma, nil, disable_ipa, pre) | ||
elseif type(stem) == "string" then | elseif type(stem) == "string" then | ||
if mw.ustring.find(stem, "%*$") then | |||
end | |||
return rad_link_IPA(stem .. ending, nil, disable_ipa) | return rad_link_IPA(stem .. ending, nil, disable_ipa) | ||
elseif type(stem) == "table" then | elseif type(stem) == "table" then | ||
Line 268: | Line 273: | ||
local irregular = args["irr"] or args["irregular"] or false | local irregular = args["irr"] or args["irregular"] or false | ||
local irregular_title = "" | local irregular_title = "" | ||
if irregular then irregular_title = ", ''irregular''" end | if irregular then irregular_title = ", ''irregular''" .. irregular_icon end | ||
local adj = args['adj'] | local adj = args['adj'] | ||
Line 839: | Line 844: | ||
local irregular = args["irr"] or args["irregular"] or false | local irregular = args["irr"] or args["irregular"] or false | ||
local irregular_title = "" | local irregular_title = "" | ||
if irregular then irregular_title = ", ''irregular''" end | if irregular then irregular_title = ", ''irregular''" .. irregular_icon end | ||
if args[3] == nil then -- sense preset conjugation | if args[3] == nil then -- sense preset conjugation |