45,647
edits
No edit summary |
No edit summary |
||
Line 83: | Line 83: | ||
local term = frame:getParent().args[1] or PAGENAME | local term = frame:getParent().args[1] or PAGENAME | ||
local unchanged = "''unchanged''" | local unchanged = "''unchanged''" | ||
local uc = match(term, "[A-Z]") | |||
local spat = {["p"] = "b", ["b"] = "v", ["t"] = "d", ["d"] = "z", ["c"] = "g", ["q"] = "g", ["g"] = "h"} | local spat = {["p"] = "b", ["b"] = "v", ["t"] = "d", ["d"] = "z", ["c"] = "g", ["q"] = "g", ["g"] = "h"} | ||
Line 99: | Line 100: | ||
end | end | ||
local function link(term) | local function link(term, uc) | ||
local links = {} | local links = {} | ||
for alt in gmatch(term, "([^%s,]+)") do | for alt in gmatch(term, "([^%s,]+)") do | ||
if uc then alt = gsub(alt, "^.", mw.ustring.upper("%1")) end | |||
alt = "[[Contionary:" .. alt .. "|" .. alt .. "]]" | alt = "[[Contionary:" .. alt .. "|" .. alt .. "]]" | ||
table.insert(links, alt) | table.insert(links, alt) | ||
Line 119: | Line 121: | ||
! Hard | ! Hard | ||
|- | |- | ||
| ]=] .. link(term) .. [=[​ | | ]=] .. link(term, uc) .. [=[​ | ||
| ]=] .. link(aw(term, "soft")) .. [=[​ | | ]=] .. link(aw(term, "soft"), uc) .. [=[​ | ||
| ]=] .. link(aw(term, "nasal")) .. [=[​ | | ]=] .. link(aw(term, "nasal"), uc) .. [=[​ | ||
|- | |- | ||
| colspan=3 style="font-size: 89%; text-align: left;" | <div class="dummy-footnote" style="font-size: 90%; margin-bottom: 0.5em; margin-left: 2em;">1. <span style="color: #002bb8;">^</span> <span class="citation">Christian Evans, (2021). <span class="plainlinks">[https://drive.google.com/file/d/1AIZ_FwLek3nKrYsbE9sZxTZmi_pwf7DR “Mutation in Modern Gallaecian”]</span>, ''Segments'' (01-07), April 2021.</span></div> | | colspan=3 style="font-size: 89%; text-align: left;" | <div class="dummy-footnote" style="font-size: 90%; margin-bottom: 0.5em; margin-left: 2em;">1. <span style="color: #002bb8;">^</span> <span class="citation">Christian Evans, (2021). <span class="plainlinks">[https://drive.google.com/file/d/1AIZ_FwLek3nKrYsbE9sZxTZmi_pwf7DR “Mutation in Modern Gallaecian”]</span>, ''Segments'' (01-07), April 2021.</span></div> |