Изменения

брать идентификаторы с текущей страницы, если значение сущности не указано явно — см. Википедия:Форум/Викиданные#Ссылка на источник
Строка 1702: Строка 1702:  
     data.sourceId = getSingle( data.sourceId )
 
     data.sourceId = getSingle( data.sourceId )
   −
     if type( currentEntityId ) == 'string' then
+
     if not currentEntityId then
 +
    data.entityId = mw.wikibase.getEntityIdForCurrentPage()
 +
    elseif type( currentEntityId ) == 'string' then
 
         data.entityId = currentEntityId
 
         data.entityId = currentEntityId
 
     elseif type( currentEntityId ) == 'table' and currentEntityId.id then
 
     elseif type( currentEntityId ) == 'table' and currentEntityId.id then
Анонимный участник