Module:form of: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
Line 65: Line 65:
local label
local label
local link = m_links.full_link(data, "term")
local link = m_links.full_link(data, "term")
local note = data.note
if note then
if mw.ustring.find(note, "^%P") then
note = " " .. note
end
else
note = ""
end
if data.inflection then
if data.inflection then
label = make_labels(data.inflection, data.language)
label = make_labels(data.inflection, data.language)
Line 70: Line 78:
label = m_labels.make_labels(data.language, {[1] = data.form or "alternative form"}, data.nocat, true)
label = m_labels.make_labels(data.language, {[1] = data.form or "alternative form"}, data.nocat, true)
end
end
return '<span class="form-of">' .. label .. ((data.post and (" ".. data.post)) or "") .. ' of ' .. link .. '</span>'
return '<span class="form-of">' .. label .. ((data.post and (" ".. data.post)) or "") .. ' of ' .. link .. note .. '</span>'
end
end


Navigation menu