Vikipediya
crhwiki
https://crh.wikipedia.org/wiki/Ba%C5%9F_Saife
MediaWiki 1.46.0-wmf.24
first-letter
Media
Mahsus
Muzakere
Qullanıcı
Qullanıcı muzakeresi
Vikipediya
Vikipediya muzakeresi
Fayl
Fayl muzakeresi
MediaViki
MediaViki muzakeresi
Şablon
Şablon muzakeresi
Yardım
Yardım muzakeresi
Kategoriya
Kategoriya muzakeresi
R
R talk
TimedText
TimedText talk
Modul
Modul muzakeresi
Event
Event talk
Modul:Wikidata/config
828
19261
243675
243326
2026-04-28T09:37:23Z
Хтосьці
13041
[[wikidata:Property:P367]] (felekiyat timsali resmi): [[Çolpan]], [[Utarit]], [[Dünya]] ve ilâhre saifesinde timsal resimleriniñ ölçüsini tüzetip baqam; bazı satırnı rus tilinden tercime etip baqtım
243675
Scribunto
text/plain
-- Property configuration for Wikidata module
return {
global = {
separator = ', ',
conjunction = ' ve ',
},
presets = {
['catonly'] = {
datatype = 'wikibase-item',
conjunction = '',
invisible = true,
['value-module'] = 'Wikidata/item',
['value-function'] = 'formatCategoryOnly',
references = '',
category = 'P910',
},
['country'] = {
['claim-module'] = 'Wikidata/Places',
['claim-function'] = 'formatCountryClaimWithFlag',
before = '<ul><li>',
separator = '</li><li>',
conjunction = '</li><li>',
after = '</li></ul>',
},
['from-to'] = {
['property-module'] = 'Wikidata/date',
['property-function'] = 'formatDateIntervalProperty',
},
['link'] = {
['value-module'] = 'Wikidata/link',
['value-function'] = 'fromModule',
},
['list'] = {
before = '<ul><li>',
separator = '</li><li>',
conjunction = '</li><li>',
after = '</li></ul>',
},
['name'] = {
monolingualLangTemplate = 'lang',
separator = '<br>',
conjunction = '<br>',
},
['place'] = {
['claim-module'] = 'Wikidata/Places',
['claim-function'] = 'formatPlaceWithQualifiers',
before = '<ul><li>',
separator = '</li><li>',
conjunction = '</li><li>',
after = '</li></ul>',
},
['quantity (date)'] = {
before = '<ul><li>',
separator = '</li><li>',
conjunction = '</li><li>',
after = '</li></ul>',
qualifier = 'P585',
},
},
datatypes = {
commonsMedia = {
limit = 1,
references = false,
size = '274x400px',
separator = '<br>',
conjunction = '<br>',
somevalue = '',
['value-module'] = 'Wikidata/media',
['value-function'] = 'formatCommonsMediaValue',
},
['external-id'] = {
references = false,
},
['globe-coordinate'] = {
limit = 1,
references = false,
},
url = {
separator = '<br>',
conjunction = '<br>',
references = false,
['value-module'] = 'Wikidata/url',
['value-function'] = 'formatUrlValue',
},
quantity = {
siConversion = true
}
},
properties = {
P6 = { datatype = 'wikibase-item', },
P17 = {
datatype = 'wikibase-item',
preset = 'country',
},
P18 = {
datatype = 'commonsMedia',
fixdouble = true,
},
P19 = {
datatype = 'wikibase-item',
preset = 'place',
separator = ',</li><li>',
conjunction = ' ya da </li><li>',
},
P20 = {
datatype = 'wikibase-item',
preset = 'place',
separator = ',</li><li>',
conjunction = ' ya da </li><li>',
},
P22 = {
datatype = 'wikibase-item',
conjunction = ' ya da '
},
P25 = {
datatype = 'wikibase-item',
conjunction = ' ya da '
},
P26 = { datatype = 'wikibase-item', },
P27 = {
datatype = 'wikibase-item',
preset = 'country',
},
P31 = {
datatype = 'wikibase-item',
references = false,
},
P37 = { datatype = 'wikibase-item', },
P39 = {
['claim-module'] = 'Wikidata/positions',
['claim-function'] = 'formatPositionClaim',
separator = '',
conjunction = '',
allowTables = true,
},
P40 = { datatype = 'wikibase-item', },
P41 = {
datatype = 'commonsMedia',
size = '150x200px',
},
P53 = {
datatype = 'wikibase-item',
category = 'P910',
},
P54 = {
category = 'P6112',
},
P57 = {
datatype = 'wikibase-item',
preset = 'list',
},
P58 = {
datatype = 'wikibase-item',
preset = 'list',
},
P59 = {
datatype = 'wikibase-item',
category = 'P910',
references = false,
},
P69 = {
datatype = 'wikibase-item',
preset = 'list',
category = 'P3876',
qualifier = 'P582',
},
P86 = {
datatype = 'wikibase-item',
preset = 'list',
},
P94 = {
datatype = 'commonsMedia',
size = '100x200px',
},
P101 = { datatype = 'wikibase-item', },
P102 = {
datatype = 'wikibase-item',
preset = 'list',
qualifier = 'P582',
category = 'P6365',
},
P103 = { datatype = 'wikibase-item', },
P106 = {
datatype = 'wikibase-item',
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'formatEntityWithGenderClaim',
conjunction = ', ',
},
P108 = {
datatype = 'wikibase-item',
preset = 'list',
category = 'P4195',
},
P109 = {
datatype = 'commonsMedia',
size = '150x150px',
alt = 'Avtograf resmi',
},
P117 = {
datatype = 'commonsMedia',
size = '290x300px',
alt = 'Himiyeviy qurulış resmi',
},
P119 = {
datatype = 'wikibase-item',
preset = 'place',
thisLocationOnly = 'true',
},
P131 = { datatype = 'wikibase-item', },
P140 = {
datatype = 'wikibase-item',
},
P154 = {
size = '220x80px',
alt = 'Logotip resmi',
},
P159 = {
preset = 'place',
},
P161 = {
preset = 'list',
},
P162 = {
preset = 'list',
},
P163 = { datatype = 'wikibase-item', },
P166 = {
datatype = 'wikibase-item',
['property-module'] = 'Wikidata/Medals',
['property-function'] = 'formatProperty',
['value-module'] = 'Wikidata/Medals',
['value-function'] = 'formatValue',
before = '<div style="text-align:justify">',
after = '</div>',
separator = ' ',
conjunction = ' ',
references = false,
allowTables = true,
},
P190 = { datatype = 'wikibase-item', },
P212 = {
preset = 'link',
},
P225 = {
preset = 'list',
['claim-module'] = 'Wikidata/Biology',
['claim-function'] = 'formatTaxonNameClaim',
},
P237 = { datatype = 'wikibase-item', },
P241 = { datatype = 'wikibase-item', },
P242 = {
datatype = 'commonsMedia',
size = '300x300px',
},
P247 = {
formatter = 'https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=$1',
},
P267 = {
preset = 'link',
},
P276 = {
preset = 'place',
},
P281 = { datatype = 'string', },
P286 = {
preset = 'list',
},
P296 = {
formatter = 'http://osm.sbin.ru/esr/esr:$1',
},
P301 = {
rawArticle = true,
},
P344 = {
preset = 'list',
},
P345 = {
preset = 'link',
},
P348 = {
preset = 'list',
['property-module'] = 'Wikidata/Software',
['property-function'] = 'formatVersionProperty',
},
P361 = { datatype = 'wikibase-item', },
P367 = {
datatype = 'commonsMedia',
size = '16x16px',
},
P373 = {
datatype = 'string',
['value-module'] = 'Wikidata/media',
['value-function'] = 'formatCommonsCategory',
limit = 1,
},
P374 = { datatype = 'external-id', },
P395 = { datatype = 'string', },
P407 = { datatype = 'wikibase-item', },
P410 = { datatype = 'wikibase-item', },
P412 = {
datatype = 'wikibase-item',
category = 'P910',
},
P413 = {
datatype = 'wikibase-item',
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'formatEntityWithGenderClaim',
conjunction = ', ',
category = 'P910',
},
P414 = {
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'applyDefaultTemplate',
},
P421 = { datatype = 'wikibase-item', },
P473 = { datatype = 'string', },
P495 = {
preset = 'country',
},
P505 = {
preset = 'list',
},
P512 = {
datatype = 'wikibase-item',
['property-module'] = 'Wikidata/P512',
['property-function'] = 'formatAcademicDegree',
},
P527 = {
preset = 'list',
},
P528 = {
references = false,
qualifier = 'P972',
},
P551 = {
preset = 'place',
},
P569 = {
datatype = 'time',
['claim-module'] = 'Wikidata/date',
['claim-function'] = 'formatDateOfBirthClaim',
},
P570 = {
datatype = 'time',
['claim-module'] = 'Wikidata/date',
['claim-function'] = 'formatDateOfDeathClaim',
},
P571 = { datatype = 'time', },
P576 = { datatype = 'time', },
P598 = { datatype = 'wikibase-item', },
P607 = {
datatype = 'wikibase-item',
preset = 'list',
},
P625 = { datatype = 'globe-coordinate', },
P669 = {
qualifier = 'P670',
},
P685 = {
formatter = 'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=$1',
},
P721 = {
preset = 'link',
},
P764 = {
preset = 'link',
},
P803 = { datatype = 'wikibase-item', },
P856 = { datatype = 'url', },
P881 = {
novalue = 'нет',
category = 'P910',
},
P884 = {
preset = 'link',
},
P915 = {
category = 'P1740',
},
P957 = {
preset = 'link',
},
P972 = {
preset = 'catonly',
},
P1077 = {
preset = 'link',
},
P1082 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P1098 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
},
P1120 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P1128 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P1174 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
},
P1195 = {
['value-module'] = 'Wikidata/Software',
['value-function'] = 'formatExtension',
conjunction = ' ya da ',
},
P1215 = {
datatype = 'quantity',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatVisualMagnitude'
},
P1246 = {
preset = 'link',
},
P1249 = { datatype = 'time', },
P1376 = { datatype = 'wikibase-item', },
P1402 = {
preset = 'link',
},
P1448 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1458 = {
datatype = 'quantity',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatColorIndex'
},
P1464 = { datatype = 'wikibase-item', },
P1476 = {
preset = 'name',
},
P1477 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1532 = {
preset = 'country',
rank = '[rank:normal, rank:preferred]',
},
P1543 = {
datatype = 'commonsMedia',
},
P1559 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1603 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P1621 = {
size = '300x300px',
},
P1692 = {
preset = 'link',
},
P1705 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1753 = {
rowArticle = true,
},
P1809 = {
preset = 'list',
},
P1846 = {
datatype = 'commonsMedia',
fixdouble = true,
},
P2031 = {
preset = 'from-to',
to = 'P2032',
within = 'P570',
},
P2043 = {
datatype = 'quantity',
preset = 'quantity (date)',
},
P2044 = { datatype = 'quantity', },
P2046 = {
datatype = 'quantity',
preset = 'quantity (date)',
siConversion = false,
},
P2047 = {
siConversion = false,
},
P2048 = {
conjunction = ' ya da ',
},
P2060 = {
siConversion = false,
},
P2097 = {
siConversion = false,
},
P2120 = {
siConversion = false,
},
P2137 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P2139 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P2146 = {
siConversion = false,
},
P2214 = {
siConversion = false
},
P2226 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P2257 = {
siConversion = false
},
P2295 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P2324 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi'
},
P2403 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P2425 = {
alt = 'Изображение орденской планки',
},
P2583 = {
siConversion = false,
},
P2597 = {
preset = 'catonly',
},
P2650 = { datatype = 'wikibase-item', },
P2789 = {
preset = 'list',
},
P2896 = {
siConversion = false,
},
P2910 = {
size = '100x80px',
},
P3083 = {
formatter = 'http://simbad.u-strasbg.fr/simbad/sim-id?Ident=$1',
},
P3086 = {
siConversion = false,
},
P3362 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator',
countByThousands = true,
},
P4614 = {
category = 'P1200',
},
P5348 = {
siConversion = false,
},
P6257 = {
['value-module'] = 'Wikidata/number',
['value-function'] = 'formatRA',
},
P6258 = {
['value-module'] = 'Wikidata/number',
['value-function'] = 'formatDMS',
},
P6259 = {
['references'] = false,
},
P7584 = {
siConversion = false,
},
P8010 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'kişi',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P8224 = {
alt = 'Moledula modeli resmi',
},
},
categories = {
['links-to-entities-with-missing-label'] = 'Википедия:Статьи со ссылками на элементы Викиданных без подписи',
['links-to-entities-with-wikibase-error'] = 'Википедия:Страницы с ошибками скриптов, использующих Викиданные',
['links-to-entities-with-missing-local-language-label'] = 'Википедия:Статьи со ссылками на элементы Викиданных без русской подписи',
['media-contains-local-caption'] = 'Википедия:Локальная подпись у изображения из Викиданных',
['media-contains-markup'] = 'Википедия:Статьи с вики-разметкой в изображении карточки',
['media-contains-local-double'] = 'Википедия:Изображение в статье дублирует изображение в карточке',
['value-contains-table'] = 'Википедия:Статьи с табличной вставкой в карточке',
},
errors = {
['property-param-not-provided'] = 'Не дан параметр свойства',
['entity-not-found'] = 'Сущность не найдена.',
['unknown-claim-type'] = 'Неизвестный тип заявления.',
['unknown-snak-type'] = 'Неизвестный тип снэка.',
['unknown-datavalue-type'] = 'Неизвестный тип значения данных.',
['unknown-entity-type'] = 'Неизвестный тип сущности.',
['unknown-property-module'] = 'Вы должны установить и property-module, и property-function.',
['unknown-claim-module'] = 'Вы должны установить и claim-module, и claim-function.',
['unknown-value-module'] = 'Вы должны установить и value-module, и value-function.',
['property-module-not-found'] = 'Модуль для отображения свойства не найден',
['property-function-not-found'] = 'Функция для отображения свойства не найдена',
['claim-module-not-found'] = 'Модуль для отображения утверждения не найден.',
['claim-function-not-found'] = 'Функция для отображения утверждения не найдена.',
['value-module-not-found'] = 'Модуль для отображения значения не найден.',
['value-function-not-found'] = 'Функция для отображения значения не найдена.',
},
i18n = {
-- eger metinde "..." olsa, esas metin çoq noqtanıñ yerine qoymalı
somevalue = "''bilinmez''",
novalue = '',
-- Обстоятельства источника
Q5727902 = '... yaqın',
Q18122778 = '<span style="border-bottom: 1px dotted; cursor: help;" title="imkânı bar, ki">imk.</span> ',
Q30230067 = 'belki, ',
Q52834024 = '<span style="border-bottom: 1px dotted; cursor: help;" title="bu sayıdan daa ufaq "><</span> ',
Q54418095 = '<span style="border-bottom: 1px dotted; cursor: help;" title="bu sayıdan daa büyük ">></span> ',
thousandPowers = {'', ' biñ', ' mln', ' mlrd', ' trln'},
},
deprecatedSources = {
Q36578 = true, -- Gemeinsame Normdatei
Q63056 = true, -- Find a Grave
Q212256 = true, -- АиФ
Q523660 = true, -- International Music Score Library Project by https://ru.wikipedia.org/?diff=107090748
Q1798125 = true, -- LIBRIS
Q15222191 = true, -- BNF
Q15241312 = true, -- Freebase
Q25328680 = true, -- Prabook
Q29861311 = true, -- SNAC
Q86999151 = true, -- WeChangEd
},
};
fe15kxczbqt4kaksqot9eyjobt912fu
Modul:Universal infocard
828
34746
243678
243223
2026-04-28T10:08:19Z
Хтосьці
13041
Felekiyat timsali içün “inlineImagePropertyIds” kodu qoştım (meselâ [[Çolpan]] maqalesinde). Eger barlıq inlineImagePropertyIds'de olsa, o satır barlıq formatında kösterile (adı da kösterile) — bu, kiçik resimler içün faydalı.
243678
Scribunto
text/plain
--[[
Lua code for universal infocard.
]]
local altScript = require( 'Modul:Alternativ elifbe' );
local isConfig, config = pcall( require, 'Module:Universal infocard/config' );
if isConfig == false then
config = {
skipPropertyIds = {
P31 = true,
P279 = true,
}
};
end
local p = {};
local lang = mw.getContentLanguage();
local entityId = nil;
-- CSS classes.
local classes = {};
if config and config.classes then
for key, value in pairs( config.classes ) do
classes[ key ] = value;
end
end
function getClassString( type )
local class;
if classes[type] then
class = classes[type];
elseif type ~= '' then
class = 'infobox-' .. type;
else
class = 'infobox';
end
if class == '' then
return '';
end
return ' class="'.. class .. '"';
end
function getTemplate( propertyId )
if config and config.templates and config.templates[ propertyId ] then
return config.templates[ propertyId ];
end
if propertyId == 'title' then
return '{{PAGENAME}}';
end
if propertyId == 'map' then
return getMap;
end
if config and config.templates and config.templates.default then
return config.templates.default;
end
if string.match( propertyId, '^P%d+$' ) then
return '#statements:' .. propertyId;
end
return nil;
end
function expandTemplate( frame, title, args )
if not title then
return '';
elseif type( title ) == 'function' then
args.frame = frame;
return title( args )
elseif type( title ) == 'string' then
if string.match( title, '^#' ) then
return frame:callParserFunction{ name = title, args = args };
elseif string.match( title, '^{' ) then
return frame:preprocess( title );
else
return frame:expandTemplate{ title = title, args = args };
end
elseif type( title ) == 'table' then
local realTitle = title[ 1 ];
table.remove( title, 1 )
return expandTemplate( frame, realTitle, title )
end
end
function splitLine( value1, value2 )
local result = '';
if ( value1 and string.len( value1 ) ~= 0 ) or ( value2 and string.len( value2 ) ~= 0 ) then
result = '<tr>';
if ( value1 and string.len( value1 ) ~= 0 ) then
local colspan = '';
if ( not value2 or string.len( value2 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value1;
result = result .. '</td>';
end
if ( value2 and string.len( value2 ) ~= 0 ) then
local colspan = '';
if ( not value1 or string.len( value1 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value2;
result = result .. '</td>';
end
result = result .. '</tr>\n';
end
return result;
end
function getLine( value, class, header )
local result = '';
local tag = header and 'th scope="colgroup"' or 'td';
if ( value and string.len( value ) ~= 0 ) then
result = result .. '<tr><' .. tag .. ' colspan="2"'.. getClassString( class ) .. '>';
result = result .. value;
result = result .. '</' .. tag .. '></tr>\n';
return result;
end
return result;
end
function getValue( label, value )
local result = '';
if ( value ~= nil and string.len( value ) ~= 0 ) then
if label then
result = result .. '<tr><th scope="row"' .. getClassString( 'label' ) .. '>' .. label .. '</th>';
result = result .. '<td' .. getClassString( 'text' ) .. '>\n';
else
result = result .. '<tr><td colspan="2"' .. getClassString( 'text' ) .. '>';
end
result = result .. value;
result = result .. '</td></tr>\n';
return result;
end
return result;
end
function getMap( args )
local entityId = args.entityId or mw.wikibase.getEntityIdForCurrentPage();
local statements = mw.wikibase.getBestStatements( entityId, 'P625' );
if not statements or
not statements[ 1 ] or
not statements[ 1 ].mainsnak or
statements[ 1 ].mainsnak.snaktype ~= 'value' or
statements[ 1 ].mainsnak.datavalue.value.globe ~= 'http://www.wikidata.org/entity/Q2'
then
return '';
end
local coord = statements[ 1 ].mainsnak.datavalue.value;
local title = expandTemplate( args.frame, getTemplate( 'title' ), { from = entityId } );
local mapContent = [[ {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
]] .. coord['longitude'] .. [[,
]] .. coord['latitude'] .. [[
]
},
"properties": {
"title": "]] .. title .. [[",
"marker-symbol": "star",
"marker-color": "#3366cc"
}
}, {
"type": "ExternalData",
"service": "geoline",
"ids": "]] .. entityId .. [[",
"properties": {
"stroke": "#FF9999"
}
}, {
"type": "ExternalData",
"service": "geoshape",
"ids": "]] .. entityId .. [[",
"properties": {
"fill": "#FF0000",
"fill-opacity": 0.1,
"stroke": "#FF9999"
}
} ]];
return args.frame:extensionTag{
name = 'mapframe',
content = '[' .. mapContent .. ']',
args = {
'frameless',
align = 'center',
latitude = coord['latitude'],
longitude = coord['longitude'],
zoom = 11,
width = 300,
height = 250,
}
};
end
function renderValue( frame, propertyId, args )
local tplArgs = { propertyId, from = entityId, entityId = entityId, nocat = frame.args['nocat'] };
if args then
local k = nil;
repeat
k = next( args, k );
if k then
tplArgs[ k ] = args[ k ];
end
until not k
end
return expandTemplate( frame, getTemplate( propertyId ), tplArgs );
end
-- Filter deprecated claims and returning only preferred ones if present.
function filterClaims( entity, propertyId )
if ( entity.claims == nil or entity.claims[ propertyId ] == nil ) then
return {};
end
local all = entity.claims[ propertyId ];
local normal = {};
local preferred = {};
for _, claim in pairs( all ) do
local rank = claim.rank or 'normal';
if ( rank == 'normal' ) then
table.insert( normal, claim );
end
if ( rank == 'preferred' ) then
table.insert( preferred, claim );
end
end
if ( #preferred > 0 ) then
return preferred;
end
return normal;
end
-- Filter deprecated claims and returning only preferred ones if present.
function propertyHasEntity( claims, itemId )
if not claims then
return false;
end
for _, claim in pairs( claims ) do
if claim.mainsnak
and claim.mainsnak.datavalue
and claim.mainsnak.datavalue.value
and claim.mainsnak.datavalue.value.id
and claim.mainsnak.datavalue.value.id == itemId then
return true;
end
end
return false;
end
function propertyLabel( propertyId )
local label, labelLang = mw.wikibase.getLabelWithLang( propertyId );
local altScriptLabel = mw.wikibase.getLabelByLang( propertyId, altScript.ALT_LANG )
label = lang:ucfirst( label );
if altScriptLabel then altScriptLabel = lang:ucfirst( altScriptLabel ) end
if labelLang ~= lang:getCode() then
label = '[[d:Property:' .. propertyId .. '|' .. altScript.format( label, altScriptLabel, labelLang ) .. ']]';
end
return altScript.format( label, altScriptLabel );
end
function simpleLabel( entityId )
local label, lang = mw.wikibase.getLabelWithLang( entityId );
-- TODO ne içün lang.ucfirst yoq? (meselâ Bornholm saifesinde) Añlamalı
if lang.ucfirst then label = lang:ucfirst( label ) end;
local altScriptLabel = mw.wikibase.getLabelByLang( entityId, altScript.ALT_LANG )
if altScriptLabel and lang.ucfirst then altScriptLabel = lang:ucfirst( altScriptLabel ) end;
return altScript.format(label, altScriptLabel, lang);
end
function getErrorMessage( message )
local result = '<table' .. getClassString( 'error' ) .. '>\n';
result = result .. '<tr><td colspan="2">' .. message .. '</td></tr>\n';
result = result .. '</table>';
return result;
end
function p.render( frame )
local i18n_error_emptyWikidataEntity = '';
local i18n_error_noWikidataEntity = '';
if config and config.i18n and config.i18n.error then
if config.i18n.error.emptyWikidataEntity then
i18n_error_emptyWikidataEntity = config.i18n.error.emptyWikidataEntity;
end
if config.i18n.error.noWikidataEntity then
i18n_error_noWikidataEntity = config.i18n.error.noWikidataEntity;
end
end
local result = '<table' .. getClassString( '' );
if config and config.i18n and config.i18n.dataName then
result = result .. ' data-name="' .. config.i18n.dataName .. '"';
end
result = result .. '>\n';
local localImage = nil;
if ( frame ~= nil and frame:getParent() ~= nil ) then
local p_frame = frame:getParent();
if p_frame.args ~= nil then
-- image under FU only in local
localImage = p_frame.args.image;
if p_frame.args.from ~= nil and p_frame.args.from ~= '' then
entityId = p_frame.args.from;
elseif p_frame.args[ 1 ] ~= nil and string.gmatch( p_frame.args[ 1 ], '^Q\d+$' ) then
entityId = p_frame.args[ 1 ];
end
end
end
local wdStatus, entity = pcall( mw.wikibase.getEntity, entityId );
if wdStatus ~= true or entity == nil then
return getErrorMessage( i18n_error_noWikidataEntity );
elseif entity.claims == nil then
return getErrorMessage( i18n_error_emptyWikidataEntity );
end
-- TODO: Need to consider how to display class properties (P31, P279, P361, ...).
local skipPropertyIds = {};
if config.skipPropertyIds then
skipPropertyIds = mw.clone( config.skipPropertyIds );
end
local inlineImagePropertyIds = {};
if config.inlineImagePropertyIds then
inlineImagePropertyIds = mw.clone( config.inlineImagePropertyIds );
end
local claims = entity.claims;
local order = mw.wikibase.getPropertyOrder() or {};
-- Header.
local rawEntityLabel, entityLabelLang = entity:getLabelWithLang( lang:getCode() );
local labelEntityId = entityId or mw.wikibase.getEntityIdForCurrentPage()
local altScriptEntityLabel = mw.wikibase.getLabelByLang( labelEntityId, altScript.ALT_LANG );
local entityLabel = altScript.format(rawEntityLabel, altScriptEntityLabel, entityLabelLang);
local label;
---- Name.
local titleTemplate = getTemplate( 'title' );
-- TODO: Make it possible to specify a template for any value, not just Q5.
if propertyHasEntity( claims.P31, 'Q5' ) then
local titleTemplateQ5 = getTemplate( 'title_Q5' );
if titleTemplateQ5 then
titleTemplate = titleTemplateQ5;
end
end
if entityLabelLang == lang:getCode() then
label = expandTemplate( frame, titleTemplate, { wdLabel, from = entityId, entityLabel = entityLabel } );
else
label = expandTemplate( frame, titleTemplate, { from = entityId, entityLabel = entityLabel } );
end
result = result .. getLine( label, 'above', true );
---- Original name.
if claims.P1559 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1559' ), { from = entityId } ), 'original' );
elseif claims.P1705 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1705' ), { from = entityId } ), 'original' );
end
---- Flag and COA.
if claims.P41 or claims.P94 then
local flag = nil;
local flagLabel = nil;
local coa = nil;
local coaLabel = nil;
if claims.P41 then
flag = renderValue( frame, 'P41' );
if claims.P163 then
flagLabel = renderValue( frame, 'P163', { text = simpleLabel( 'Q14660' ) } );
else
flagLabel = simpleLabel( 'Q14660' );
end
end
if claims.P94 then
coa = renderValue( frame, 'P94' );
if claims.P163 then
coaLabel = renderValue( frame, 'P237', { text = simpleLabel( 'Q14659' ) } );
else
coaLabel = simpleLabel( 'Q14659' );
end
end
result = result .. splitLine( flagLabel, coaLabel );
result = result .. splitLine( flag, coa );
end
-- Body.
local propertyIds = {};
for propertyId, claim in pairs( entity.claims ) do
table.insert( propertyIds, propertyId );
end
local orderedProperties = mw.wikibase.orderProperties( propertyIds )
local shownProperties = 0
for i, propertyId in ipairs( orderedProperties ) do
local propertyClaims = claims[ propertyId ];
if not skipPropertyIds[ propertyId ]
and propertyClaims
and propertyClaims[ 1 ]
and propertyClaims[ 1 ].mainsnak
and propertyClaims[ 1 ].mainsnak.datatype
and propertyClaims[ 1 ].mainsnak.datatype ~= 'external-id'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'tabular-data'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'wikibase-property'
then
local label = propertyLabel( propertyId );
if propertyClaims[ 1 ].mainsnak.datatype == 'commonsMedia' and not inlineImagePropertyIds[ propertyId ] then
result = result .. getLine( renderValue( frame, propertyId, { alt = label } ), 'image' );
else
result = result .. getValue( label, renderValue( frame, propertyId ) );
end
skipPropertyIds[ propertyId ] = true
shownProperties = shownProperties + 1
end
end
-- Footer.
---- Map.
if claims.P625 ~= nil then
result = result .. getLine( renderValue( frame, 'map' ), 'text' );
end
---- Commons.
if claims.P373 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P373' ), { from = entityId } ), 'below' );
end
result = result .. '</table>';
-- Coords.
if claims.P625 ~= nil then
result = result .. renderValue( frame, 'P625', { display = 'title' } );
end
-- Tracking category.
if config and config.categories and config.categories['few-properties-shown'] then
if shownProperties < 4 then
result = result .. '[[Category:' .. config.categories['few-properties-shown'] .. '|' .. shownProperties .. ']]'
end
end
return result;
end
return p;
ck9c1iamrrxcmtb641fpcinehefgq3x
243681
243678
2026-04-28T10:24:34Z
Хтосьці
13041
skipWhenOthersExistPropertyIds qoştım ([[Çolpan]] saifesinde “felekiyat timsali” ve “timsal” bar, bu aynı timsaldir, tek bir kösterilmeli)
243681
Scribunto
text/plain
--[[
Lua code for universal infocard.
]]
local altScript = require( 'Modul:Alternativ elifbe' );
local isConfig, config = pcall( require, 'Module:Universal infocard/config' );
if isConfig == false then
config = {
skipPropertyIds = {
P31 = true,
P279 = true,
}
};
end
local p = {};
local lang = mw.getContentLanguage();
local entityId = nil;
-- CSS classes.
local classes = {};
if config and config.classes then
for key, value in pairs( config.classes ) do
classes[ key ] = value;
end
end
function getClassString( type )
local class;
if classes[type] then
class = classes[type];
elseif type ~= '' then
class = 'infobox-' .. type;
else
class = 'infobox';
end
if class == '' then
return '';
end
return ' class="'.. class .. '"';
end
function getTemplate( propertyId )
if config and config.templates and config.templates[ propertyId ] then
return config.templates[ propertyId ];
end
if propertyId == 'title' then
return '{{PAGENAME}}';
end
if propertyId == 'map' then
return getMap;
end
if config and config.templates and config.templates.default then
return config.templates.default;
end
if string.match( propertyId, '^P%d+$' ) then
return '#statements:' .. propertyId;
end
return nil;
end
function expandTemplate( frame, title, args )
if not title then
return '';
elseif type( title ) == 'function' then
args.frame = frame;
return title( args )
elseif type( title ) == 'string' then
if string.match( title, '^#' ) then
return frame:callParserFunction{ name = title, args = args };
elseif string.match( title, '^{' ) then
return frame:preprocess( title );
else
return frame:expandTemplate{ title = title, args = args };
end
elseif type( title ) == 'table' then
local realTitle = title[ 1 ];
table.remove( title, 1 )
return expandTemplate( frame, realTitle, title )
end
end
function splitLine( value1, value2 )
local result = '';
if ( value1 and string.len( value1 ) ~= 0 ) or ( value2 and string.len( value2 ) ~= 0 ) then
result = '<tr>';
if ( value1 and string.len( value1 ) ~= 0 ) then
local colspan = '';
if ( not value2 or string.len( value2 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value1;
result = result .. '</td>';
end
if ( value2 and string.len( value2 ) ~= 0 ) then
local colspan = '';
if ( not value1 or string.len( value1 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value2;
result = result .. '</td>';
end
result = result .. '</tr>\n';
end
return result;
end
function getLine( value, class, header )
local result = '';
local tag = header and 'th scope="colgroup"' or 'td';
if ( value and string.len( value ) ~= 0 ) then
result = result .. '<tr><' .. tag .. ' colspan="2"'.. getClassString( class ) .. '>';
result = result .. value;
result = result .. '</' .. tag .. '></tr>\n';
return result;
end
return result;
end
function getValue( label, value )
local result = '';
if ( value ~= nil and string.len( value ) ~= 0 ) then
if label then
result = result .. '<tr><th scope="row"' .. getClassString( 'label' ) .. '>' .. label .. '</th>';
result = result .. '<td' .. getClassString( 'text' ) .. '>\n';
else
result = result .. '<tr><td colspan="2"' .. getClassString( 'text' ) .. '>';
end
result = result .. value;
result = result .. '</td></tr>\n';
return result;
end
return result;
end
function getMap( args )
local entityId = args.entityId or mw.wikibase.getEntityIdForCurrentPage();
local statements = mw.wikibase.getBestStatements( entityId, 'P625' );
if not statements or
not statements[ 1 ] or
not statements[ 1 ].mainsnak or
statements[ 1 ].mainsnak.snaktype ~= 'value' or
statements[ 1 ].mainsnak.datavalue.value.globe ~= 'http://www.wikidata.org/entity/Q2'
then
return '';
end
local coord = statements[ 1 ].mainsnak.datavalue.value;
local title = expandTemplate( args.frame, getTemplate( 'title' ), { from = entityId } );
local mapContent = [[ {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
]] .. coord['longitude'] .. [[,
]] .. coord['latitude'] .. [[
]
},
"properties": {
"title": "]] .. title .. [[",
"marker-symbol": "star",
"marker-color": "#3366cc"
}
}, {
"type": "ExternalData",
"service": "geoline",
"ids": "]] .. entityId .. [[",
"properties": {
"stroke": "#FF9999"
}
}, {
"type": "ExternalData",
"service": "geoshape",
"ids": "]] .. entityId .. [[",
"properties": {
"fill": "#FF0000",
"fill-opacity": 0.1,
"stroke": "#FF9999"
}
} ]];
return args.frame:extensionTag{
name = 'mapframe',
content = '[' .. mapContent .. ']',
args = {
'frameless',
align = 'center',
latitude = coord['latitude'],
longitude = coord['longitude'],
zoom = 11,
width = 300,
height = 250,
}
};
end
function renderValue( frame, propertyId, args )
local tplArgs = { propertyId, from = entityId, entityId = entityId, nocat = frame.args['nocat'] };
if args then
local k = nil;
repeat
k = next( args, k );
if k then
tplArgs[ k ] = args[ k ];
end
until not k
end
return expandTemplate( frame, getTemplate( propertyId ), tplArgs );
end
-- Filter deprecated claims and returning only preferred ones if present.
function filterClaims( entity, propertyId )
if ( entity.claims == nil or entity.claims[ propertyId ] == nil ) then
return {};
end
local all = entity.claims[ propertyId ];
local normal = {};
local preferred = {};
for _, claim in pairs( all ) do
local rank = claim.rank or 'normal';
if ( rank == 'normal' ) then
table.insert( normal, claim );
end
if ( rank == 'preferred' ) then
table.insert( preferred, claim );
end
end
if ( #preferred > 0 ) then
return preferred;
end
return normal;
end
-- Filter deprecated claims and returning only preferred ones if present.
function propertyHasEntity( claims, itemId )
if not claims then
return false;
end
for _, claim in pairs( claims ) do
if claim.mainsnak
and claim.mainsnak.datavalue
and claim.mainsnak.datavalue.value
and claim.mainsnak.datavalue.value.id
and claim.mainsnak.datavalue.value.id == itemId then
return true;
end
end
return false;
end
function propertyLabel( propertyId )
local label, labelLang = mw.wikibase.getLabelWithLang( propertyId );
local altScriptLabel = mw.wikibase.getLabelByLang( propertyId, altScript.ALT_LANG )
label = lang:ucfirst( label );
if altScriptLabel then altScriptLabel = lang:ucfirst( altScriptLabel ) end
if labelLang ~= lang:getCode() then
label = '[[d:Property:' .. propertyId .. '|' .. altScript.format( label, altScriptLabel, labelLang ) .. ']]';
end
return altScript.format( label, altScriptLabel );
end
function simpleLabel( entityId )
local label, lang = mw.wikibase.getLabelWithLang( entityId );
-- TODO ne içün lang.ucfirst yoq? (meselâ Bornholm saifesinde) Añlamalı
if lang.ucfirst then label = lang:ucfirst( label ) end;
local altScriptLabel = mw.wikibase.getLabelByLang( entityId, altScript.ALT_LANG )
if altScriptLabel and lang.ucfirst then altScriptLabel = lang:ucfirst( altScriptLabel ) end;
return altScript.format(label, altScriptLabel, lang);
end
function getErrorMessage( message )
local result = '<table' .. getClassString( 'error' ) .. '>\n';
result = result .. '<tr><td colspan="2">' .. message .. '</td></tr>\n';
result = result .. '</table>';
return result;
end
function p.render( frame )
local i18n_error_emptyWikidataEntity = '';
local i18n_error_noWikidataEntity = '';
if config and config.i18n and config.i18n.error then
if config.i18n.error.emptyWikidataEntity then
i18n_error_emptyWikidataEntity = config.i18n.error.emptyWikidataEntity;
end
if config.i18n.error.noWikidataEntity then
i18n_error_noWikidataEntity = config.i18n.error.noWikidataEntity;
end
end
local result = '<table' .. getClassString( '' );
if config and config.i18n and config.i18n.dataName then
result = result .. ' data-name="' .. config.i18n.dataName .. '"';
end
result = result .. '>\n';
local localImage = nil;
if ( frame ~= nil and frame:getParent() ~= nil ) then
local p_frame = frame:getParent();
if p_frame.args ~= nil then
-- image under FU only in local
localImage = p_frame.args.image;
if p_frame.args.from ~= nil and p_frame.args.from ~= '' then
entityId = p_frame.args.from;
elseif p_frame.args[ 1 ] ~= nil and string.gmatch( p_frame.args[ 1 ], '^Q\d+$' ) then
entityId = p_frame.args[ 1 ];
end
end
end
local wdStatus, entity = pcall( mw.wikibase.getEntity, entityId );
if wdStatus ~= true or entity == nil then
return getErrorMessage( i18n_error_noWikidataEntity );
elseif entity.claims == nil then
return getErrorMessage( i18n_error_emptyWikidataEntity );
end
-- TODO: Need to consider how to display class properties (P31, P279, P361, ...).
local skipPropertyIds = {};
if config.skipPropertyIds then
skipPropertyIds = mw.clone( config.skipPropertyIds );
end
local inlineImagePropertyIds = {};
if config.inlineImagePropertyIds then
inlineImagePropertyIds = mw.clone( config.inlineImagePropertyIds );
end
local skipWhenOthersExistPropertyIds = {};
if config.skipWhenOthersExistPropertyIds then
skipWhenOthersExistPropertyIds = mw.clone( config.skipWhenOthersExistPropertyIds );
end
local claims = entity.claims;
local order = mw.wikibase.getPropertyOrder() or {};
-- Header.
local rawEntityLabel, entityLabelLang = entity:getLabelWithLang( lang:getCode() );
local labelEntityId = entityId or mw.wikibase.getEntityIdForCurrentPage()
local altScriptEntityLabel = mw.wikibase.getLabelByLang( labelEntityId, altScript.ALT_LANG );
local entityLabel = altScript.format(rawEntityLabel, altScriptEntityLabel, entityLabelLang);
local label;
---- Name.
local titleTemplate = getTemplate( 'title' );
-- TODO: Make it possible to specify a template for any value, not just Q5.
if propertyHasEntity( claims.P31, 'Q5' ) then
local titleTemplateQ5 = getTemplate( 'title_Q5' );
if titleTemplateQ5 then
titleTemplate = titleTemplateQ5;
end
end
if entityLabelLang == lang:getCode() then
label = expandTemplate( frame, titleTemplate, { wdLabel, from = entityId, entityLabel = entityLabel } );
else
label = expandTemplate( frame, titleTemplate, { from = entityId, entityLabel = entityLabel } );
end
result = result .. getLine( label, 'above', true );
---- Original name.
if claims.P1559 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1559' ), { from = entityId } ), 'original' );
elseif claims.P1705 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1705' ), { from = entityId } ), 'original' );
end
---- Flag and COA.
if claims.P41 or claims.P94 then
local flag = nil;
local flagLabel = nil;
local coa = nil;
local coaLabel = nil;
if claims.P41 then
flag = renderValue( frame, 'P41' );
if claims.P163 then
flagLabel = renderValue( frame, 'P163', { text = simpleLabel( 'Q14660' ) } );
else
flagLabel = simpleLabel( 'Q14660' );
end
end
if claims.P94 then
coa = renderValue( frame, 'P94' );
if claims.P163 then
coaLabel = renderValue( frame, 'P237', { text = simpleLabel( 'Q14659' ) } );
else
coaLabel = simpleLabel( 'Q14659' );
end
end
result = result .. splitLine( flagLabel, coaLabel );
result = result .. splitLine( flag, coa );
end
-- Body.
local propertyIds = {};
for propertyId, claim in pairs( entity.claims ) do
table.insert( propertyIds, propertyId );
end
local orderedProperties = mw.wikibase.orderProperties( propertyIds )
local shownProperties = 0
for i, propertyId in ipairs( orderedProperties ) do
local propertyClaims = claims[ propertyId ];
local isSkipped = skipPropertyIds[ propertyId ]
if not isSkipped and skipWhenOthersExistPropertyIds[ propertyId ] then
for _, otherPropertyId in ipairs( skipWhenOthersExistPropertyIds[ propertyId ] ) do
if claims[ otherPropertyId ] ~= nil then
isSkipped = true
break
end
end
end
if not isSkipped
and propertyClaims
and propertyClaims[ 1 ]
and propertyClaims[ 1 ].mainsnak
and propertyClaims[ 1 ].mainsnak.datatype
and propertyClaims[ 1 ].mainsnak.datatype ~= 'external-id'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'tabular-data'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'wikibase-property'
then
local label = propertyLabel( propertyId );
if propertyClaims[ 1 ].mainsnak.datatype == 'commonsMedia' and not inlineImagePropertyIds[ propertyId ] then
result = result .. getLine( renderValue( frame, propertyId, { alt = label } ), 'image' );
else
result = result .. getValue( label, renderValue( frame, propertyId ) );
end
skipPropertyIds[ propertyId ] = true
shownProperties = shownProperties + 1
end
end
-- Footer.
---- Map.
if claims.P625 ~= nil then
result = result .. getLine( renderValue( frame, 'map' ), 'text' );
end
---- Commons.
if claims.P373 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P373' ), { from = entityId } ), 'below' );
end
result = result .. '</table>';
-- Coords.
if claims.P625 ~= nil then
result = result .. renderValue( frame, 'P625', { display = 'title' } );
end
-- Tracking category.
if config and config.categories and config.categories['few-properties-shown'] then
if shownProperties < 4 then
result = result .. '[[Category:' .. config.categories['few-properties-shown'] .. '|' .. shownProperties .. ']]'
end
end
return result;
end
return p;
peu2y0qp0dp1bl7jbbu4eg37kjtcrjx
243682
243681
2026-04-28T10:38:32Z
Хтосьці
13041
bu kodu inlineImagePropertyIds ve skipWhenOthersExistPropertyIds cedvellerini deñiştirmey, bunıñ içün cedvellerni kopiya yapmamalı, asıl nushanı qullanılmalı (daa tez)
243682
Scribunto
text/plain
--[[
Lua code for universal infocard.
]]
local altScript = require( 'Modul:Alternativ elifbe' );
local isConfig, config = pcall( require, 'Module:Universal infocard/config' );
if isConfig == false then
config = {
skipPropertyIds = {
P31 = true,
P279 = true,
}
};
end
local p = {};
local lang = mw.getContentLanguage();
local entityId = nil;
-- CSS classes.
local classes = {};
if config and config.classes then
for key, value in pairs( config.classes ) do
classes[ key ] = value;
end
end
function getClassString( type )
local class;
if classes[type] then
class = classes[type];
elseif type ~= '' then
class = 'infobox-' .. type;
else
class = 'infobox';
end
if class == '' then
return '';
end
return ' class="'.. class .. '"';
end
function getTemplate( propertyId )
if config and config.templates and config.templates[ propertyId ] then
return config.templates[ propertyId ];
end
if propertyId == 'title' then
return '{{PAGENAME}}';
end
if propertyId == 'map' then
return getMap;
end
if config and config.templates and config.templates.default then
return config.templates.default;
end
if string.match( propertyId, '^P%d+$' ) then
return '#statements:' .. propertyId;
end
return nil;
end
function expandTemplate( frame, title, args )
if not title then
return '';
elseif type( title ) == 'function' then
args.frame = frame;
return title( args )
elseif type( title ) == 'string' then
if string.match( title, '^#' ) then
return frame:callParserFunction{ name = title, args = args };
elseif string.match( title, '^{' ) then
return frame:preprocess( title );
else
return frame:expandTemplate{ title = title, args = args };
end
elseif type( title ) == 'table' then
local realTitle = title[ 1 ];
table.remove( title, 1 )
return expandTemplate( frame, realTitle, title )
end
end
function splitLine( value1, value2 )
local result = '';
if ( value1 and string.len( value1 ) ~= 0 ) or ( value2 and string.len( value2 ) ~= 0 ) then
result = '<tr>';
if ( value1 and string.len( value1 ) ~= 0 ) then
local colspan = '';
if ( not value2 or string.len( value2 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value1;
result = result .. '</td>';
end
if ( value2 and string.len( value2 ) ~= 0 ) then
local colspan = '';
if ( not value1 or string.len( value1 ) == 0 ) then
colspan = 'colspan="2"';
end
result = result .. '<td ' .. colspan .. getClassString( 'split' ) .. '>';
result = result .. value2;
result = result .. '</td>';
end
result = result .. '</tr>\n';
end
return result;
end
function getLine( value, class, header )
local result = '';
local tag = header and 'th scope="colgroup"' or 'td';
if ( value and string.len( value ) ~= 0 ) then
result = result .. '<tr><' .. tag .. ' colspan="2"'.. getClassString( class ) .. '>';
result = result .. value;
result = result .. '</' .. tag .. '></tr>\n';
return result;
end
return result;
end
function getValue( label, value )
local result = '';
if ( value ~= nil and string.len( value ) ~= 0 ) then
if label then
result = result .. '<tr><th scope="row"' .. getClassString( 'label' ) .. '>' .. label .. '</th>';
result = result .. '<td' .. getClassString( 'text' ) .. '>\n';
else
result = result .. '<tr><td colspan="2"' .. getClassString( 'text' ) .. '>';
end
result = result .. value;
result = result .. '</td></tr>\n';
return result;
end
return result;
end
function getMap( args )
local entityId = args.entityId or mw.wikibase.getEntityIdForCurrentPage();
local statements = mw.wikibase.getBestStatements( entityId, 'P625' );
if not statements or
not statements[ 1 ] or
not statements[ 1 ].mainsnak or
statements[ 1 ].mainsnak.snaktype ~= 'value' or
statements[ 1 ].mainsnak.datavalue.value.globe ~= 'http://www.wikidata.org/entity/Q2'
then
return '';
end
local coord = statements[ 1 ].mainsnak.datavalue.value;
local title = expandTemplate( args.frame, getTemplate( 'title' ), { from = entityId } );
local mapContent = [[ {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
]] .. coord['longitude'] .. [[,
]] .. coord['latitude'] .. [[
]
},
"properties": {
"title": "]] .. title .. [[",
"marker-symbol": "star",
"marker-color": "#3366cc"
}
}, {
"type": "ExternalData",
"service": "geoline",
"ids": "]] .. entityId .. [[",
"properties": {
"stroke": "#FF9999"
}
}, {
"type": "ExternalData",
"service": "geoshape",
"ids": "]] .. entityId .. [[",
"properties": {
"fill": "#FF0000",
"fill-opacity": 0.1,
"stroke": "#FF9999"
}
} ]];
return args.frame:extensionTag{
name = 'mapframe',
content = '[' .. mapContent .. ']',
args = {
'frameless',
align = 'center',
latitude = coord['latitude'],
longitude = coord['longitude'],
zoom = 11,
width = 300,
height = 250,
}
};
end
function renderValue( frame, propertyId, args )
local tplArgs = { propertyId, from = entityId, entityId = entityId, nocat = frame.args['nocat'] };
if args then
local k = nil;
repeat
k = next( args, k );
if k then
tplArgs[ k ] = args[ k ];
end
until not k
end
return expandTemplate( frame, getTemplate( propertyId ), tplArgs );
end
-- Filter deprecated claims and returning only preferred ones if present.
function filterClaims( entity, propertyId )
if ( entity.claims == nil or entity.claims[ propertyId ] == nil ) then
return {};
end
local all = entity.claims[ propertyId ];
local normal = {};
local preferred = {};
for _, claim in pairs( all ) do
local rank = claim.rank or 'normal';
if ( rank == 'normal' ) then
table.insert( normal, claim );
end
if ( rank == 'preferred' ) then
table.insert( preferred, claim );
end
end
if ( #preferred > 0 ) then
return preferred;
end
return normal;
end
-- Filter deprecated claims and returning only preferred ones if present.
function propertyHasEntity( claims, itemId )
if not claims then
return false;
end
for _, claim in pairs( claims ) do
if claim.mainsnak
and claim.mainsnak.datavalue
and claim.mainsnak.datavalue.value
and claim.mainsnak.datavalue.value.id
and claim.mainsnak.datavalue.value.id == itemId then
return true;
end
end
return false;
end
function propertyLabel( propertyId )
local label, labelLang = mw.wikibase.getLabelWithLang( propertyId );
local altScriptLabel = mw.wikibase.getLabelByLang( propertyId, altScript.ALT_LANG )
label = lang:ucfirst( label );
if altScriptLabel then altScriptLabel = lang:ucfirst( altScriptLabel ) end
if labelLang ~= lang:getCode() then
label = '[[d:Property:' .. propertyId .. '|' .. altScript.format( label, altScriptLabel, labelLang ) .. ']]';
end
return altScript.format( label, altScriptLabel );
end
function simpleLabel( entityId )
local label, lang = mw.wikibase.getLabelWithLang( entityId );
-- TODO ne içün lang.ucfirst yoq? (meselâ Bornholm saifesinde) Añlamalı
if lang.ucfirst then label = lang:ucfirst( label ) end;
local altScriptLabel = mw.wikibase.getLabelByLang( entityId, altScript.ALT_LANG )
if altScriptLabel and lang.ucfirst then altScriptLabel = lang:ucfirst( altScriptLabel ) end;
return altScript.format(label, altScriptLabel, lang);
end
function getErrorMessage( message )
local result = '<table' .. getClassString( 'error' ) .. '>\n';
result = result .. '<tr><td colspan="2">' .. message .. '</td></tr>\n';
result = result .. '</table>';
return result;
end
function p.render( frame )
local i18n_error_emptyWikidataEntity = '';
local i18n_error_noWikidataEntity = '';
if config and config.i18n and config.i18n.error then
if config.i18n.error.emptyWikidataEntity then
i18n_error_emptyWikidataEntity = config.i18n.error.emptyWikidataEntity;
end
if config.i18n.error.noWikidataEntity then
i18n_error_noWikidataEntity = config.i18n.error.noWikidataEntity;
end
end
local result = '<table' .. getClassString( '' );
if config and config.i18n and config.i18n.dataName then
result = result .. ' data-name="' .. config.i18n.dataName .. '"';
end
result = result .. '>\n';
local localImage = nil;
if ( frame ~= nil and frame:getParent() ~= nil ) then
local p_frame = frame:getParent();
if p_frame.args ~= nil then
-- image under FU only in local
localImage = p_frame.args.image;
if p_frame.args.from ~= nil and p_frame.args.from ~= '' then
entityId = p_frame.args.from;
elseif p_frame.args[ 1 ] ~= nil and string.gmatch( p_frame.args[ 1 ], '^Q\d+$' ) then
entityId = p_frame.args[ 1 ];
end
end
end
local wdStatus, entity = pcall( mw.wikibase.getEntity, entityId );
if wdStatus ~= true or entity == nil then
return getErrorMessage( i18n_error_noWikidataEntity );
elseif entity.claims == nil then
return getErrorMessage( i18n_error_emptyWikidataEntity );
end
-- TODO: Need to consider how to display class properties (P31, P279, P361, ...).
local skipPropertyIds = {};
if config.skipPropertyIds then
skipPropertyIds = mw.clone( config.skipPropertyIds );
end
local inlineImagePropertyIds = config.inlineImagePropertyIds or {};
local skipWhenOthersExistPropertyIds = config.skipWhenOthersExistPropertyIds or {};
local claims = entity.claims;
local order = mw.wikibase.getPropertyOrder() or {};
-- Header.
local rawEntityLabel, entityLabelLang = entity:getLabelWithLang( lang:getCode() );
local labelEntityId = entityId or mw.wikibase.getEntityIdForCurrentPage()
local altScriptEntityLabel = mw.wikibase.getLabelByLang( labelEntityId, altScript.ALT_LANG );
local entityLabel = altScript.format(rawEntityLabel, altScriptEntityLabel, entityLabelLang);
local label;
---- Name.
local titleTemplate = getTemplate( 'title' );
-- TODO: Make it possible to specify a template for any value, not just Q5.
if propertyHasEntity( claims.P31, 'Q5' ) then
local titleTemplateQ5 = getTemplate( 'title_Q5' );
if titleTemplateQ5 then
titleTemplate = titleTemplateQ5;
end
end
if entityLabelLang == lang:getCode() then
label = expandTemplate( frame, titleTemplate, { wdLabel, from = entityId, entityLabel = entityLabel } );
else
label = expandTemplate( frame, titleTemplate, { from = entityId, entityLabel = entityLabel } );
end
result = result .. getLine( label, 'above', true );
---- Original name.
if claims.P1559 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1559' ), { from = entityId } ), 'original' );
elseif claims.P1705 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P1705' ), { from = entityId } ), 'original' );
end
---- Flag and COA.
if claims.P41 or claims.P94 then
local flag = nil;
local flagLabel = nil;
local coa = nil;
local coaLabel = nil;
if claims.P41 then
flag = renderValue( frame, 'P41' );
if claims.P163 then
flagLabel = renderValue( frame, 'P163', { text = simpleLabel( 'Q14660' ) } );
else
flagLabel = simpleLabel( 'Q14660' );
end
end
if claims.P94 then
coa = renderValue( frame, 'P94' );
if claims.P163 then
coaLabel = renderValue( frame, 'P237', { text = simpleLabel( 'Q14659' ) } );
else
coaLabel = simpleLabel( 'Q14659' );
end
end
result = result .. splitLine( flagLabel, coaLabel );
result = result .. splitLine( flag, coa );
end
-- Body.
local propertyIds = {};
for propertyId, claim in pairs( entity.claims ) do
table.insert( propertyIds, propertyId );
end
local orderedProperties = mw.wikibase.orderProperties( propertyIds )
local shownProperties = 0
for i, propertyId in ipairs( orderedProperties ) do
local propertyClaims = claims[ propertyId ];
local isSkipped = skipPropertyIds[ propertyId ]
if not isSkipped and skipWhenOthersExistPropertyIds[ propertyId ] then
for _, otherPropertyId in ipairs( skipWhenOthersExistPropertyIds[ propertyId ] ) do
if claims[ otherPropertyId ] ~= nil then
isSkipped = true
break
end
end
end
if not isSkipped
and propertyClaims
and propertyClaims[ 1 ]
and propertyClaims[ 1 ].mainsnak
and propertyClaims[ 1 ].mainsnak.datatype
and propertyClaims[ 1 ].mainsnak.datatype ~= 'external-id'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'tabular-data'
and propertyClaims[ 1 ].mainsnak.datatype ~= 'wikibase-property'
then
local label = propertyLabel( propertyId );
if propertyClaims[ 1 ].mainsnak.datatype == 'commonsMedia' and not inlineImagePropertyIds[ propertyId ] then
result = result .. getLine( renderValue( frame, propertyId, { alt = label } ), 'image' );
else
result = result .. getValue( label, renderValue( frame, propertyId ) );
end
skipPropertyIds[ propertyId ] = true
shownProperties = shownProperties + 1
end
end
-- Footer.
---- Map.
if claims.P625 ~= nil then
result = result .. getLine( renderValue( frame, 'map' ), 'text' );
end
---- Commons.
if claims.P373 ~= nil then
result = result .. getLine( expandTemplate( frame, getTemplate( 'P373' ), { from = entityId } ), 'below' );
end
result = result .. '</table>';
-- Coords.
if claims.P625 ~= nil then
result = result .. renderValue( frame, 'P625', { display = 'title' } );
end
-- Tracking category.
if config and config.categories and config.categories['few-properties-shown'] then
if shownProperties < 4 then
result = result .. '[[Category:' .. config.categories['few-properties-shown'] .. '|' .. shownProperties .. ']]'
end
end
return result;
end
return p;
olukt08wevvz7frgy9cn3rt5vbyi0zh
Modul:Universal infocard/config
828
34747
243676
243438
2026-04-28T10:03:41Z
Хтосьці
13041
“inlineImageProperties” felekiyat timsali içün qoştım (meselâ [[Çolpan]] maqalesinde)
243676
Scribunto
text/plain
return {
templates = {
default = 'Wikidata',
title = 'Infobox/title',
title_Q5 = 'Infobox/name',
map = mapFunction,
P1559 = 'Infobox/original name',
P1705 = 'Infobox/original name',
P373 = 'Infobox/Commons',
},
inlineImageProperties = { -- bu resim barlıqlar adları yanında kösterile, metin barlıqlar kibi (kiçik resimler içün)
P367 = true, -- felekiyat timsali
},
classes = {
above = 'infobox-above',
original = 'ts-Universal_infocard-original',
label = 'infobox-label ts-Universal_infocard-label',
split = 'infobox-split ts-Universal_infocard-split',
below = 'infobox-below',
error = 'infobox-error ts-Universal_infocard-error',
},
i18n = {
error = {
emptyWikidataEntity = 'Пустой элемент Викиданных',
noWikidataEntity = 'Отсутствует элемент Викиданных',
},
dataName = 'Universal infocard',
},
categories = {
['few-properties-shown'] = 'Статьи с универсальной карточкой, отображающей мало свойств',
},
skipPropertyIds = {
P21 = true, -- cınıs
P31 = true, -- bu …dır
P39 = true, -- faaliyet
P41 = true, -- bayraq
P94 = true, -- gerb
P121 = true, -- operator / taqım
P140 = true, -- diyanet
P163 = true, -- bayraq
P172 = true, -- qavmiy mensüplik
P237 = true, -- gerb
P279 = true, -- alt türküm (podklass)
P361 = true, -- часть от
P366 = true, -- bu …nıñ qısmıdır
P370 = true, -- «qum qutusı» (eksperiment içün bir hususiyet)
P373 = true, -- Wikimediya Commons kategoriyası
P443 = true, -- telâffuz audio faylı
P460 = true, -- belki, ... aynıdır
P487 = true, -- Unicode belgisi
P527 = true,
P551 = true,
P578 = true,
P625 = true,
P734 = true,
P735 = true,
P793 = true,
P800 = true,
P828 = true,
P855 = true,
P898 = true, -- IPA transkriptsiya
P910 = true,
P935 = true,
P948 = true,
P972 = true,
P989 = true,
P1036 = true,
P1038 = true,
P1151 = true,
P1269 = true,
P1282 = true,
P1290 = true,
P1329 = true,
P1332 = true,
P1333 = true,
P1334 = true,
P1335 = true,
P1343 = true,
P1411 = true,
P1412 = true,
P1424 = true,
P1461 = true,
P1464 = true,
P1465 = true,
P1482 = true,
P1535 = true,
P1537 = true,
P1542 = true,
P1552 = true,
P1557 = true,
P1559 = true,
P1612 = true,
P1705 = true,
P1709 = true,
P1754 = true,
P1791 = true,
P1792 = true,
P1814 = true,
P1889 = true,
P1943 = true,
P1971 = true,
P2093 = true,
P2184 = true,
P2283 = true,
P2354 = true,
P2368 = true,
P2517 = true,
P2521 = true,
P2572 = true,
P2536 = true,
P2670 = true,
P2888 = true,
P2868 = true,
P2893 = true,
P2900 = true,
P2919 = true,
P2959 = true,
P3095 = true,
P3321 = true,
P3448 = true,
P3876 = true,
P3921 = true,
P4195 = true,
P4839 = true,
P5008 = true,
P5056 = true,
P5125 = true,
P5305 = true,
P6365 = true,
P7084 = true,
P7867 = true,
P8596 = true,
P8687 = true,
P8933 = true,
P8989 = true,
},
};
aunfvw5wtuhygcnnysghzs9jej3m3pr
243677
243676
2026-04-28T10:05:10Z
Хтосьці
13041
inlineImageProperties → inlineImagePropertyIds (skipPropertyIds kibi)
243677
Scribunto
text/plain
return {
templates = {
default = 'Wikidata',
title = 'Infobox/title',
title_Q5 = 'Infobox/name',
map = mapFunction,
P1559 = 'Infobox/original name',
P1705 = 'Infobox/original name',
P373 = 'Infobox/Commons',
},
classes = {
above = 'infobox-above',
original = 'ts-Universal_infocard-original',
label = 'infobox-label ts-Universal_infocard-label',
split = 'infobox-split ts-Universal_infocard-split',
below = 'infobox-below',
error = 'infobox-error ts-Universal_infocard-error',
},
i18n = {
error = {
emptyWikidataEntity = 'Пустой элемент Викиданных',
noWikidataEntity = 'Отсутствует элемент Викиданных',
},
dataName = 'Universal infocard',
},
categories = {
['few-properties-shown'] = 'Статьи с универсальной карточкой, отображающей мало свойств',
},
skipPropertyIds = {
P21 = true, -- cınıs
P31 = true, -- bu …dır
P39 = true, -- faaliyet
P41 = true, -- bayraq
P94 = true, -- gerb
P121 = true, -- operator / taqım
P140 = true, -- diyanet
P163 = true, -- bayraq
P172 = true, -- qavmiy mensüplik
P237 = true, -- gerb
P279 = true, -- alt türküm (podklass)
P361 = true, -- часть от
P366 = true, -- bu …nıñ qısmıdır
P370 = true, -- «qum qutusı» (eksperiment içün bir hususiyet)
P373 = true, -- Wikimediya Commons kategoriyası
P443 = true, -- telâffuz audio faylı
P460 = true, -- belki, ... aynıdır
P487 = true, -- Unicode belgisi
P527 = true,
P551 = true,
P578 = true,
P625 = true,
P734 = true,
P735 = true,
P793 = true,
P800 = true,
P828 = true,
P855 = true,
P898 = true, -- IPA transkriptsiya
P910 = true,
P935 = true,
P948 = true,
P972 = true,
P989 = true,
P1036 = true,
P1038 = true,
P1151 = true,
P1269 = true,
P1282 = true,
P1290 = true,
P1329 = true,
P1332 = true,
P1333 = true,
P1334 = true,
P1335 = true,
P1343 = true,
P1411 = true,
P1412 = true,
P1424 = true,
P1461 = true,
P1464 = true,
P1465 = true,
P1482 = true,
P1535 = true,
P1537 = true,
P1542 = true,
P1552 = true,
P1557 = true,
P1559 = true,
P1612 = true,
P1705 = true,
P1709 = true,
P1754 = true,
P1791 = true,
P1792 = true,
P1814 = true,
P1889 = true,
P1943 = true,
P1971 = true,
P2093 = true,
P2184 = true,
P2283 = true,
P2354 = true,
P2368 = true,
P2517 = true,
P2521 = true,
P2572 = true,
P2536 = true,
P2670 = true,
P2888 = true,
P2868 = true,
P2893 = true,
P2900 = true,
P2919 = true,
P2959 = true,
P3095 = true,
P3321 = true,
P3448 = true,
P3876 = true,
P3921 = true,
P4195 = true,
P4839 = true,
P5008 = true,
P5056 = true,
P5125 = true,
P5305 = true,
P6365 = true,
P7084 = true,
P7867 = true,
P8596 = true,
P8687 = true,
P8933 = true,
P8989 = true,
},
inlineImagePropertyIds = { -- bu resim barlıqlar adları yanında kösterile, metin barlıqlar kibi (kiçik resimler içün)
P367 = true, -- felekiyat timsali
},
};
ga08lu9sspefy476x9pqezq6mb890pg
243679
243677
2026-04-28T10:11:41Z
Хтосьці
13041
barlıq > hususiyet (daa yahşı dep ümüt etem)
243679
Scribunto
text/plain
return {
templates = {
default = 'Wikidata',
title = 'Infobox/title',
title_Q5 = 'Infobox/name',
map = mapFunction,
P1559 = 'Infobox/original name',
P1705 = 'Infobox/original name',
P373 = 'Infobox/Commons',
},
classes = {
above = 'infobox-above',
original = 'ts-Universal_infocard-original',
label = 'infobox-label ts-Universal_infocard-label',
split = 'infobox-split ts-Universal_infocard-split',
below = 'infobox-below',
error = 'infobox-error ts-Universal_infocard-error',
},
i18n = {
error = {
emptyWikidataEntity = 'Пустой элемент Викиданных',
noWikidataEntity = 'Отсутствует элемент Викиданных',
},
dataName = 'Universal infocard',
},
categories = {
['few-properties-shown'] = 'Статьи с универсальной карточкой, отображающей мало свойств',
},
skipPropertyIds = {
P21 = true, -- cınıs
P31 = true, -- bu …dır
P39 = true, -- faaliyet
P41 = true, -- bayraq
P94 = true, -- gerb
P121 = true, -- operator / taqım
P140 = true, -- diyanet
P163 = true, -- bayraq
P172 = true, -- qavmiy mensüplik
P237 = true, -- gerb
P279 = true, -- alt türküm (podklass)
P361 = true, -- часть от
P366 = true, -- bu …nıñ qısmıdır
P370 = true, -- «qum qutusı» (eksperiment içün bir hususiyet)
P373 = true, -- Wikimediya Commons kategoriyası
P443 = true, -- telâffuz audio faylı
P460 = true, -- belki, ... aynıdır
P487 = true, -- Unicode belgisi
P527 = true,
P551 = true,
P578 = true,
P625 = true,
P734 = true,
P735 = true,
P793 = true,
P800 = true,
P828 = true,
P855 = true,
P898 = true, -- IPA transkriptsiya
P910 = true,
P935 = true,
P948 = true,
P972 = true,
P989 = true,
P1036 = true,
P1038 = true,
P1151 = true,
P1269 = true,
P1282 = true,
P1290 = true,
P1329 = true,
P1332 = true,
P1333 = true,
P1334 = true,
P1335 = true,
P1343 = true,
P1411 = true,
P1412 = true,
P1424 = true,
P1461 = true,
P1464 = true,
P1465 = true,
P1482 = true,
P1535 = true,
P1537 = true,
P1542 = true,
P1552 = true,
P1557 = true,
P1559 = true,
P1612 = true,
P1705 = true,
P1709 = true,
P1754 = true,
P1791 = true,
P1792 = true,
P1814 = true,
P1889 = true,
P1943 = true,
P1971 = true,
P2093 = true,
P2184 = true,
P2283 = true,
P2354 = true,
P2368 = true,
P2517 = true,
P2521 = true,
P2572 = true,
P2536 = true,
P2670 = true,
P2888 = true,
P2868 = true,
P2893 = true,
P2900 = true,
P2919 = true,
P2959 = true,
P3095 = true,
P3321 = true,
P3448 = true,
P3876 = true,
P3921 = true,
P4195 = true,
P4839 = true,
P5008 = true,
P5056 = true,
P5125 = true,
P5305 = true,
P6365 = true,
P7084 = true,
P7867 = true,
P8596 = true,
P8687 = true,
P8933 = true,
P8989 = true,
},
inlineImagePropertyIds = { -- bu resim hususiyetler adları yanında kösterile, metin hususiyetler kibi (kiçik resimler içün)
P367 = true, -- felekiyat timsali
},
};
ebjzzypcg2kcdbqapmqgzbmwtzb20o4
243680
243679
2026-04-28T10:18:25Z
Хтосьці
13041
skipWhenOthersExistPropertyIds qoştım (eger başqa hususiyet olsa, bu hususiyetler kösterilmey: meselâ, eger “felekiyat timsali” olsa “timsal”)
243680
Scribunto
text/plain
return {
templates = {
default = 'Wikidata',
title = 'Infobox/title',
title_Q5 = 'Infobox/name',
map = mapFunction,
P1559 = 'Infobox/original name',
P1705 = 'Infobox/original name',
P373 = 'Infobox/Commons',
},
classes = {
above = 'infobox-above',
original = 'ts-Universal_infocard-original',
label = 'infobox-label ts-Universal_infocard-label',
split = 'infobox-split ts-Universal_infocard-split',
below = 'infobox-below',
error = 'infobox-error ts-Universal_infocard-error',
},
i18n = {
error = {
emptyWikidataEntity = 'Пустой элемент Викиданных',
noWikidataEntity = 'Отсутствует элемент Викиданных',
},
dataName = 'Universal infocard',
},
categories = {
['few-properties-shown'] = 'Статьи с универсальной карточкой, отображающей мало свойств',
},
skipPropertyIds = {
P21 = true, -- cınıs
P31 = true, -- bu …dır
P39 = true, -- faaliyet
P41 = true, -- bayraq
P94 = true, -- gerb
P121 = true, -- operator / taqım
P140 = true, -- diyanet
P163 = true, -- bayraq
P172 = true, -- qavmiy mensüplik
P237 = true, -- gerb
P279 = true, -- alt türküm (podklass)
P361 = true, -- часть от
P366 = true, -- bu …nıñ qısmıdır
P370 = true, -- «qum qutusı» (eksperiment içün bir hususiyet)
P373 = true, -- Wikimediya Commons kategoriyası
P443 = true, -- telâffuz audio faylı
P460 = true, -- belki, ... aynıdır
P487 = true, -- Unicode belgisi
P527 = true,
P551 = true,
P578 = true,
P625 = true,
P734 = true,
P735 = true,
P793 = true,
P800 = true,
P828 = true,
P855 = true,
P898 = true, -- IPA transkriptsiya
P910 = true,
P935 = true,
P948 = true,
P972 = true,
P989 = true,
P1036 = true,
P1038 = true,
P1151 = true,
P1269 = true,
P1282 = true,
P1290 = true,
P1329 = true,
P1332 = true,
P1333 = true,
P1334 = true,
P1335 = true,
P1343 = true,
P1411 = true,
P1412 = true,
P1424 = true,
P1461 = true,
P1464 = true,
P1465 = true,
P1482 = true,
P1535 = true,
P1537 = true,
P1542 = true,
P1552 = true,
P1557 = true,
P1559 = true,
P1612 = true,
P1705 = true,
P1709 = true,
P1754 = true,
P1791 = true,
P1792 = true,
P1814 = true,
P1889 = true,
P1943 = true,
P1971 = true,
P2093 = true,
P2184 = true,
P2283 = true,
P2354 = true,
P2368 = true,
P2517 = true,
P2521 = true,
P2572 = true,
P2536 = true,
P2670 = true,
P2888 = true,
P2868 = true,
P2893 = true,
P2900 = true,
P2919 = true,
P2959 = true,
P3095 = true,
P3321 = true,
P3448 = true,
P3876 = true,
P3921 = true,
P4195 = true,
P4839 = true,
P5008 = true,
P5056 = true,
P5125 = true,
P5305 = true,
P6365 = true,
P7084 = true,
P7867 = true,
P8596 = true,
P8687 = true,
P8933 = true,
P8989 = true,
},
inlineImagePropertyIds = { -- bu resim hususiyetler adları yanında kösterile, metin hususiyetler kibi (kiçik resimler içün)
P367 = true, -- felekiyat timsali
},
skipWhenOthersExistPropertyIds = { -- eger başqa hususiyet olsa bu hususiyetler kösterilmey
P913 = { "P367" }, -- eger “felekiyat timsal” [P367] bar, “timsal” [P913] kösterilmemeli
},
};
d4mul6oz5ubw2i8grc27kke0jd15hhc
243683
243680
2026-04-28T10:44:18Z
Хтосьці
13041
skipIfUntranslatedPropertyIds qoştım: eger bu hususiyetler qırımtatarca olmasa, onı kösterimemeli (meselâ [[Çolpan]] saifesinde nemse tilinde “IPA transkriptsiya” [ ˈveːnʊs], “demonim” [Venusian, Venerian, Venusano, Vénusien ве زُهَرِيٌّ])
243683
Scribunto
text/plain
return {
templates = {
default = 'Wikidata',
title = 'Infobox/title',
title_Q5 = 'Infobox/name',
map = mapFunction,
P1559 = 'Infobox/original name',
P1705 = 'Infobox/original name',
P373 = 'Infobox/Commons',
},
classes = {
above = 'infobox-above',
original = 'ts-Universal_infocard-original',
label = 'infobox-label ts-Universal_infocard-label',
split = 'infobox-split ts-Universal_infocard-split',
below = 'infobox-below',
error = 'infobox-error ts-Universal_infocard-error',
},
i18n = {
error = {
emptyWikidataEntity = 'Пустой элемент Викиданных',
noWikidataEntity = 'Отсутствует элемент Викиданных',
},
dataName = 'Universal infocard',
},
categories = {
['few-properties-shown'] = 'Статьи с универсальной карточкой, отображающей мало свойств',
},
skipPropertyIds = {
P21 = true, -- cınıs
P31 = true, -- bu …dır
P39 = true, -- faaliyet
P41 = true, -- bayraq
P94 = true, -- gerb
P121 = true, -- operator / taqım
P140 = true, -- diyanet
P163 = true, -- bayraq
P172 = true, -- qavmiy mensüplik
P237 = true, -- gerb
P279 = true, -- alt türküm (podklass)
P361 = true, -- часть от
P366 = true, -- bu …nıñ qısmıdır
P370 = true, -- «qum qutusı» (eksperiment içün bir hususiyet)
P373 = true, -- Wikimediya Commons kategoriyası
P443 = true, -- telâffuz audio faylı
P460 = true, -- belki, ... aynıdır
P487 = true, -- Unicode belgisi
P527 = true,
P551 = true,
P578 = true,
P625 = true,
P734 = true,
P735 = true,
P793 = true,
P800 = true,
P828 = true,
P855 = true,
P910 = true,
P935 = true,
P948 = true,
P972 = true,
P989 = true,
P1036 = true,
P1038 = true,
P1151 = true,
P1269 = true,
P1282 = true,
P1290 = true,
P1329 = true,
P1332 = true,
P1333 = true,
P1334 = true,
P1335 = true,
P1343 = true,
P1411 = true,
P1412 = true,
P1424 = true,
P1461 = true,
P1464 = true,
P1465 = true,
P1482 = true,
P1535 = true,
P1537 = true,
P1542 = true,
P1552 = true,
P1557 = true,
P1559 = true,
P1612 = true,
P1705 = true,
P1709 = true,
P1754 = true,
P1791 = true,
P1792 = true,
P1814 = true,
P1889 = true,
P1943 = true,
P1971 = true,
P2093 = true,
P2184 = true,
P2283 = true,
P2354 = true,
P2368 = true,
P2517 = true,
P2521 = true,
P2572 = true,
P2536 = true,
P2670 = true,
P2888 = true,
P2868 = true,
P2893 = true,
P2900 = true,
P2919 = true,
P2959 = true,
P3095 = true,
P3321 = true,
P3448 = true,
P3876 = true,
P3921 = true,
P4195 = true,
P4839 = true,
P5008 = true,
P5056 = true,
P5125 = true,
P5305 = true,
P6365 = true,
P7084 = true,
P7867 = true,
P8596 = true,
P8687 = true,
P8933 = true,
P8989 = true,
},
inlineImagePropertyIds = { -- bu resim hususiyetler adları yanında kösterile, metin hususiyetler kibi (kiçik resimler içün)
P367 = true, -- felekiyat timsali
},
skipWhenOthersExistPropertyIds = { -- eger başqa hususiyet olsa bu hususiyetler kösterilmey
P913 = { "P367" }, -- eger “felekiyat timsal” [P367] bar, “timsal” [P913] kösterilmemeli
},
skipIfUntranslatedPropertyIds = { -- bu hususiyetten tek qırımtatarca tercime etilgen şeyler kösterilmeli
P898 = true, -- IPA transkriptsiya
P1549 = true, -- demonim
},
};
o4juo9jhiiw54as2rbpg4lewy701ped
Şablon:Potd/2026-06-13 (crh)
10
60143
243666
243664
2026-04-27T18:59:46Z
Хтосьці
13041
Meryemniñ yürek > Meryemniñ yüregi
243666
wikitext
text/x-wiki
[[Missuri]] ştatında Sent-Piters şeerinde kilsedeki vitrajında Meryemniñ lekesiz yürekniñ resmi. Bugün Roma [[Katoliklik|Katolikliginde]] Meryemniñ lekesiz yüreginiñ bayramı.
nvnyr2z4dvz23ucsheut57k016fx5pl
243667
243666
2026-04-27T19:00:12Z
Хтосьці
13041
izafet
243667
wikitext
text/x-wiki
[[Missuri]] ştatında Sent-Piters şeerinde kilsedeki vitrajında Meryemniñ lekesiz yüreginiñ resmi. Bugün Roma [[Katoliklik|Katolikliginde]] Meryemniñ lekesiz yüregi bayramı.
hywqlr3i0cd6jnvuh3coy1g4j0qf1dg
Şablon:Potd/2026-06-15 (crh)
10
60145
243668
2026-04-28T08:11:31Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#15]] ingliz metnini tercime etip baqtım: «Mountain gorilla (Gorilla beringei beringei), Bwindi Impenetrable National Park, Uganda» → «Dağ gorillası (Gorilla beringei beringei), Bvindi keçilmez milliy parkı, Uganda». Gorilla: mında taptım https://library.mediaworks.global/files/hearts-of-fire--crh.pdf (144-inci saifede «Бу Пётрнынъ къоллары горилланынъ къоллары киби», ingliz «That Peter has hands like a gorilla» metniniñ tercimesi).
243668
wikitext
text/x-wiki
Dağ gorillası (-{''Gorilla beringei beringei''}-), Bvindi keçilmez milliy parkı, [[Uganda]].
6bu9sywzlp0ck6cp14m5cbrw5irurqk
Şablon:Potd/2026-06-15
10
60146
243669
2026-04-28T08:11:58Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#15]] ingliz saifesinden kopiya yaptım
243669
wikitext
text/x-wiki
Gorila de montaña (Gorilla beringei beringei), parque nacional de la Selva Impenetrable de Bwindi, Uganda, 2024-02-02, DD 80.jpg
3pgihnfj6uejcw9e9wluk7czczwhqgz
Şablon:Potd/2026-06-17 (crh)
10
60147
243670
2026-04-28T08:28:09Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#17]] ingliz metnini tercime etip baqtım: «Lt. Col. Nick Rutgers preparing his F-15 Eagle for flight» → «Podpolkovnik Nik Ratgers F-15 Eagle uçağı uçuşğa azırlay». “Lt. Col.”: “podpolkovnik” ctcorpus.org korpusında ve https://ktat.krymr.com/s?k=podpolk* saytında taptım
243670
wikitext
text/x-wiki
Podpolkovnik Nik Ratgers -{F-15 Eagle}- uçağı uçuşğa azırlay.
nlr7l45gmtnfqx8236rnu536x28xrda
Şablon:Potd/2026-06-17
10
60148
243671
2026-04-28T08:28:32Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#17]] ingliz saifesinden kopiyaladım
243671
wikitext
text/x-wiki
Weapons Instructor Course.jpg
rei8oxxfovc4g4eplutpadh7wipfwuo
Şablon:Potd/2026-06-30 (crh)
10
60149
243672
2026-04-28T08:36:52Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#30]] ingliz metnini tercime etip baqtım: «Little street musicians, Paris. Image captured between 1910 and 1929.» → «[[Paris]] şeerinde bala soqaq çalğıcıları. Resim 1910 ve 1929 seneleri arasında çıqarılğan.»
243672
wikitext
text/x-wiki
[[Paris]] şeerinde bala soqaq çalğıcıları. Resim 1910 ve 1929 seneleri arasında çıqarılğan.
g95pq36laxnu7kqmpdtfvjdduofnhzy
Şablon:Potd/2026-06-30
10
60150
243673
2026-04-28T08:37:22Z
Хтосьці
13041
[[commons:Template:Potd/2026-06#30]] ingliz saifesinden kopiya yaptım
243673
wikitext
text/x-wiki
Séeberger, Petites musiciennes de rue - CMN.jpg
qxok32cj2ohmpu3p0ex1j8g6uekapm0
Modul:Universal infocard/belge
828
60151
243674
2026-04-28T08:52:34Z
Хтосьці
13041
Yañı saife yaratıldı. Mündericesi: 'Bu, universal infoqalıp köstergen <code><nowiki>{{</nowiki>[[Şablon:universal infocard|universal infocard]]<nowiki>}}</nowiki></code> şablonı içün bir -{crh-latn: modul; crh-cyrl: модуль}-. O Vikimalümattan (Vikiberiden) malümat köstere. Sazlamalar -{[[Modul:Universal infocard/config|Universal infocard/config]]}- -{crh-latn: modulde; crh-cyrl: модульде}- deñiştirmek mümkün. Bu -{crh-latn: modul; crh-cyrl: модуль}-...'
243674
wikitext
text/x-wiki
Bu, universal infoqalıp köstergen <code><nowiki>{{</nowiki>[[Şablon:universal infocard|universal infocard]]<nowiki>}}</nowiki></code> şablonı içün bir -{crh-latn: modul; crh-cyrl: модуль}-. O Vikimalümattan (Vikiberiden) malümat köstere.
Sazlamalar -{[[Modul:Universal infocard/config|Universal infocard/config]]}- -{crh-latn: modulde; crh-cyrl: модульде}- deñiştirmek mümkün.
Bu -{crh-latn: modul; crh-cyrl: модуль}- başqa tillerdeki Vikipediyalarda da bar:
* ukraince: -{[[:uk:Модуль:Universal infocard]]}-,
* rusca: -{[[:ru:Модуль:Universal infocard]]}-,
* türkçe: -{[[:tr:Modül:Universal infocard]]}-.
7i9v4jvtisnql3lbe6si3fk57lmu2hs