မဝ်ဂျူ:IPA/templates: အရာမတၞဟ်ခြာ အကြာ မူတၞဟ်ဂမၠိုင်
Content deleted Content added
No edit summary |
No edit summary ဒစင်: မကလေၚ်ပလေဝ်ဒါန်လဝ် |
||
လာင် ၂-
local m_IPA = require("Module:IPA")
local m_str_utils = require("Module:string utilities")
local parse_utilities_module = "Module:parse utilities"
local references_module = "Module:references"
local
local function track(page)
return true
local function split_on_comma(term)
return nil
if term:find(",%s") then
return require(parse_utilities_module).split_on_comma(term)
else
return rsplit(term, ",")
end
-- Used for [[Template:IPA]].
Line ၃၂ ⟶ ၅၀:
local args = require("Module:parameters").process(parent_args, params)
local lang = args[compat and "lang" or 1]
▲ require("Module:debug").track("IPA/grc")
▲ end
local items = {}
Line ၄၆ ⟶ ၅၇:
local refs = args["ref"][i]
if refs then
refs = require(
end
local qual = args["qual"][i]
if qual then
-- FIXME: Convert such uses to qN=.
track("qual")
end
if not pron then
-- FIXME: Eliminate such uses, then make them an error through disallow_holes = true.
track("empty-pron")
if refs or qual then
local param = i == 1 and "" or "" .. i
Line ၅၆ ⟶ ၇၃:
end
else
▲ if lang then
▲ require("Module:IPA/tracking").run_tracking(pron, lang)
table.insert(items, {
▲ end
pron = pron,
q = args.q[i] and {args.q[i]} or nil,
qq = args.qq[i] and {args.qq[i]} or nil,
▲ end
a = split_on_comma(args.a[i]),
aa = split_on_comma(args.aa[i]),
-- FIXME, remove this
qualifiers = qual and {qual} or nil,
▲ })
end
end
return m_IPA.format_IPA_full
lang = lang,
items = items,
sort_key = args.sort,
no_count = args.nocount,
q = args.q.default and {args.q.default} or nil,
qq = args.qq.default and {args.qq.default} or nil,
a = split_on_comma(args.a.default),
aa = split_on_comma(args.aa.default),
▲ }
end
Line ၇၆ ⟶ ၁၀၇:
-- Came before 'ref' but too obscure
["n"] = {list = true, allow_holes = true, alias_of = "ref"},
["q"] = {list = true, allow_holes = true, require_index = true},
["qq"] = {list = true, allow_holes = true, require_index = true},
["qual"] = {list = true, allow_holes = true},
-- FIXME, remove this.
Line ၈၃ ⟶ ၁၁၆:
local args = require("Module:parameters").process(frame.getParent and frame:getParent().args or frame, params)
-- [[Special:WhatLinksHere/
if args.lang then
require("Module:debug").track("IPAchar/lang")
Line ၉၆ ⟶ ၁၂၉:
refs = require("Module:references").parse_references(refs)
end
local
local qq = args.qq[i]
if pron or refs or qual then
table.insert(items, {pron = pron, refs = refs,
end
end
Line ၁၇၃ ⟶ ၂၀၇:
local args = require("Module:parameters").process(frame:getParent().args, params)
-- [[Special:WhatLinksHere/
if args.lang then
require("Module:debug").track("X2IPAchar/lang")
|