2,788
edits
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
function export.make_example(language, sentence, gloss, inline, nocat) | function export.make_example(language, sentence, gloss, inline, nocat) | ||
local translation = gloss and (inline and (" | local translation = gloss and (inline and (" ― " .. gloss) or ("<dl><dd>" .. gloss .. "</dd></dl>")) or "" | ||
local cats = nocat and "" or ("[[Category:" .. language.name .. " terms with usage examples]]") | local cats = nocat and "" or ("[[Category:" .. language.name .. " terms with usage examples]]") | ||
return '<div class="h-example">' .. m_formatting.wrap_face(sentence, language, "example") .. translation .. '</div>' .. cats | return '<div class="h-example">' .. m_formatting.wrap_face(sentence, language, "example") .. translation .. '</div>' .. cats |