Editing Module:Dict D'ni
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
function dnifont2ots(str) | |||
local output = mw.text.trim(str) | local output = mw.text.trim(str) | ||
Line 35: | Line 35: | ||
end | end | ||
function dnifont2nts(str) | |||
local output = mw.text.trim(str) | local output = mw.text.trim(str) | ||
Line 43: | Line 43: | ||
["O"] = "ó", | ["O"] = "ó", | ||
["c"] = "ç", | ["c"] = "ç", | ||
["E"] = " | ["E"] = "i", | ||
["A"] = "é", | ["A"] = "é", | ||
["U"] = "ú", | ["U"] = "ú", | ||
Line 74: | Line 74: | ||
local output = '' | local output = '' | ||
local sort = dnifont2ots(mw.ustring.sub(args['dnifont'],1,1)) | local sort = dnifont2ots(mw.ustring.sub(args['dnifont'],1,1)) | ||
output = output..' | output = output..'==D\'ni==\n' | ||
output = output..'{{huge|<d\'ni>'..args['dnifont']..'</d\'ni>}}\n' | |||
output = output..'{{huge|< | output = output..'===Romanization===\n' | ||
output = output..' | output = output..'* [[Dnifont]]: '..args['dnifont']..'\n' | ||
output = output..'* [[Dnifont]] | output = output..'* [[OTS]]: '..dnifont2ots(args['dnifont'])..'\n' | ||
output = output..'* [[OTS]] | output = output..'* [[NTS]]: '..dnifont2nts(args['dnifont'])..' ' | ||
output = output..'* [[NTS]] | output = output..'[[Category:D\'ni words beginning with '..sort..']]\n' | ||
output = output..'[[Category:D\'ni words beginning with '..sort..']]' | |||
output = output..'[[Category:D\'ni words|'..sort..']]' | output = output..'[[Category:D\'ni words|'..sort..']]' | ||
return output | return output | ||
Line 174: | Line 167: | ||
return frame:preprocess(_dni_entry()) | return frame:preprocess(_dni_entry()) | ||
end | end | ||
Line 237: | Line 181: | ||
return dnifont2ots(args[1]) | return dnifont2ots(args[1]) | ||
end | end | ||
return p | return p |