178 233
редагування
Jphwra (обговорення | внесок) (Скасовано останні 2 редагування (Shmurak і 94.178.29.220) і відновлено версію 23122249 Shmurak) |
|||
local hasAdditionalQualifiers = false;
if ( statement.qualifiers ) then
local parentOptions = options;▼
-- local parentOptions = mw.clone( options );▼
--country
if ( statement.qualifiers.P17 ) then
if ( boundaries ) then
local entityOptions = options;
entityOptions['text'] = getLabel( context, entity, boundaries );
baseResult = context.formatSnak( entityOptions, statement.mainsnak, circumstances );
local parentOptions = options;
▲ -- local parentOptions = mw.clone( options );
parentOptions['text'] = getLabel( context, parentEntities[i], boundaries );
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 );
|