Пређи на садржај

Модул:Sources/utils/док

Iz Vojne Enciklopedije
(разл) ← Старија измена | Тренутна верзија (разл) | Новија измена → (разл)

Ово је документациона подстраница за Модул:Sources/utils

Принцип рада модула

Овај модул генерише текст коришћен у фуснотама изведеним са ставки Википодатака.

Функције

Спољашње

coalesce(arg1, arg2, arg3, arg4)

expandBookSeries(context, data)

isInstanceOf(entity, typeEntityId)

isEmpty(str)

copyArgsToSnaks(args, snaks)

getLangCode(langEntityId)

populateDataFromClaims(context, entityId, claims, data)

getSingle(value)

toString(context, value, options)

wrapInUrl(urls, text)

getElementLink(context, entityId, entity)

populateSourceDataImpl(context, entity, plainData)

expandPublication(context, sourceEntity, data)

expandSpecialsQualifiers(context, entity, propertyId, data)

Expand special types of references when additional data could be found in OTHER entity properties

expandSpecials(context, currentEntity, reference, data)

preprocessPlaces(data, lang)

toWikibaseEntityIdSnak(propertyId, entityId)

getEntity(context, entityId)

Унутрашње

getSingleStringQualifierValue(allQualifiers, qualifierPropertyId)

appendImpl_toTable(result, resultProperty)

tokenizeName(fullName)

appendImpl(datavalue, qualifiers, result, property, options)

appendSnaks(allSnaks, snakPropertyId, result, property, options)

appendQualifiers(claims, qualifierPropertyId, result, resultProperty, options)

assertNotNull(argName, arg)

toStringSnak(propertyId, strValue)

toUrlSnak(propertyId, strValue)

findClaimsByValue(entity, propertyId, value)

getBestStatements(entity, propertyId)

getNormativeTitle(entity)

renderLink(context, entityId, customTitle, options)

toTextWithTip(text, tip)

getPlaceName(lang, placeId)