Module:form of: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 70: Line 70:
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 .. ' of ' .. link .. '</span>'
return '<span class="form-of">' .. label .. ((data.post and (" ".. data.post)) or "") .. ' of ' .. link .. '</span>'
end
end


Line 78: Line 78:
label = make_labels(data.inflection, data.language)
label = make_labels(data.inflection, data.language)
else
else
label = (data.form or "alternative form") .. ((data.post and (" ".. data.post)) or "")
label = data.form or "alternative form"
end
end
return '<span class="form-of">' .. label .. '</span>'
return '<span class="form-of">' .. label .. '</span>'