Konten dihapus Konten ditambahkan
|
|
(19 revisi perantara oleh pengguna yang sama tidak ditampilkan) |
local label = ""
for i,v in ipairs(frame.args) do
-- if ( mw.wikibase.label( frame.args[i] ) ) then
-- label = mw.wikibase.label( frame.args[i] )
-- else
-- label = "[[w:d:" .. trim(frame.args[i]) .. "|" .. trim(frame.args[i]) .. "]]"
-- end
-- link_available = link_available .. '<span"\n| style=" color:red">' .. label .. '</span>'"\n| "▼
link_availableif = link_available .. "\n| " ..( mw.wikibase.labelsitelink( frame.args[i] ) .. "\n|) "then
-- link_available = link_available .. "[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]" ▼
-- link_available = link_available .. "\n|'<span style="color:red">' .. mw.wikibase.getEntity().idlabel .. "\n| "'</span>'
link_available = link_available .. code .. " :[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]\n|-\n" ▼
-- if ( mw.wikibase.sitelink( frame.args[i] ) ) then
▲-- link_available = link_available .. "[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]"
▲-- link_available = link_available .. '<span style="color:red">' .. label .. '</span>'
local code = mw.language.getContentLanguage():getCode()
--[[
if code == nil then return nil end
--]]
local entity = mw_interface.getEntity( frame.args[i] )
--[[
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|}"
|