66 447
contributi
mNessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 218: | Riga 218: | ||
end | end | ||
end | end | ||
-------------------------------------------------------------------------------- | |||
-- Set the semantic property for the linked DataTrek entity on the current page | |||
-- to be used as a plain text string | |||
-- | |||
-- @param frame The frame of the page | |||
-------------------------------------------------------------------------------- | |||
function p.SemanticToItem(frame) | |||
if mw.wikibase.getEntity() ~= nil then | |||
mw.smw.set("DataTrek Item = " .. mw.wikibase.getEntityIdForCurrentPage()) | |||
end | |||
end | |||
function p.LabelByLang(frame) | function p.LabelByLang(frame) | ||
local Item = mw.wikibase.getEntityIdForCurrentPage() | local Item = mw.wikibase.getEntityIdForCurrentPage() |