Modul:Available
Script error: Lua error at line 10: nesting of [[...]] is deprecated near '['.
p = {}
p.link = function ( frame )
local link_available = "{| "
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:" .. frame.args[i] .. "|" .. frame.args[i] .. "]]"
end
--]]
link_available = link_available .. "\n| " .. mw.wikibase.label( frame.args[i] ) .. "\n| "
--[[
if ( mw.wikibase.sitelink( frame.args[i] ) ) then
link_available = link_available .. "[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]"
else
link_available = link_available .. '<span style="color:red">' .. label .. '</span>'
end
--]]
link_available = link_available .. "[[" .. mw.wikibase.sitelink( frame.args[i] ) .. "]]"
-- link_available = link_available .. "\n|-\n"
end
link_available = link_available .. "\n|}"
return link_available
end
return p