Anasayfa
Rastgele
Oturum aç
Ayarlar
Sanarşiv hakkında
Sorumluluk reddi
Ara
"
Modül:Wikidata/Software
" sayfasını değiştirmektesiniz
Uyarı:
Oturum açmadınız. Bir düzenleme yaptığınızda, sizin için geçici bir hesap oluşturulur.
Daha fazla bilgi
. Bu hesabın süresi dolduğunda bildirimler almaya devam etmek ve diğer özelliklere erişmek için
oturum açın
ya da
hesap oluşturun
.
Anti spam denetimi. Bunu
doldurmayın
!
local p = {} --Property:P348 function p.formatVersionClaim( context, options, statement ) local snak = context.formatSnak( options, statement.mainsnak ) if not snak then snak = '' end if ( statement.qualifiers ) then --Operation system/Platform if ( statement.qualifiers.P306 ) then snak = context.formatSnak( options, statement.qualifiers.P306[1] ) .. ': ' .. snak elseif ( statement.qualifiers.P400 ) then if statement.qualifiers.P400 ~= nil then snak = context.formatSnak( options, statement.qualifiers.P400[1] ) .. ': ' .. snak end end --Name if ( statement.qualifiers.P1476 ) then snak = snak .. ' ' .. context.formatSnak( options, statement.qualifiers.P1476[1] ) .. '"' end --Date of release if ( statement.qualifiers.P577 ) then snak = snak .. ' (' .. context.formatSnak( options, statement.qualifiers.P577[1] ) .. ')' elseif ( statement.qualifiers.P585 ) then snak = snak .. ' (' .. context.formatSnak( options, statement.qualifiers.P585[1] ) .. ')' end end --References if ( options.references ) then snak = snak .. context.formatRefs( options, statement ); end return snak end --Property:P348 function p.formatVersionProperty( context, options ) if ( not context ) then error( 'context not specified' ); end; if ( not options ) then error( 'options not specified' ); end; if ( not options.entity ) then error( 'options.entity missing' ); end; local typeFilter = options.property; if options.type == 'all' then elseif options.type == 'stable' then typeFilter = typeFilter .. '[p548:q12355314,p548:q2804309,p548:q15726348,p548:q20631656]' elseif options.type == 'unstable' then typeFilter = typeFilter .. '[p548][!p548:q12355314][!p548:q15726348][!p548:q2804309][!p548:q20631656]' elseif options.type == 'alpha' then typeFilter = typeFilter .. '[p548:q2122918]' elseif options.type == 'beta' then typeFilter = typeFilter .. '[p548:q3295609]' elseif options.type == 'rc' then typeFilter = typeFilter .. '[p548:q1072356]' elseif options.type == 'test' then typeFilter = typeFilter .. '[p548][!p548:q2122918][!p548:q3295609][!p548:q1072356][!p548:q12355314][!p548:q15726348][!p548:q2804309][!p548:q20631656]' else typeFilter = typeFilter .. '[!p548]' end local WDS = require( 'Module:WikidataSelectors' ); local claims = WDS.filter( options.entity.claims, typeFilter ); if claims == nil then return '' end local formattedClaims = {} for i, claim in ipairs( claims ) do local formattedStatement = p.formatVersionClaim( context, options, claim ) if formattedStatement then formattedStatement = '<span class="wikidata-claim" data-wikidata-property-id="' .. string.upper( options.property ) .. '" data-wikidata-claim-id="' .. claim.id .. '">' .. formattedStatement .. '</span>' table.insert( formattedClaims, formattedStatement ) end end local out = mw.text.listToText( formattedClaims, options.separator, options.conjunction ) if out ~= '' then if options.before then out = options.before .. out end if options.after then out = out .. options.after end end return out end --Property:P1195 function p.formatExtension( context, options, value ) local dot = '' if string.sub( value, 1, 1 ) ~= '.' then dot = '.' end return '<code>' .. dot .. value .. '</code>' end return p
Özet:
Sanarşiv web sitesine yapılan tüm katkıların diğer katılımcılar tarafından düzenlenebileceğini, değiştirilebileceğini veya kaldırılabileceğini lütfen unutmayın. Yazınızın acımasızca düzenlenmesini istemiyorsanız, buraya göndermeyin.
Ayrıca, bunu kendiniz yazdığınızı veya herkese açık bir alandan veya benzeri ücretsiz bir kaynaktan kopyaladığınıza söz veriyorsunuz (ayrıntılar için
Sanarşiv:Telif hakları
sayfasına bakın).
Telif hakkıyla korunan eseri izinsiz göndermeyin!
İptal
Değişiklik yardımı
(yeni pencerede açılır)
Bu sayfada yer alan sayfa:
Modül:Wikidata/Software/belge
(
değiştir
)