Module:siwa-pron: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
} | } | ||
local args = m_par.process(parent_args, params) | local args = m_par.process(parent_args, params) | ||
accent="(\''Aingo\'') " | accent="(\''Aingo\'') " | ||
Line 22: | Line 18: | ||
local prefix = "[[w:IPA chart|IPA]]<sup>(" .. key_link .. ")</sup>: " | local prefix = "[[w:IPA chart|IPA]]<sup>(" .. key_link .. ")</sup>: " | ||
trans = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>[" .. | trans = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>[" .. args .. "]</span>" | ||
output = accent..prefix..trans | output = accent..prefix..trans |
Revision as of 21:03, 23 December 2020
- The following documentation is located at Module:siwa-pron/doc.[edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
m_IPA = require("Module:IPA")
m_par = require("Module:parameters")
local parent_args = frame:getParent().args
local params = {
[1] = { default = mw.title.getCurrentTitle().text},
}
local args = m_par.process(parent_args, params)
accent="(\''Aingo\'') "
function export.show(frame)
IPA_key = "IPA for Siwa"
key_link = "[[" .. IPA_key .. "|key]]"
local prefix = "[[w:IPA chart|IPA]]<sup>(" .. key_link .. ")</sup>: "
trans = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>[" .. args .. "]</span>"
output = accent..prefix..trans
return output
end
return export