Modul:Available: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Baris 10:
-- end
 
link_available = link_available .. "\n| " .. code .. ":" .. mw.wikibase.label( frame.args[i] ) .. "\n| "
local code = mw.language.getContentLanguage():getCode()
--[[
if code == nil then return nil end
local entity = php.getEntity( id )
if entity == nil or entity.labels == nil then return nil end
local label = entity.labels[code]
if label == nil then return nil end
return label.value
--]]
link_available = link_available .. "\n| " .. code .. ":" .. mw.wikibase.label( frame.args[i] ) .. "\n| "
 
 
Baris 30 ⟶ 21:
-- link_available = link_available .. '<span style="color:red">' .. label .. '</span>'
-- end
 
link_available = link_available .. "[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]"
local code = mw.language.getContentLanguage():getCode()
--[[
if code == nil then return nil end
local entity = php.getEntity( id )
if entity == nil or entity.labels == nil then return nil end
local label = entity.labels[code]
if label == nil then return nil end
return label.value
--]]
link_available = link_available .. code .. ":[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]"
end
link_available = link_available .. "\n|}"