Wikipedia:Café/Portal/Archivo/Técnica/2024/07
Wikidata weekly summary #633
editarThis is the Wikidata summary of the week before 2024-06-24. Please help Translate.
- Past: The 200th online Wikidata meetup in Swedish was held.
- Upcoming: Lexicodays, online event dedicated to Lexemes on Wikidata, will take place on June 28-30. It takes place across time zone and both in English and Indonesian. Check the program and find the access links on the event page.
Press, articles, blog posts, videos
- Blogs: 20th Century Press Archives – history in newspaper clippings, made accessible by ZBW and Wikimedia. The blog discusses how ZBW and Wikimedia collaborated to digitize and make accessible the 20th Century Press Archives, integrating its metadata into Wikidata items and providing fresh access to 3.8 million digitized pages from raw microfilm1.
- Notebooks: Dashboard of European Parliament
Tool of the week
- Wikidata in Prometheus - Prometheus is a non-commercial image archive for art and cultural studies. It hosts images from a variety of image and media databases and now works can be connected with Wikidata.
- New Mix'n'match feature: For lists of (full or auto) matches where both the MnM entry and the Wikidata Item have coordinates, it now shows the distance between them in the description. (source)
Other Noteworthy Stuff
- The Wikidata development team at Wikimedia Deutschland is planning a brief survey to understand the various ways people contribute to the project and identify user contribution patterns. A request has been made for a CentralNotice banner to deploy the survey to a broad audience. Your feedback, comments, and questions on this request are welcome: m:CentralNotice/Request/Wikidata Community Survey 2024
- The second iteration of the Wikidata:Open Online Course will begin from July 1 until August 11. Whether you're a beginner taking your first steps, an individual in need of a refresher on Wikidata concepts, or a seasoned trainer looking to level up your skills - this course is right for you.
Newest properties and property proposals to review
- Newest General datatypes:
- showrunner (person who is responsible for the day-to-day operation of a television show)
- music mood (qualifier carrying an emotion (mood) relevant to a musical audio recording)
- Newest External identifiers: Locomotive Yaroslavl HC player ID, Orthoptera Species File taxon ID (new), Flown From the Nest person ID, Online Swahili - English Dictionary ID, A Dictionary of Plant Sciences ID, A Dictionary of Zoology ID, A Dictionary of Contemporary Icelandic ID, Seret film ID, Limited Liability Partnership Identification Number, Paleobiology database reference ID, PNG School Code, Téarma ID, IMAIOS entity ID, Naturalis Repository ID, English-Spanish Dictionary ID, Vikidia ID, thisisbasketball.be player ID, poblesdecatalunya.cat ID, Oqaasersiorfik ID, MNAHA person ID, Greenlandic-English Dictionary ID, Te Aka Māori Dictionary ID, Tropicos person ID, He Pātaka Kupu ID, vehicle keeper marking (VKM), AllGame style ID, FC Metz player ID, MoFo ID, itch.io numeric ID, filmas.lv film ID, filmas.lv person ID, filmas.lv studio ID, Cockroach Species File taxon ID (new), Lygaeoidea Species File taxon ID (new), Phasmida Species File taxon ID (new), Psocodea Species File taxon ID (new), Spanish-English Dictionary ID, Norwegian National Museum producer ID, Burgenwelt ID, Irish-English Dictionary ID, Tesoro della Lingua Italiana delle Origini ID, Tommaseo-Bellini Online ID, danskfodbold.com player ID, DAKA Danish-Greenlandic Dictionary ID, DAKA Greenlandic-Danish Dictionary ID, Canadian Great War Project person ID, English-Irish Dictionary ID, PMC journal ID, Census ID, Douban personage ID, AviBase person ID
- New General datatypes property proposals to review:
- Nom dans la langue locale ()
- YAMAP mountain ID (YAMAP mountain ID)
- coin edge (Coin edges may be plain (smooth) or patterned, or a combination of both. They can also include lettering.)
- ozone depletion potential (relative amount of degradation to the ozone layer relative to CFC-11)
- New External identifier property proposals to review: Pocket Oxford-Hachette French Dictionary: English-French ID, Fowler’s Concise Dictionary of Modern English Usage ID, código del Inventario del Patrimonio Cultural de Castilla-La Mancha, Farhang-i farsī ba rusī ID, Cineuropa international sales agent ID, Cineuropa production company ID, Cineuropa distributor ID, Biodiversity Information System for Europe ID, Elonet company ID, Numista issuer ID, stiga.trefik.cz, European Education Thesaurus ID, Brezhoneg21 ID, Personnel Records of the First World War (Library and Archives Canada) ID, Canadian Virtual War Memorial ID, Federal Reserve Subject Taxonomy ID, Devri ID, OpenCitations Meta Identifier, IGN franchise ID, Plex person key, Overcast episode ID, OBJ ID, NooSFere publisher ID, Metamath statement label, Pocket Oxford German Dictionary: English-German ID, Pocket Oxford Italian Dictionary: English-Italian ID, UNIBO professor ID, Mapes de Patrimoni Cultural ID, Il Nuovo DOP ID, FEI horse ID
You can comment on all open property proposals!
Did you know?
- Query examples:
- Newest WikiProjects:
- Multilingualism - organizes work around achieving 100% Wikidata multilingualism for every language with MediaWiki internationalization support. It is initiated, developed & supported by Wikimedia Language Diversity community volunteers.
- NAVISone
- Newest database reports: Identical labels and descriptions
- Showcase Items: Kofi Annan (Q1254) - 7th Secretary-General of the United Nations (1938-2018)
- Showcase Lexemes: ʒirilana (L719353) - Dagbanli proverb that translates to "liar"
Development
- [Breaking Change Announcement] Upcoming Changes to Wikibase: EntitySchema data type
- EntitySchemas: We prepared for the release of the new data type to link to EntitySchemas in statements on July 2nd.
- Mul language code: We picked up the remaining issues before enabling it by default on Wikidata
- Wikibase REST API:
- We completed the route to modify the data of an Item (phab:T342993)
- We continued improving and reworking errors (phab:T366172, phab:T366175)
You can see all open tickets related to Wikidata here. If you want to help, you can also have a look at the tasks needing a volunteer.
Weekly Tasks
- Add labels, in your own language(s), for the new properties listed above.
- Contribute to the showcase Item and Lexeme above.
- Participate in this week's Lexeme challenge:
- Govdirectory weekly focus country: Cameroon
- Summarize your WikiProject's ongoing activities in one or two sentences.
- Help translate or proofread the interface and documentation pages, in your own language!
- Help merge identical items across Wikimedia projects.
- Help write the next summary!
16:50 24 jun 2024 (UTC)
- @Mohammed Abdulai (WMDE), can you please use our local date formats while signing this? Like "16:50 24 jun 2024 (UTC)" instead of "16:50, 24 June 2024 (UTC)". Every other international notice do that except yours. -- Leoncastro (discusión) 14:12 27 jun 2024 (UTC)
- Hi @Leoncastro, thanks for your feedback. I'd be happy to customize the date to the local format, but since this message is sent via MassMessage and not individually, I'm not sure how to do that. Do you have any tips on how to achieve this? cc @Danny_Benjafield_(WMDE) - Mohammed Abdulai (WMDE) (discusión) 09:05 28 jun 2024 (UTC)
- @Mohammed Abdulai (WMDE), compare the Wikidata weekly summary and the Meta-Wiki Tech News. In the first one, you sign the message in your project and then the bot move the signed message to subscribers. In the Tech News message, nobody signs the original message, but the bot MediaWiki message delivery signs it locally. Maybe you do not need to touch your message but just have the bot to sign it locally. -- Leoncastro (discusión) 13:54 28 jun 2024 (UTC)
- Hi @Leoncastro, thanks for your feedback. I'd be happy to customize the date to the local format, but since this message is sent via MassMessage and not individually, I'm not sure how to do that. Do you have any tips on how to achieve this? cc @Danny_Benjafield_(WMDE) - Mohammed Abdulai (WMDE) (discusión) 09:05 28 jun 2024 (UTC)
Wikidata weekly summary #634
editarThis is the Wikidata summary of the week before 2024-07-01. Please help Translate.
Discussions
- New requests for permissions/Bot:
- DifoolBot 4 Task(s) - Split single references containing multiple reference URLs into multiple references.
- Bot Bozze Task(s) - Add sitelinks to itwiki draft articles after they've been moved to the main namespace.
- New request for comments: Spelling convention for labels and descriptions in English - RfC started 2024-06-25. This RfC requests feedback and input for finding consistency in spelling convention as English has multiple regional variations.
- Past: The Lexicodays 2024 was an online event designed to offer a discussion space for the Wikidata community about Lexicographical Data. An archive of some of the slides and session recordings are here c:Category:Lexicodays 2024. More will be added as they become available.
- Upcoming:
- The next Wikidata+Wikibase office hours will take place on Wednesday, 16:00 UTC on Wednesday, 10th July 2024 (18:00 Berlin time) in the Wikidata Telegram group. The Wikidata and Wikibase office hours are online events where the development team presents what they have been working on over the past quarter, and the community is welcome to ask questions and discuss important issues related to the development of Wikidata and Wikibase.
- Talk to the Search Platform / Query Service Team—July 3, 2024
- Botany-focused Wikidata online workshop online as part of the #IBC2024. Date: Tuesday 9th July at 9pm NZST (GMT+12) / 11 am central Europe. Register here!
Press, articles, blog posts, videos
- Blogs
- Querying for audio on Wikidata - This blog post discusses using SPARQL queries on Wikidata to find audio recordings, focusing on musical compositions and their associated genres.
- Stories from the anti-disinformation repository: Why Wikimedia is an antidote to disinformation - The blog post highlights how Wikidata, as a central storage repository, plays a crucial role in countering disinformation by providing reliable, structured data for Wikimedia projects and beyond.
- Diff Blog: Imagining a Wikidata future for librarians together - the sixth and final blog post from the LD42023 conference. Silvia Gutiérrez (WMF) and Giovanna Fontenelle (WMF) document the results of the collaborative session on building a bridge between the Library-Wikidata community and WMF.
- Census IDs are Now Wikidata External Identifiers
- Library Knowledge as Linked Data: A Wikidata Approach: Contributing to a shared data commons. David Erlandson describes the experiences of using Wikidata for the pilot Program for Cooperative Cataloging to "accelerate the movement towards ubiquitous identifier creation and identity management at the network level".
- Papers
- Mapping the Past: Geographically Linking an Early 20th Century Swedish Encyclopedia with Wikidata - This paper describes the extraction of location entries from a prominent Swedish encyclopedia and sheds light on selection and representation of geographic information in the Nordisk Familjebok. By A. Ahlin, A. Myrne & P. Nugues.
- Papers from the just-ended Wiki Workshop 2024
- Do LOD Conventions Impede the Representation of Diversity? The Case of Disabled Actors in DBpedia and Wikidata?
- SPARQL for LIS Analytics: Exploring Gender Representation amongst PCC Wikidata Pilot Participant
- Wikidata Vandalism Detection with Graph-Linguistic Fusion
- Wikidata Quality Toolkit: Entity Schema Generator Demonstration (tool demonstration)
- Videos
- Wikidata Knowledge Graph to Enable Equitable and Validated Generative AI - Wikimedia Deutschland's Jonathan Fraine and Lydia Pintscher show how Wikidata can be used to provide well-cited information and how semantic search can augment generative AI inference. Presented at the Open Source GenAI & ML Summit.
- Wikidata Editing LIVE at Lexico Days 2024 - User:Abbe98 and User:JanAinali are back for another session of live-editing, focused on lexicographical data, during the Lexico Days 2024 event that took place this last weekend, June 28 - June 30.
- Get more out of Wikidata with Resonator - Rachel Hendrick and Gary Price of LibTech Tools walk through Resonator and point out the best ways to use it. Resonator is available on ToolForge.
- Knowledge Integrity: Reliability- Wikidata Vandalism Detection with Graph Linguistic Fusion - Diego (WMF) and Mykola Trokhmovych showcase their work on building a model to help Wikidata editors identify edits that require patrolling, as part of the [Wiki Workshop 2024.
- Inclusion of Communities: Using Wikibase to Leverage Community Sourced Data Initiatives - Erin Yunes talks about their work in using Wikibase Cloud as part of the Compel project (COmputer Music Preservation Electronic Library).
- (es) ¿Cómo fortalecer el dominio público con Wikidata? - This Wikitools Workshop hosted by Jorge Gemetto is on Paulina, a tool for exploring and accessing public domain information on authors and their works.
Tool of the week
- Automatic Structuring of text for Wikidata - User:BrokenSegue introduces their new tool.
- User:Zvpunry/CreateNewItem - This is a User script to easily add a new Item while editing a Statement and noticing that the desired Item is missing.
Other Noteworthy Stuff
- The second iteration of the Wikidata:Open Online Course has begun. Class will continue until August 11. Whether you're a beginner taking your first steps, an individual in need of a refresher on Wikidata concepts, or a seasoned trainer looking to level up your skills - this course is right for you.
Newest properties and property proposals to review
- Newest General datatypes:
- showrunner (person who is responsible for the day-to-day operation of a television show)
- music mood (qualifier carrying an emotion (mood) relevant to a musical audio recording)
- coin edge (image or images that show the edge of a coin)
- ozone depletion potential (relative amount of degradation to the ozone layer relative to CFC-11)
- Newest External identifiers: Locomotive Yaroslavl HC player ID, Orthoptera Species File taxon ID (new), Flown From the Nest person ID, Online Swahili - English Dictionary ID, A Dictionary of Plant Sciences ID, A Dictionary of Zoology ID, A Dictionary of Contemporary Icelandic ID, Seret film ID, Limited Liability Partnership Identification Number, Paleobiology database reference ID, PNG School Code, Téarma ID, IMAIOS entity ID, Naturalis Repository ID, English-Spanish Dictionary ID, Vikidia article ID, thisisbasketball.be player ID, poblesdecatalunya.cat ID, Oqaasersiorfik ID, MNAHA person ID, Greenlandic-English Dictionary ID, Te Aka Māori Dictionary ID, Tropicos person ID, He Pātaka Kupu ID, vehicle keeper marking (VKM), AllGame style ID, FC Metz player ID, MoFo ID, itch.io numeric ID, filmas.lv film ID, filmas.lv person ID, filmas.lv studio ID, Cockroach Species File taxon ID (new), Lygaeoidea Species File taxon ID (new), Phasmida Species File taxon ID (new), Psocodea Species File taxon ID (new), Spanish-English Dictionary ID, Norwegian National Museum producer ID, Burgenwelt ID, Irish-English Dictionary ID, Tesoro della Lingua Italiana delle Origini ID, Tommaseo-Bellini Online ID, danskfodbold.com player ID, DAKA Danish-Greenlandic Dictionary ID, DAKA Greenlandic-Danish Dictionary ID, Canadian Great War Project person ID, English-Irish Dictionary ID, PMC journal ID, Census ID, Douban personage ID, Avibase person ID, Brezhoneg21 ID, European Education Thesaurus ID, Cineuropa distributor ID, Cineuropa production company ID, OpenCitations Meta ID, IGN franchise ID, Federal Reserve Subject Taxonomy ID, Farhang-i forsī ba rusī ID, Devri ID, Cambridge University Press ID, Canadian Virtual War Memorial ID, Personnel Records of the First World War ID, Fowler’s Concise Dictionary ID, NooSFere publisher ID, Plex person key, BHMPI OBJ ID, Index Fungorum person ID, stiga.trefik.cz player ID, UNIBO professor ID, Cineuropa international sales agent ID, Mapes de Patrimoni Cultural ID
- New General datatypes property proposals to review:
- number of local branches (number of branches of this organization at the lowest (local) level)
- KANAL inventory ID (inventory number of a creative work assigned by KANAL)
- Tüik mahalle id (Identifier of neighborhoods <small>({{q|Q17051044}})</small> in Turkey in TÜİK <small>({{q|Q1375058}})</small> database)
- New External identifier property proposals to review: Pocket Oxford-Hachette French Dictionary: English-French ID, Biodiversity Information System for Europe ID, Elonet company ID, Numista issuer ID, Overcast episode ID, Metamath statement label, Pocket Oxford German Dictionary: English-German ID, Pocket Oxford Italian Dictionary: English-Italian ID, Il Nuovo DOP ID, FEI horse ID, Google Play author ID, identifiant d'une personne sur Archelec, Standard Ebooks ID, Lojas com História ID, RGALI person ID, RGALI organization ID, Hebrew Academy term ID, milononline.net entry ID, KANAL identifier, LAGL author ID, Alle Burgen, FC Krasnodar player id, Pocket Oxford Italian Dictionary: Italian-English ID, Pocket Oxford German Dictionary: German-English ID, Pocket Oxford-Hachette French Dictionary: French-English ID, Manhom Arabic Profile ID, GOArt databas, ArchWiki article, Star Wars.com, identifikátor filmu ve Filmové databázi (FDb)
You can comment on all open property proposals!
Did you know?
- Query examples:
- Newest WikiProjects: Inuktitut - This is the space to organize work to assure that the sum of all knowledge and the supporting infrastructure for necessary services are available in Inuktitut (ᐃᓄᒃᑎᑐᑦ, Inuktitut).
- Newest database reports: Merge candidates based on same pattern
- Showcase Items: Montblanc (Q761735) - town in the province of Tarragona, Catalonia
- Showcase Lexemes: gbuɣi (L725113) - Dagbanli verb, translates to "vomiting" and "sprouting"
Development
- EntitySchemas:
- We worked around an issue where EntitySchema pages were no longer considered “content” and had become unsearchable (phab:T368010)
- We prepared for the release of the new datatype on July 2nd.
- mul language code: We are working on the last remaining blocker before rolling out the first stage to Wikidata (phab:T362917)
- Wikibase REST API: We are continuing to rework API errors (phab:T366911, phab:T366239)
You can see all open tickets related to Wikidata here. If you want to help, you can also have a look at the tasks needing a volunteer.
Weekly Tasks
- Add labels, in your own language(s), for the new properties listed above.
- Contribute to the showcase Item and Lexeme above.
- Participate in this week's Lexeme challenge:
- Govdirectory weekly focus country: Argentina
- Summarize your WikiProject's ongoing activities in one or two sentences.
- Help translate or proofread the interface and documentation pages, in your own language!
- Help merge identical items across Wikimedia projects.
- Help write the next summary!
— El comentario anterior sin firmar es obra de MediaWiki message delivery (disc. • contribs • bloq). 17:15 1 jul 2024 (UTC)
Noticias técnicas: 2024-27
editarLas últimas noticas técnicas desde la comunidad técnica de Wikimedia. Por favor, comenta estos cambios con otros usuarios. No todos los cambios te afectarán. Traducciones en varios idiomas están disponibles.
Cambios recientes
- Dentro de las siguientes tres semanas, el modo oscuro estará disponible para todos los usuarios, incluyendo a quienes hayan inciado sesión en su cuenta y a quienes no, comenzando por la versión para móviles. Esto cumple con uno de los deseos más solicitados de la comunidad, y mejora la lectura en bajo contraste y el uso en ambientes de poca lumininosidad. Como parte de estos cambios, el modo oscuro funcionará en las páginas de Usuario y Portales. Hay más información en la última actualización por parte del grupo de desarrolladores. [1]
- Logged-in users can now set global preferences for the text-size and dark-mode, thanks to a combined effort across Foundation teams. This allows Wikimedians using multiple wikis to set up a consistent reading experience easily, for example by switching between light and dark mode only once for all wikis. [2]
- Si usas un navegador web muy antiguo, algunas características podrían no funcionar en las wikis de Wikimedia. Esto afecta a Internet Explorer 11 y versiones de Chrome, Firefox y Safari que son más antiguas a 2016. Este cambio permitirá usar nuevas características de CSS y enviar menos código a todos los lectores. [3][4]
- Los administradores de Wikipedia pueden personalizar las opciones de configuración local fácilmente usando Configuración de Comunidad. La Configuración de Comunidad fue creada para permitir a las comunidades personalizar cómo algunas características funcionan, porque cada wiki tiene necesidades únicas dependiendo de su idioma. Por el momento, los administradores pueden configurar las características de Crecimiento en sus wikis originales, para así poder reclutar y retener nuevos editores. Más opciones serán proveídas en los siguientes meses. [5]
- Editores interesados en problemas de idioma relacionados con los estándares Unicode, pueden discutirlos ahora en un nuevo espacio de conversación en MediaWiki.org. La Fundación Wikimedia es ahora un miembro del Consorcio Unicode, y el grupo de coordinación puede revisar estos problemas discutidos colaborativamente y, donde sea apropiado, llevarlos a la atención del Consorcio Unicode.
- One new wiki has been created: a Wikipedia in Mandailing (
w:btm:
) [6]
Problemas
- Los editores pueden hacer click de nuevo en los enlaces dentro de la previsualización de citas del editor visual, gracias a una corrección realizada por el Equipo de Edición. [7]
Cambios futuros
- Please help us to improve Tech News by taking this short survey. The goal is to better meet the needs of the various types of people who read Tech News. The survey will be open for 2 weeks. The survey is covered by this privacy statement. Some translations are available.
Las Noticias Técnicas son preparadas por los escritores de Noticias Técnicas y publicadas con un bot • Colabore • traduzca • obtenga ayuda • denos su opinión • suscríbase o cancele su suscripción.
Próximos pasos del Modo Oscuro
editarHola. Desde el equipo Web de la WMF quiere informar de que el Modo Oscuro ya está casi listo para su implementación. Sin embargo, para que esté disponible en esta Wikipedia (como una opción de visualización), sería necesario que la comunidad siga adaptando un mayor número de plantillas para que sean compatibles con el modo oscuro (ver recomendaciones para la compatibilidad). Mientras tanto, la propuesta del equipo es habilitar el modo oscuro como opción de visualización (opt-in) para todas las personas que hayan iniciado sesión en Wikipedia en español. En cualquier caso, nos gustaría conocer la opinión e ideas de la comunidad para seguir avanzando. Gracias. IZapico (WMF) (discusión) 17:52 20 jun 2024 (UTC)
- @IZapico (WMF), lo del «casi listo»... bueno, por un lado se nos reclama desde el desarrollo del sistema MediaWiki que se adapten los estilos al nuevo sistema Codex, pero por otro lado nos reclaman desde el Modo Oscuro que adaptemos todas las plantillas al modo oscuro sin posibilidad de usar el sistema Codex ni otras mejoras de estilo similares (T320322, T340477, T355244). Algunas recomendaciones son pésimas, como esta; pero no en su intención, sino en su desarrollo. En ese ejemplo es evidente que es necesario separar el estilo del elemento que se observa en el mal ejemplo, pero la solución no puede ser modificar cientos o miles de plantillas para fijarles a cada una de ellas un estilo individual con varios condicionales (si es modo oscuro de un color, si es modo claro de otro, si es pantalla pequeña de un tamaño, etc.). El verdadero buen ejemplo sería definir globalmente unas variables de estilo comunes a todos los proyectos, como los colores o tamaños básicos (básicamente esto es lo que ya hace Codex actualmente, pero te lo explico igualmente). Pero no solamente la parte de la interfaz (que es lo que hace Codex), sino también del contenido (y que cada proyecto, si quiere, que los personalice a su gusto). Entonces, igual que existe el
--color-base
y el--background-color-base
para definir la capa cero del negro sobre blanco (y que el Modo Oscuro lo único que hace es transformarlo en blanco sobre negro), también sería necesario definir más capas para tablas, fichas, citas, diagramas, etc. Y en lugar de mover los estilos individuales estáticos<div style="background-color: white; color: black;">...
a estilos individuales de plantilla específicos<templatestyles src="Template:Example/styles.css" /><div class="pane">Text</div>
/html.skin-theme-clientpref-night .pane { background-color: white; color: black; }
, se usaría, simple y llanamente un estilo común definido en el sistema<div class="layer0">...
oclass="wikitable"
oclass="infobox"
. Con unas pocas capas y estilos se uniformarían fácilmente la mayor parte de las plantillas, mientras que para las más exigentes se usarían estilos de plantilla más generales.pane { background-color: var(--background-color-base); color: var(--color-base); }
, usando colores y tamaños previamente definidos también en el sistema. Cuando tengamos esto, podemos empezar a hablar de que ya casi estaría todo listo. -- Leoncastro (discusión) 14:55 28 jun 2024 (UTC)- Hola @Leoncastro. Todos los códigos de diseño Codex para los colores están disponibles a través de variables CSS para su uso en estilos de plantilla, estilos de sitio y gadgets y esto debería ser suficiente para soportar el modo oscuro. Se pueden definir nuevas variables CSS en MediaWiki:Common.css si es necesario.
- No existe una alternativa práctica para que un proyecto como eswiki, en el que se hace un uso intensivo de los colores en las plantillas, funcione en modo oscuro sin modificar las plantillas. No podemos aplicar correcciones genéricas sin comprometer la integridad del contenido (por ejemplo, podríamos eliminar todos los colores, pero algunos son importantes para entender el artículo y no deberían modificarse). En cualquier caso, no se activará al opción modo oscuro para usuarios anónimos hasta que en esta wiki sus editores hayan tenido tiempo suficiente para ajustar el contenido. En esta página se puede hacer seguimiento. Saludos. IZapico (WMF) (discusión) 19:33 3 jul 2024 (UTC)
Plantilla de dividir
editar¿Existe alguna manera de crear una plantilla que realice un sencillo cálculo matemático (una división) entre dos valores de propiedades de Wikidata? En concreto entre el valor de P1082 (población) y el de P2046 (superficie). Además debería mostrar, evidentemente, las unidades correctas. (podría llamarse p. ej. {{densidad wd}}
). strakhov (discusión) 05:13 4 jul 2024 (UTC)
- @Strakhov, en el código de plantilla se puede usar la expresión
{{#expr:}}
para realizar cálculos matemáticos ({{#expr: 13456 / 89 round 2 }}
→ 151.19). - Pero es necesario comprobar y validar primero los valores que se obtienen desde esas propiedades. La comprobación más obvia es que ambos valores deben existir y que la superficie no puede ser cero. Pero hay que hacer algo más. Por ejemplo, al importar la población de El Ordial se obtiene una lista con distintos valores por año, y al importar la superficie se obtiene una cantidad con unidad de medida. En ambos casos los resultados pueden ser valores únicos o listas de valores, lo cual no es mayor problema porque también se puede filtrar y obtener únicamente el último valor o el marcado como preferido. Pero en el segundo caso sería necesario estandarizar el valor a una unidad de medida fija, ya que me temo que las superficies no siempre estarán indicadas en kilómetros cuadrados. Y aquí es donde se complica el código de plantilla e implica programarlo en Lua si no se quieren obtener algunos resultados erróneos.
- Aunque... si asumes que está todo en km² y te la pela todo un poco, también puedes hacer como se hizo en Motegi y otros cientos de artículos parecidos donde se puede encontrar el código
El {{Propiedad|P1082|calificador=P585|rango_mayor=sí|prioridad=sí|uno=último|enlace=no|formato fecha=}} tenía una población estimada de {{formatnum:{{Propiedad|P1082|formato unidad=número|rango_mayor=sí|uno=último}}}} habitantes y una [[densidad de población]] de {{formatnum:{{#expr:({{Propiedad|P1082|rango_mayor=sí|prioridad=sí|uno=último|formato unidad=número}}/{{Propiedad|P2046|rango_mayor=sí|formato unidad=número|uno=último}} round 0)}}}} personas por km².
seguido de una referencia que quizás no tenga mucho que ver con los datos que se toman desde Wikidata. -- Leoncastro (discusión) 15:08 4 jul 2024 (UTC)
- Vale, entiendo que para solventar un caso muy puntual una chapucilla de ésas puede servir, pero que para una solución duradera y con vistas a futuro (y para aplicar en muchos artículos) lo suyo sería la creación de un módulo más complejo (y me hace reflexionar sobre que realmente otra plantilla "similar" como
{{población-es wd}}
está asumiendo que la fuente es el INE cuando, aunque sea la fuente por defecto que usan los municipios españoles ...podría no serlo en algún caso raro). En cualquier caso dejaré al Ordial como está ahora. Muchas gracias. strakhov (discusión) 15:54 5 jul 2024 (UTC)
- Vale, entiendo que para solventar un caso muy puntual una chapucilla de ésas puede servir, pero que para una solución duradera y con vistas a futuro (y para aplicar en muchos artículos) lo suyo sería la creación de un módulo más complejo (y me hace reflexionar sobre que realmente otra plantilla "similar" como