Module:siwa-pron: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
m_IPA = require("Module:IPA")
m_IPA = require("Module:IPA")


parent_args = frame:getParent().args
 
local params = {
[1] = { default = mw.title.getCurrentTitle().text},
}
local args = require("Module:parameters").process(parent_args, params)


accent="(\''Aingo\'') "
accent="(\''Aingo\'') "


function export.show(frame)
function export.show(frame)
local parent_args = frame:getParent().args
local params = {
[1] = { default = mw.title.getCurrentTitle().text},
}
local args = require("Module:parameters").process(parent_args, params)
IPA_key = "IPA for Siwa"
IPA_key = "IPA for Siwa"
key_link = "[[" .. IPA_key .. "|key]]"
key_link = "[[" .. IPA_key .. "|key]]"
Line 21: Line 23:
out = accent..prefix..trans
out = accent..prefix..trans
return output
return out
end
end


return export
return export

Revision as of 21:15, 23 December 2020



local export = {}
	
m_IPA = require("Module:IPA")



accent="(\''Aingo\'') "

function export.show(frame)
	local parent_args = frame:getParent().args
	local params = {
		[1] = { default = mw.title.getCurrentTitle().text},
	}
	local args = require("Module:parameters").process(parent_args, params)

	IPA_key = "IPA for Siwa"
	key_link = "[[" .. IPA_key .. "|key]]"

	local prefix = "[[w:IPA chart|IPA]]<sup>(" .. key_link .. ")</sup>:&#32;"
	
	trans = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>[" .. args .. "]</span>"

	out = accent..prefix..trans
	
	return out
end

return export