Module:labels: Difference between revisions

No edit summary
No edit summary
Line 382: Line 382:
if glossary then
if glossary then
local glossary_entry = glossary == true and label or glossary
local glossary_entry = glossary == true and label or glossary
formatted_label = "[[Appendix:Glossary#" .. glossary_entry .. "|" .. display .. "]]"
formatted_label = "[[wikt:Appendix:Glossary#" .. glossary_entry .. "|" .. display .. "]]"
elseif Wiktionary then
elseif Wiktionary then
local Wiktionary_entry = Wiktionary == true and label or Wiktionary
local Wiktionary_entry = Wiktionary == true and label or Wiktionary
if Wiktionary == display then
if Wiktionary == display then
formatted_label = "[[" .. display .. "]]"
formatted_label = "[[wikt:" .. display .. "]]"
else
else
formatted_label = "[[" .. Wiktionary_entry .. "|" .. display .. "]]"
formatted_label = "[[wikt:" .. Wiktionary_entry .. "|" .. display .. "]]"
end
end
elseif Wikipedia then
elseif Wikipedia then