Модуль:Wikidata/Places: відмінності між версіями
[неперевірена версія] | [перевірена версія] |
Вилучено вміст Додано вміст
Jphwra (обговорення | внесок) Скасовано останні 2 редагування (Shmurak і 94.178.29.220) і відновлено версію 23122249 Shmurak |
|||
Рядок 180:
local hasAdditionalQualifiers = false;
if ( statement.qualifiers ) then
local parentOptions = options;▼
-- local parentOptions = mw.clone( options );▼
--country
if ( statement.qualifiers.P17 ) then
Рядок 219 ⟶ 206:
if ( boundaries ) then
local entityOptions = options;
entityOptions['text'] = getLabel( context, entity, boundaries );
baseResult = context.formatSnak( entityOptions, statement.mainsnak, circumstances );
Рядок 278 ⟶ 266:
local parentOptions = options;
▲ -- local parentOptions = mw.clone( options );
parentOptions['text'] = getLabel( context, parentEntities[i], boundaries );
Рядок 434 ⟶ 423:
local boundaries = getTimeBoundariesFromProperties( context, {'P570', 'P577', 'P571'} );
local countryOptions = mw.clone( options );
if not countryOptions['text'] or countryOptions['text'] == '' then
countryOptions['text'] = getLabel( context, countryEntity, boundaries );
|