Module:Official website/sandbox: Difference between revisions

Content deleted Content added
removed reliance on {{link language}}
removing Module:Link_language reliance
Line 1:
local makeUrl = require('Module:URL')._url
local langRender = require('Module:Link_language').lang_render
 
local p = {}
Line 72 ⟶ 71:
return e1
end
return ws1._index < ws2._index
end)
local url = quickPcall(function ()
Line 126 ⟶ 125:
if options.lang then
ret[#ret + 1] = string.format(
' <span class="languageicon">(in %s)</span>',
langRender(options.lang.label)
)
end
Line 139 ⟶ 138:
end
local categories = {}
 
-- Official website categories
if not url and not wikidataurl then
Line 167 ⟶ 166:
end
end
 
for i, lang in ipairs(prop.qualifiers.P407) do
category = string.format('[[Category:%s]]', category)