Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 15: Line 15:
local UNRELEASED = u(0x031A) -- COMBINING LEFT ANGLE ABOVE. ̚
local UNRELEASED = u(0x031A) -- COMBINING LEFT ANGLE ABOVE. ̚
local vowels = "[iɪyeøɛœæauɔ̃ɑʊ]"
local vowels = "[iɪyeøɛœæauɔ̃ɑʊ]"
local pagename = mw.title.getCurrentTitle().title
local pagename = mw.title.getCurrentTitle().text


local stressedvowels = {
local stressedvowels = {
Line 58: Line 58:
local params = {
local params = {
[1] = { required = true },
[1] = { required = true },
[2] = { default = mw.title.getCurrentTitle().title },
[2] = { default = pagename },
}
}
Line 66: Line 66:
local word = args[2]
local word = args[2]
local prefix = sub(mw.title.getCurrentTitle().title, 1, -(#word+1))
local prefix = sub(pagename, 1, -(#word+1))
return prefix
return prefix