Hello, you have come here looking for the meaning of the word
Module:User:Wyang/link. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:User:Wyang/link, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:User:Wyang/link in singular and plural. Everything you need to know about the word
Module:User:Wyang/link you have here. The definition of the word
Module:User:Wyang/link will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:User:Wyang/link, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
function export.link(frame)
args = args or frame:getParent().args
pagename = pagename or mw.title.getCurrentTitle().text
forced_tr = ''
if args and mw.ustring.match(args, '') then
gloss = args or ''
tr = args or ''
text = args .. '/' .. args
else
text = args or ''
if not args or args == '' then
if args and (mw.ustring.match(args, '') or mw.ustring.match(args, 'h?y???g?')) then
tr = args or ''
gloss = args or ''
else
tr = ''
gloss = args or ''
end
else
tr = args or ''
gloss = args
end
end
if args and args ~= '' then
forced_tr = args
tr = args
gloss = gloss or args or ''
end
if text ~= '' and not text:match(']') then
word = mw.text.split(text,"/",true)
if word and mw.title.new(word).exists and text ~= pagename then
content = mw.title.new(word):getContent()
content = mw.ustring.gsub(content, ",()", ";%1")
template = mw.ustring.match(content, "{{zh%-pron*|m=(+)")
if template and template ~= "" then
if cmn_pron == nil then
cmn_pron = require("Module:cmn-pron")
end
new_tr = cmn_pron.str_analysis(template, 'link')
end
if new_tr == tr then
tr = ''
end
end
else
word = { text }
end
return '{{zh-l|' .. table.concat(word,"/") .. ((tr and tr ~= '') and '|' .. (forced_tr ~= '' and 'tr=' or '') .. tr or '') .. ((gloss and gloss ~= '') and '|' .. gloss or '') .. '}}'
end
return export