Módulo:WDBasesArt

Fonte: Enciclopédia de conhecimento da Igreja de Deus
Revisão em 01h36min de 14 de maio de 2024 por Jaewoo (discussão | contribs) (Criou a página com "local p = {} ------------------------------------------------------------------------------- local ArtsIDs = { ['P347'] = 'http://www.culture.gouv.fr/public/mistral/joconde_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=$1', ['P350'] = 'https://rkd.nl/explore/images/$1', ['P1212'] = 'http://cartelfr.louvre.fr/cartelfr/visite?srv=car_not_frame&idNotice=$1', ['P1428'] = 'http://www.lostart.de/EN/Verlust/$1', ['P1679'] = 'https://artuk.org/discover/artworks/$1...")
(dif) ← Revisão anterior | Revisão atual (dif) | Revisão seguinte → (dif)
Saltar para a navegação Saltar para a pesquisa

A documentação para este módulo pode ser criada na página Módulo:WDBasesArt/doc

local p = {}
-------------------------------------------------------------------------------
local ArtsIDs = {
				['P347'] = 'http://www.culture.gouv.fr/public/mistral/joconde_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=$1',
				['P350'] = 'https://rkd.nl/explore/images/$1',
				['P1212'] = 'http://cartelfr.louvre.fr/cartelfr/visite?srv=car_not_frame&idNotice=$1',
				['P1428'] = 'http://www.lostart.de/EN/Verlust/$1',
				['P1679'] = 'https://artuk.org/discover/artworks/$1',
				['P1726'] = 'http://www.polomuseale.firenze.it/inv1890/scheda.asp?position=1&ninv=$1',
				['P2014'] = 'http://www.moma.org/collection/works/$1',
				['P2092'] = 'http://www.bildindex.de/obj$1.html',
				['P2108'] = 'https://www.kulturarv.dk/kid/VisVaerk.do?vaerkId=$1',
				['P2242'] = 'http://www.polomuseale.firenze.it/catalogo/scheda.asp?nctn=$1&value=1',
				['P2282'] = 'http://groeningemuseum.be/collection/work/id/$1',
				['P2344'] = 'http://www.purl.org/inha/agorha/003/$1',
				['P2511'] = 'http://mskgent.be/collection/work/id/$1',
				['P2539'] = 'http://collection.nationalmuseum.se/eMuseumPlus?service=ExternalInterface&module=collection&objectId=$1&viewType=detailView',
				['P2582'] = 'http://www.getty.edu/art/collection/objects/$1',
				['P3272'] = 'http://catalogo.fondazionezeri.unibo.it/scheda/opera/$1/',
				['P3293'] = 'http://balat.kikirpa.be/object/$1',
				['P3386'] = 'http://frenchsculpture.org/sculpture/$1',
				['P3386'] = 'https://frenchsculpture.org/fr/sculpture/$1',
				['P3467'] = 'http://www.polomuseale.firenze.it/invSculture/scheda.asp?position=1&ninv=$1',
				['P3504'] = 'http://www.polomuseale.firenze.it/invpalatina/scheda.asp?position=1&ninv=$1',
				['P3634'] = 'http://www.metmuseum.org/art/collection/search/$1',
				['P3711'] = 'http://vanderkrogt.net/statues/object.php?record=$1',
				['P3855'] = 'http://www.lombardiabeniculturali.it/opere-arte/schede/$1/',
				['P3929'] = 'http://collections.vam.ac.uk/item/$1',
				['P4144'] = 'http://www.the-athenaeum.org/art/detail.php?id=$1',
				['P4257'] = 'http://www.emuseum.jp/detail/$1',
				['P4373'] = 'http://www.nationaltrustcollections.org.uk/object/$1',
				['P4380'] = 'http://ta.sandrart.net/-artwork-$1',
				['P4399'] = 'http://enciclopedia.itaucultural.org.br/$1',
				['P4525'] = 'http://opendata.muis.ee/object/$1',
				['P4564'] = 'https://digikogu.ekm.ee/oid-$1',
				['P4582'] = 'https://www.kulturelles-erbe-koeln.de/documents/obj/$1',
				['P4610'] = 'https://www.artic.edu/artworks/$1',
				['P4611'] = 'https://collections.lacma.org/node/$1',
				['P4625'] = 'http://www.mfa.org/collections/object/$1',
				['P4643'] = 'http://www.philamuseum.org/collections/permanent/$1.html',
				['P4659'] = 'http://www.musee-orsay.fr/en/collections/index-of-works/notice.html?nnumid=$1',
				['P4659'] = 'http://www.musee-orsay.fr/fr/collections/catalogue-des-oeuvres/notice.html?nnumid=$1',
				['P4673'] = 'https://www.mfah.org/art/detail/$1',
				['P4674'] = 'http://collection.imamuseum.org/artwork/$1/',
				['P4683'] = 'https://www.nga.gov/content/ngaweb/Collection/art-object-page.$1.html',
				['P4684'] = 'https://www.ngv.vic.gov.au/explore/collection/work/$1/',
				['P4686'] = 'https://collection.cmoa.org/objects/$1',
				['P4692'] = 'http://browse.americanartcollaborative.org/object/$1.html',
				['P4701'] = 'https://www.google.com/culturalinstitute/beta/asset/wd/$1',
				['P4704'] = 'https://americanart.si.edu/collections/search/artwork/?id=$1',
				['P4709'] = 'https://collection.barnesfoundation.org/objects/$1/details',
				['P4712'] = 'https://collections.artsmia.org/art/$1',
				['P4713'] = 'http://art.thewalters.org/detail/$1',
				['P4721'] = 'http://mubevirtual.com.br/pt_br?Dados&area=ver&id=$1',
				['P4737'] = 'https://www.guggenheim.org/artwork/$1',
				['P4738'] = 'http://collections.britishart.yale.edu/vufind/Record/$1',
				['P4739'] = 'https://www.augustins.org/fr/oeuvre/-/oeuvre/$1',
				['P4740'] = 'https://www.brooklynmuseum.org/opencollection/objects/$1',
				['P4761'] = 'http://art.rmngp.fr/en/library/artworks/$1',
				['P4761'] = 'http://art.rmngp.fr/fr/library/artworks/$1',
				['P4764'] = 'http://www.culture.gouv.fr/public/mistral/arcade_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=$1',
				['P4814'] = 'https://siris-artinventories.si.edu/ipac20/ipac.jsp?&menu=search&index=.NW&term=$1',
				['P4905'] = 'http://kmska.be/collection/work/id/$1',
				['P5210'] = 'http://www.gallery.am/en/database/item/$1/',
				['P5223'] = 'http://museum.imj.org.il/artcenter/includes/item.asp?id=$1',
				['P5265'] = 'https://www.dordrechtsmuseum.nl/objecten/id/$1',
				['P5268'] = 'http://acervo.mnav.gub.uy/obras.php?q=ni:$1',
				['P5269'] = 'https://www.webumenia.sk/dielo/$1',
				['P5407'] = 'http://datenbank.museum-kassel.de/$1',
				['P5499'] = 'http://collectie.boijmans.nl/en/collection/artworks/$1',
				['P5783'] = 'http://lucascranach.org/$1',
				['P5823'] = 'https://digital.belvedere.at/objects/$1/',
				['P5891'] = 'http://www.bpk-images.de/id/$1',
				['P6004'] = 'https://www.brasilianaiconografica.art.br/obras/$1/wd',
				['P6007'] = 'http://salons.musee-orsay.fr/index/notice/$1',
				['P6020'] = 'https://www.france.tv/france-2/d-art-d-art/$1.html',
				['P6141'] = 'https://anosgrandshommes.musee-orsay.fr/index.php/Detail/objects/$1',
				['P6152'] = 'http://npg.si.edu/object/npg_$1',
				['P6238'] = 'https://monumentsmorts.univ-lille.fr/monument/$1/wd/',
				['P6239'] = 'https://monuments.iec.cat/fitxa.asp?id=$1',
				['P6246'] = 'http://parismuseescollections.paris.fr/en/node/$1',
				['P6246'] = 'http://parismuseescollections.paris.fr/fr/node/$1',
				['P6246'] = 'http://parismuseescollections.paris.fr/es/node/$1',
				['P6310'] = 'http://museosphere.paris.fr/oeuvres/$1',
				['P6332'] = 'https://www.panoramadelart.com/$1',
				['P6355'] = 'https://collection.centrepompidou.fr/#/artwork/$1',
				['P6356'] = 'http://www.ihoi.org/app/photopro.sk/ihoi_icono/detail?docid=$1&lang=eng',
				['P6358'] = 'https://www.navigart.fr/picassoparis/#/artwork/$1',
				['P6372'] = 'https://www.interpol.int/notice/search/woa/$1',
				['P6374'] = 'http://www.mam.paris.fr/en/online-collections#/artwork/$1'
}
-------------------------------------------------------------------------------
-- getArtIdentifiers takes an optional qid of a Wikidata entity passed as |qid=
-- It returns all art identifiers of that entity
-------------------------------------------------------------------------------
function p.getArtIdentifiers(frame)
				local qid = frame.args.qid or ""
				if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end
				local entity = mw.wikibase.getEntityObject(qid)
				local props
				local out = {}
			
				for k, v in pairs(ArtsIDs) do
								if entity and entity.claims[k] then
												props = entity.claims[k]
												for k2, v2 in pairs(props) do
																if v2.mainsnak.snaktype ~= 'novalue' then
																				out[#out+1] = '[' .. mw.ustring.gsub(v, '$1', v2.mainsnak.datavalue.value) .. ']'
																end
												end
								end
				end
			
				return table.concat(out,"")
end
return p