Modul:inc-extension
Penampilan
- Laman modul ini kekurangan sublaman pendokumenan. Sila cipta laman pendokumenan tersebut.
- Pautan berguna: senarai sublaman • pautan • transklusi • kes ujian • kotak pasir
local export = {}
local m_links = require("Module:links")
local m_lang_inc_ash = require("Module:languages").getByCode('inc-ash')
function export.show(frame)
local args = frame:getParent().args
local lang = args[1] or 'und'
local m_lang = require("Module:languages").getByCode(lang)
local res = ""
for i, suffix in ipairs(args) do
if i ~= 1 then
local word = frame:expandTemplate{title = 'chars', args = {'pra', suffix}}
word = '-' .. word .. '-'
if i ~= 2 or not args['noplus'] then res = res .. ' + ' end
if i == 2 then if not args['notext'] then res = res .. ' [[w:Bahasa-bahasa Indo-Arya Pertengahan|Indo-Arya Pertengahan]] ' end end
res = res .. m_links.full_link({lang = m_lang_inc_ash, term = word}, "term")
if not args['nocat'] then res = res .. '[[Kategori:Perkataan bahasa ' .. m_lang:getCanonicalName() .. ' dilanjutkan daripada perkataan bahasa Indo-Arya ' .. word .. ']]' end
end
end
return res
end
return export