Module:labels: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 325: Line 325:
if glossary then
if glossary then
local glossary_entry = type(glossary) == "string" and glossary or label
local glossary_entry = type(glossary) == "string" and glossary or label
formatted_label = "[[Appendix:Glossary#" .. glossary_entry .. "|" .. display .. "]]"
formatted_label = "[[wikt:Appendix:Glossary#" .. glossary_entry .. "|" .. display .. "]]"
elseif Wiktionary then
elseif Wiktionary then
formatted_label = "[[" .. Wiktionary .. "|" .. display .. "]]"
formatted_label = "[[wikt:" .. Wiktionary .. "|" .. display .. "]]"
elseif Wikipedia then
elseif Wikipedia then
local Wikipedia_entry = type(Wikipedia) == "string" and Wikipedia or label
local Wikipedia_entry = type(Wikipedia) == "string" and Wikipedia or label