Anonimo

Modulo:DTBase: differenze tra le versioni

Da Wikitrek.
Function SemanticToEntity created
mNessun oggetto della modifica
(Function SemanticToEntity created)
Riga 208: Riga 208:
     return  tostring(p)
     return  tostring(p)
end
end
--------------------------------------------------------------------------------
-- Set the semantic property for the linked DataTrek entity on the current page
--
-- @param frame The frame of the page
--------------------------------------------------------------------------------
function p.SemanticToEntity(frame)
mw.smw.set("DataTrek ID = " .. mw.wikibase.getEntityIdForCurrentPage())
end
function p.LabelByLang(frame)
function p.LabelByLang(frame)
local Item = mw.wikibase.getEntityIdForCurrentPage()
local Item = mw.wikibase.getEntityIdForCurrentPage()