66 515
contributi
m (Correzione) |
m (Correzione) |
||
Riga 99: | Riga 99: | ||
} | } | ||
for _, SiteLink in pairs(SiteLinks) do | for _, SiteLink in pairs(SiteLinks) do | ||
local TitleLabel | local TitleLabel | ||
Riga 108: | Riga 106: | ||
if string.find(string.lower(TitleLabel), 'datatrek') then | if string.find(string.lower(TitleLabel), 'datatrek') then | ||
-- Un link a DataTrek deve portare alla Entità | -- Un link a DataTrek deve portare alla Entità | ||
-- Questo non dovrebbe mai esistere lo aggiungo a mano alla fine del ciclo | |||
AllLinks[#AllLinks + 1] = "* [[:" .. SiteLink['site'] .. ":Item:" .. mw.wikibase.getEntityIdForCurrentPage() .. "|''" .. SiteLink['title'] .. "'']], Pagina della entità su " .. TitleLabel | AllLinks[#AllLinks + 1] = "* [[:" .. SiteLink['site'] .. ":Item:" .. mw.wikibase.getEntityIdForCurrentPage() .. "|''" .. SiteLink['title'] .. "'']], Pagina della entità su " .. TitleLabel | ||
elseif string.find(string.lower(TitleLabel), 'wikitrek') then | elseif string.find(string.lower(TitleLabel), 'wikitrek') then | ||
Riga 115: | Riga 114: | ||
end | end | ||
end | end | ||
-- Interlink a DataTrek | |||
--AllLinks[#AllLinks + 1] = "* [[" .. 'datatrek' .. ":Item:" .. mw.wikibase.getEntityIdForCurrentPage() .. "|''" .. SiteLink['title'] .. "'']], Pagina della entità su " .. TitleLabel | |||
AllLinks[#AllLinks + 1] = "* [[" .. 'datatrek' .. ":Item:" .. mw.wikibase.getEntityIdForCurrentPage() .. "'']], Pagina della entità su " .. TitleLabel | |||
return table.concat(AllLinks, string.char(10)) | return table.concat(AllLinks, string.char(10)) |