Khác biệt giữa bản sửa đổi của “Mô đun:form of”

Nội dung được xóa Nội dung được thêm vào
Không có tóm lược sửa đổi
ChemPro (thảo luận | đóng góp)
cập nhật
Thẻ: Đã bị lùi lại
Dòng 77:
* The DISPLAY FORM of a tag is the way it's displayed to the user. Usually the displayed text of the tag is the same as
its canonical form, and it normally functions as a link to a glossary entry explaining the tag. Usually the link is
to an entry in [[Phụ lụcAppendix:Từ điển thuật ngữGlossary]], but sometimes the tag is linked to an individual dictionary entry or to a
Wikipedia entry. Occasionally, the display text differs from the canonical form of the tag. An example is the tag
'comparative case', which has the display text read as simply 'comparative'. Normally, tags referring to cases don't
Dòng 221:
table.insert(parts, text)
end
ins("''Dạng'' <span class='" .. text_classes .. "'>")
ins(data.text)
if data.text ~= "" and data.lemmas then
Dòng 756:
display = "[[w:" .. normtag .. "|" .. display .. "]]"
elseif glossary == export.APPENDIX then
display = "[[Phụ lụcAppendix:Từ điển thuật ngữGlossary#" .. mw.uri.anchorEncode(normtag) .. "|" .. display .. "]]"
elseif type(glossary) ~= "string" then
error(("Internal error: Wrong type %s for glossary value %s for tag %s"):format(
Dòng 772:
end
if not link then
display = "[[Phụ lụcAppendix:Từ điển thuật ngữGlossary#" .. mw.uri.anchorEncode(glossary) .. "|" .. display .. "]]"
end
end
Dòng 1.261:
end
 
local of_text = data.lemmas and " củaof" or ""
local formatted_text
if #inflections == 1 then
Dòng 1.272:
else
format_data.text = format_labels(overall_labels, data.notext) .. (data.pretext or "") .. (data.notext and "" or
((data.capfirst and "Biến tốInflection" or "biến tốinflection") .. of_text))
format_data.posttext = (data.posttext or "") .. ":"
local link = export.format_form_of(format_data)