66 484
contributi
mNessun oggetto della modifica |
m (Start ListBackReferences) |
||
Riga 1: | Riga 1: | ||
--- This module represent the package containing basic functions to access data from the WikiBase instance DataTrek | |||
-- @module p | |||
-- Keyword: wikitrek | -- Keyword: wikitrek | ||
local p = {} | local p = {} | ||
Riga 405: | Riga 407: | ||
return table.concat(AllReferences, string.char(10)) | return table.concat(AllReferences, string.char(10)) | ||
end | end | ||
end | |||
--- generates a list of backlink using SMW query. | |||
-- | |||
-- @frame Info from MW session | |||
-- @return A bullet list of backlinks | |||
function p.ListBackReferences(frame) | |||
local result = mw.smw.ask('[[Riferimento::{{PAGENAME}}]]|?DataTrek ID|format=broadtable') | |||
return frame:getTitle() | |||
end | end | ||
return p | return p |