Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
local PAGENAME = mw.title.getCurrentTitle().text | local PAGENAME = mw.title.getCurrentTitle().text | ||
local NAMESPACE = mw.title.getCurrentTitle().nsText | |||
local HOOK = u(0x0309) -- COMBINING HOOK ABOVE ̉ | local HOOK = u(0x0309) -- COMBINING HOOK ABOVE ̉ | ||
| Line 74: | Line 75: | ||
local word = NAMESPACE == "Template" and "sivi" or parent_args.word or PAGENAME | local word = NAMESPACE == "Template" and "sivi" or parent_args.word or PAGENAME | ||
local args = {} | local args = {} | ||
local sv = parent_args[2] or " | local sv = NAMESPACE == "Template" and "i" or parent_args[2] or error("Parameter 2 must be the word's stressed vowel") | ||
local decl_type = frame.args.decl or detect_decl(sv) | local decl_type = frame.args.decl or detect_decl(sv) | ||