67 692
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 1: | Riga 1: | ||
--- This module represent the package containing basic functions to access data from the WikiBase instance DataTrek | --- This module represent the package containing basic functions to access data from the WikiBase instance DataTrek | ||
-- @module p | -- @module p | ||
-- @author Luca Mauri [[Utente:Lucamauri]] | |||
-- Add other authors below | |||
-- Keyword: wikitrek | -- Keyword: wikitrek | ||
local p = {} | local p = {} | ||
Riga 413: | Riga 415: | ||
-- @return A bullet list of backlinks | -- @return A bullet list of backlinks | ||
function p.ListBackReferences(frame) | function p.ListBackReferences(frame) | ||
local | local QueryResult = mw.smw.ask('[[Riferimento::' .. mw.title.getCurrentTitle() .. ']]|?DataTrek ID|format=broadtable') | ||
if not QueryResult then | |||
return "''Nessun risultato''" | |||
else | |||
return QueryResult | |||
end | |||
end | end | ||
return p | return p |