Anonimo

Modulo:DTBase: differenze tra le versioni

Da Wikitrek.
m
nessun oggetto della modifica
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 result = mw.smw.ask('[[Riferimento::{{PAGENAME}}]]|?DataTrek ID|format=broadtable')
local QueryResult = mw.smw.ask('[[Riferimento::' .. mw.title.getCurrentTitle() .. ']]|?DataTrek ID|format=broadtable')
return mw.title.getCurrentTitle()
if not QueryResult then
return "''Nessun risultato''"
else
return QueryResult
end
end
end
return p
return p