Viquitexts cawikisource https://ca.wikisource.org/wiki/P%C3%A0gina_principal MediaWiki 1.47.0-wmf.20 first-letter Media Especial Discussió Usuari Usuari Discussió Viquitexts Viquitexts Discussió Fitxer Fitxer Discussió MediaWiki MediaWiki Discussió Plantilla Plantilla Discussió Ajuda Ajuda Discussió Categoria Categoria Discussió Pàgina Pàgina Discussió Llibre Llibre Discussió Autor Autor Discussió TimedText TimedText talk Mòdul Mòdul Discussió Event Event talk Autor:Erasme de Rotterdam 106 10215 185671 185670 2026-09-20T17:55:46Z Aleator 20 més proves 185671 wikitext text/x-wiki {{Plantilla de proves|Ordenar=R}} * ''Adagiorum chiliades'' (1500) * ''Enchiridion militis christiani'' (1504) * ''Encomium moriae'' (1509-1511) * ''De libero arbitrio diatribe sive collatio'' (1524) * ''Colloquia familiaria'' (1533): :*{{OW|qid=Q105724055}} :*{{OW|qid=Q105724058}} {{DP-Autor-100}} [[Categoria:Autors en llatí|Erasme]] [[Categoria:Autors del s. XVI|Rotterdam, Erasme de]] 5cs2yubep99ewsch49uwgopzzh0ue9m Viquitexts:La taverna 4 39149 185675 185610 2026-09-20T18:51:48Z Aleator 20 /* Canvis en plantilla Autor */ secció nova 185675 wikitext text/x-wiki {{La taverna (encapçalament)}} == Bon 2026 == Les converses anteriors han estat arxivades a [[Viquitexts:La taverna/2025]]. Aquest 2026 es compliran 100 anys de la mort de [[Autor:Joan Alcover i Maspons|Joan Alcover i Maspons]] i de [[Autor:Ramon Turró i Darder|Ramon Turró i Darder]], i 200 anys del naixement de [[Autor:Carlo Collodi|Carlo Collodi]] (el creador de ''Pinotxo''), així com 168 anys del naixement de [[Autor:Joaquim Casas i Carbó|Joaquim Casas i Carbó]] (que no tot han de ser números rodons!). Bon any 2026 i bones transcripcions! -[[Usuari Discussió:Aleator|Aleator]] 16:31, 31 des 2025 (CET) == Plantilla ObraWikidata == Hola! Fa un [[Viquitexts:La_taverna/2023#Capturar_dades_de_l'índex_des_de_Wikidata|parell d'anys]] vam crear el codi que permet capturar dades d'una edició des de Wikidata. Això ja es fa a Commons amb la plantilla [[:c:Template:Book|book]]. A Viquitexts, les capturem automàticament (1) a un índex (espai de noms "Llibre") només informant l'identificador de Wikidata (p.ex. Qnnnnnnn), (2) a la capçalera d'una pàgina que transclogui pàgines si fem servir l'etiqueta «pages» amb «<code><nowiki>header=1</nowiki></code>» (per exemple, <code><nowiki><pages index="Llibre.pdf include="1-100" header=1 /></nowiki></code>) i (3) a una pàgina de l'espai de noms «Autor» mitjançant plantilles com {{tl|OW}} o {{tl|ED}}. És d'aquesta darrera plantilla {{tl|OW}} que vull fer uns canvis. Actualment es mostren unes icones, com l'enllaç a Wikidata, a l'índex, el nivell de correcció i un enllaç a descàrrega ePub. Els canvis consisteixen en (1) afegir altres formats d'exportació (PDF i mobi) i (2) ocultar totes aquestes icones, fent-les visibles (2.a) fent clic a l'única icona «𝍢» que apareixerà ara, o (2.b) fent clic a l'opció del menú lateral «Expandeix-ho tot» o «Amago-ho tot». Així queda tot molt més polit (crec). Un exemple ja es pot visualitzar a «[[Autor:Joaquim Casas i Carbó]]». Si ningú hi veu objeccions ho implementaria en uns dies. -[[Usuari Discussió:Aleator|Aleator]] 17:30, 8 gen 2026 (CET) :Fet! Es pot veure a quasi qualsevol pàgina d'autor. -[[Usuari Discussió:Aleator|Aleator]] 20:53, 16 gen 2026 (CET) == Thank You for Last Year – Join Wiki Loves Ramadan 2026 == Dear Wikimedia communities, We hope you are doing well, and we wish you a happy New Year. ''Last year, we captured light. This year, we’ll capture legacy.'' In 2025, communities around the world shared the glow of Ramadan nights and the warmth of collective iftars. In 2026, ''Wiki Loves Ramadan'' is expanding, bringing more stories, more cultures, and deeper global connections across Wikimedia projects. We invite you to explore the ''Wiki Loves Ramadan 2026'' [[m:Special:MyLanguage/Wiki Loves Ramadan 2026|Meta page]] to learn how you can participate and [[m:Special:MyLanguage/Wiki Loves Ramadan 2026/Participating communities|sign up]] your community. 📷 ''Photo campaign on '' [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan 2026|Wikimedia Commons]] If you have questions about the project, please refer to the FAQs: * [[m:Special:MyLanguage/Wiki Loves Ramadan/FAQ/|Meta-Wiki]] * [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan/FAQ|Wikimedia Commons]] ''Early registration for updates is now open via the '''[[m:Special:RegisterForEvent/2710|Event page]]''''' ''Stay connected and receive updates:'' * [https://t.me/WikiLovesRamadan Telegram channel] * [https://lists.wikimedia.org/postorius/lists/wikilovesramadan.lists.wikimedia.org/ Mailing list] We look forward to collaborating with you and your community. '''The Wiki Loves Ramadan 2026 Organizing Team''' 20:45, 16 gen 2026 (CET) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29879549 --> == <span lang="en" dir="ltr">Annual review of the Universal Code of Conduct and Enforcement Guidelines</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> I am writing to you to let you know the annual review period for the Universal Code of Conduct and Enforcement Guidelines is open now. You can make suggestions for changes through 9 February 2026. This is the first step of several to be taken for the annual review. [[m:Special:MyLanguage/Universal Code of Conduct/Annual review/2026|Read more information and find a conversation to join on the UCoC page on Meta]]. The [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee|Universal Code of Conduct Coordinating Committee]] (U4C) is a global group dedicated to providing an equitable and consistent implementation of the UCoC. This annual review was planned and implemented by the U4C. For more information and the responsibilities of the U4C, [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee/Charter|you may review the U4C Charter]]. Please share this information with other members in your community wherever else might be appropriate. -- In cooperation with the U4C, [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]])<section end="announcement-content" /> </div> 22:02, 19 gen 2026 (CET) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=29905753 --> == Action Required: Update templates/modules for electoral maps (Migrating from P1846 to P14226) == Hello everyone, This is a notice regarding an ongoing data migration on Wikidata that may affect your election-related templates and Lua modules (such as <code>Module:Itemgroup/list</code>). '''The Change:'''<br /> Currently, many templates pull electoral maps from Wikidata using the property [[:d:Property:P1846|P1846]], combined with the qualifier [[:d:Property:P180|P180]]: [[:d:Q19571328|Q19571328]]. We are migrating this data (across roughly 4,000 items) to a newly created, dedicated property: '''[[:d:Property:P14226|P14226]]'''. '''What You Need To Do:'''<br /> To ensure your templates and infoboxes do not break or lose their maps, please update your local code to fetch data from [[:d:Property:P14226|P14226]] instead of the old [[:d:Property:P1846|P1846]] + [[:d:Property:P180|P180]] structure. A [[m:Wikidata/Property Migration: P1846 to P14226/List|list of pages]] was generated using Wikimedia Global Search. '''Deadline:'''<br /> We are temporarily retaining the old data on [[:d:Property:P1846|P1846]] to allow for a smooth transition. However, to complete the data cleanup on Wikidata, the old [[:d:Property:P1846|P1846]] statements will be removed after '''May 1, 2026'''. Please update your modules and templates before this date to prevent any disruption to your wiki's election articles. Let us know if you have any questions or need assistance with the query logic. Thank you for your help! [[User:ZI Jony|ZI Jony]] using [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 19:11, 3 abr 2026 (CEST) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29941252 --> == Request for comment (global AI policy) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies for writing in English. {{int:Please-translate}} A [[:m:Requests for comment/Artificial intelligence policy|request for comment]] is currently being held to decide on a global AI policy. {{int:Feedback-thanks-title}} [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 02:58, 26 abr 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30424282 --> == <span lang="en" dir="ltr">Vote now in the 2026 U4C election</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> Eligible voters are asked to participate in the 2026 [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee|Universal Code of Conduct Coordinating Committee]] election. More information–including an eligibility check, voting process information, candidate information, and a link to the vote–are available on Meta at the [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee/Election/2026|2026 Election information page]]. The vote closes on 2 June 2026 at [https://zonestamp.toolforge.org/1780358400 00:00 UTC]. Please vote if your account is eligible. Results will be available by 14 June 2026. -- In cooperation with the U4C,<section end="announcement-content" /> </div> [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]]) 19:15, 27 maig 2026 (CEST) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == RFC about AI-generated content in Wikimedia Commons == <bdi lang="en" dir="ltr">Apologies for writing in English, please help translate this message to your language. You are invited to participate in a [[c:Commons:Requests for comment/Policy update for AI content|request for comment on Wikimedia Commons about a policy update for AI content]]. This may affect files that are uploaded to Wikimedia Commons for use on this project. Thank you. [[m:User:Codename Noreste|Codename Noreste]] ([[m:User talk:Codename Noreste|discussió]])</bdi> 19:12, 23 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == Enllaç de desplegament de contactes legals i de seguretat al peu de pàgina del vostre wiki == <section begin="Message"/> '''Contactes dels departament Legal i de Seguretat''' Hola comunitat, la Fundació Wikimedia ha proporcionat una [[wmf:Special:MyLanguage/Legal:Wikimedia Foundation Legal and Safety Contact Information|pàgina única de contacte legal i de seguretat]], que s'ha d'enllaçar al peu de pàgina del vostre wiki, per garantir l'accés a informació legal precisa. Es tracta d'un requisit reglamentari. Ja hem implementat enllaços als projectes en anglès, alemany, italià, espanyol i altres, i properament els implementarem al vostre wiki. [[m:Special:MyLanguage/Wikimedia_Foundation_Legal_and_Safety_Contacts_FAQ|Si us plau, llegiu-ne més a la pàgina del projecte]] i deixeu qualsevol comentari en aquest fil o a la [[m:Special:MyLanguage/Talk:Wikimedia Foundation Legal and Safety Contacts FAQ|pàgina de discussió]]. <section end="Message"/> -- [[User:Sannita (WMF)|User:Sannita (WMF)]] ([[User talk:Sannita (WMF)|talk]]) 15:30, 25 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Sannita (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=User:Sannita_(WMF)/Mass_sending_test&oldid=30731267 --> == Ús de l'apòstrof, canvi de criteri al continuar validant un llibre revisat? == Hola comunitat, volia reactivar la validació del llibre [[Llibre:La dòna d'aigua i altres contalles (1911).djvu|La dòna d'aigua i altres contalles]]. He vist que al llibre es fa un tractament diferent a l'apòstrof segons la seva situació, en uns casos és apòstrof i en altres punt volat ("l'una" vs "·s pensava", [[Pàgina:La dòna d'aigua i altres contalles (1911).djvu/94|pàgina 94]]). Al revisar el llibre, i a les pàgines validades, s'ha mantingut aquesta distinció, però al llegir les convencions de transcripció veig que es recomana fer servir l'apòstrof en tots els casos. Consulto a la comunitat quina és la millor manera de procedir: seguir el criteri de revisió (doble tractament), continuar la revisió aplicant el criteri de l'apòstrof o revisar-lo tot substituint els punts volats per apòstrofs. Gràcies [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 05:57, 27 juny 2026 (CEST) :{{ping|Lanxana}} Hola! Jo sóc partidari de transcriure fidelment: si l'edició té un apòstrof, llavors un apòstrof, i si un punt volat, llavors un punt volat. Quan costa molt de distingir un de l'altre, jo optaria per cercar a la resta de l'edició algun cas semblant i, si finalment, no sé què fer, llavors acabaria posant un apòstrof. Per cert, veig que la recomanació dels apòstrofs a [[Viquitexts:Convencions de transcripció]] la vaig escriure jo i sembla contradir-se amb allò que acabo de dir (modifíca-ho com creguis millor: quan la vaig escriure pensava en accents i cometes estranyes que alguna vegada he vist, potser fruit dels OCR). Fins aviat! -[[Usuari Discussió:Aleator|Aleator]] 11:27, 27 juny 2026 (CEST) ::Gràcies @[[Usuari:Aleator|Aleator]] per la resposta. Seguiré doncs amb la validació tal com està ara, respectant els punts volats. Aquest és el primer cas que m'he trobat amb aquest ús com apòstrof. Per ara deixo la recomanació a la viqui com està, si m'hi tornés a trobar amb un cas així en fase d'edició ja valoraria què fer. Al validar prefereixo seguir el criteri de l'editor i, davant el dubte, preguntar, com en aquest cas. [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 12:08, 30 juny 2026 (CEST) == Request for comment (the future of Abstract Wikipedia) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies if this has not yet been translated into your wiki's language. {{int:Please-translate}} You are invited to voice your opinions in a [[:m:Requests for comment/The future of Abstract Wikipedia|request for comment about the future of Abstract Wikipedia]]. {{Int:Feedback-thanks-title}} [[:m:User:Kowal2701|Kowal2701]] ([[:m:User talk:Kowal2701|talk]]) 14:25, 24 jul 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:DreamRimmer@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == <span lang="en" dir="ltr">Migration to Parsoid</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> <em>[[m:Special:MyLanguage/Wikimedia Foundation/Product and Technology/Parsoid Read Views/Read View Announcement|Read this in another language]]</em> Hello everyone! I am glad to inform you that as the next step in the [[mw:Special:MyLanguage/Parsoid/Parser Unification|Parser Unification]] project, Parsoid will soon be turned on as the default article renderer on your wiki. We are gradually increasing the number of wikis using Parsoid, with the intention of making it the default wikitext parser for MediaWiki's next long-term support release. This will make our wikis more reliable and consistent for editors, readers, and tools to use, as well as making the development of future wikitext features easier. If this disrupts your workflow, don’t worry! You can still opt out through a user preference or turn Parsoid off on the current page using the Tools submenu, as described in the [[mw:Special:MyLanguage/Help:Extension:ParserMigration|Extension:ParserMigration]] documentation. There is [[mw:Special:MyLanguage/Parsoid/Parser Unification/Confidence Framework|more information about our roll-out strategy]] available, including the testing done before we turn on Parsoid for a new wiki. To report bugs and issues, please look at our [[mw:Special:MyLanguage/Parsoid/Parser Unification/Known Issues|known issues]] documentation and if you found a new bug please create a phab ticket and tag the [[phab:project/view/5846|Content Transform Team in Phabricator]]. <section end="announcement-content" /> </div> [[mw:User:MSantos (WMF)|Content Transform Team]] 18:31, 3 ago 2026 (CEST) <!-- Missatge enviat per Usuari:MSantos (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/Wikisource&oldid=28221043 --> == La vostra wiki estarà aviat només en mode lectura == <section begin="server-switch"/><div class="plainlinks"> [[:m:Special:MyLanguage/Tech/Server switch|Llegiu aquest missatge en una altra llengua]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FServer+switch&language=&action=page&filter= {{int:please-translate}}] La [[foundation:|Fundació Wikimedia]] canviarà el trànsit entre els seus centres de dades. Això garantirà que la Viquipèdia i les altres wikis de Wikimedia romanguin disponibles fins i tot si es produeix un desastre. Tot el trànsit es durà el '''{{#time:j xg|2026-09-23|ca}}'''. La prova començarà a les '''[https://zonestamp.toolforge.org/{{#time:U|2026-09-23T14:00|en}} {{#time:H:i e|2026-09-23T14:00}}]'''. Malauradament, a causa de limitacions de [[mw:Special:MyLanguage/Manual:What is MediaWiki?|MediaWiki]] cal limitar la possibilitat d'editar durant el canvi. Ens disculpem per aquesta disrupció, i estem treballant per minimitzar-la en el futur. Es mostrarà un avís a totes les wikis de la Fundació Wikimedia 30 minuts abans que tingui lloc aquesta operació. <span lang="en" dir="ltr" class="mw-content-ltr">This banner will remain visible until the end of the operation.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can contribute to the [https://meta.wikimedia.org/w/index.php?title=Special%3ATranslate&group=Centralnotice-tgroup-read_only_banner&task=view&language=&filter=&action=translate translation or proofreading] of this banner text.</span> '''Durant una estona, podreu llegir, però no pas editar les wikis durant una estona breu.''' * No podreu editar durant com a màxima una hora el {{#time:l j xg Y|2026-09-23|ca}}. * Si proveu d'editar o desar canvis durant aquestes interrupcions, veureu un missatge d'error. Esperem que no es perdi cap edició durant aquest període de temps, però no us ho podem garantir. Si veieu el missatge d'error, espereu fins que tot torni a funcionar. Llavors hauríeu de poder desar la vostra edició. Tot i així, us recomanem que primer feu una còpia dels vostres canvis, per si un cas. ''Altres efectes'': * Els treballs automàtics de rerefons aniran més lents, i alguns es podrien aturar. Potser els enllaços vermells no s'actualitzaran tan ràpidament com és habitual. Si creeu un article que ja ha estat enllaçat en algun altre lloc, l'enllaç pot mantenir-se en vermell més estona de l'habitual. Alguns ''scripts'' de llarga durada s'hauran d'aturar. * Esperem que les implementacions de codi es produeixin com qualsevol altra setmana. No obstant això, algun codi concret es podria congelar puntualment si l'operació ho requereix. * [[mw:Special:MyLanguage/GitLab|GitLab]] no estarà disponible durant uns 90 minuts. Aquest projecte es podria ajornar si fos necessari. Podeu [[wikitech:Switch_Datacenter|llegir la planificació a wikitech.wikimedia.org]]. Es comunicarà qualsevol canvi a la planificació. '''Si us plau, compartiu aquesta informació amb la vostra comunitat viquimedista.'''</div><section end="server-switch"/> [[m:user:Trizek (WMF)|Trizek (WMF)]] 14:58, 15 set 2026 (CEST) <!-- Missatge enviat per Usuari:Trizek (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=30513874 --> == Canvis en plantilla Autor == Hola! Aprofitant la feina feta per {{u|Docosong}} al mòdul [[:q:Mòdul:Persona|Mòdul:Persona]] de Viquidites, l'he adaptat per a Viquitexts al nou [[Mòdul:Autor]]. Proposo canviar el codi de l'actual plantilla {{tl|Autor}} a una crida a aquest nou mòdul. Quins canvis presenta respecta a l'actual {{tl|Autor}}? He afegir un enllaç a Wikidata (a la secció de "Projectes germans"), he mogut la informació sobre drets d'autor a una secció pròpia (amb un enllaç a l'apartat de Wikidata sobre els drets d'autor, si n'hi ha; i un enllaç cap a la pàgina d'ajuda de drets d'autor); la clau d'ordenació (paràmetre "Ordenar") ja no caldrà informar-lo a mà; i també he acabat aconseguint (mitjançant ''vive coding'') treure els claudàtors del peu d'imatge quan a Wikidata n'hi hagi. Ara mateix podeu veure-ho a [[Autor:Erasme de Rotterdam]], però podeu fer proves (en mode previsualització) amb qualsevol autor i la {{tl|Plantilla de proves}}. En definitiva, proposo fer el canvi d'aquí a 1 mes (20 d'octubre) sempre que ningú hi vegi inconvenients. A reveure! -[[Usuari Discussió:Aleator|Aleator]] 20:51, 20 set 2026 (CEST) 8m5bm4sffupnr7qirmv2w1ywoqljqnu 185676 185675 2026-09-20T18:56:57Z Aleator 20 /* Canvis en plantilla Autor */ 185676 wikitext text/x-wiki {{La taverna (encapçalament)}} == Bon 2026 == Les converses anteriors han estat arxivades a [[Viquitexts:La taverna/2025]]. Aquest 2026 es compliran 100 anys de la mort de [[Autor:Joan Alcover i Maspons|Joan Alcover i Maspons]] i de [[Autor:Ramon Turró i Darder|Ramon Turró i Darder]], i 200 anys del naixement de [[Autor:Carlo Collodi|Carlo Collodi]] (el creador de ''Pinotxo''), així com 168 anys del naixement de [[Autor:Joaquim Casas i Carbó|Joaquim Casas i Carbó]] (que no tot han de ser números rodons!). Bon any 2026 i bones transcripcions! -[[Usuari Discussió:Aleator|Aleator]] 16:31, 31 des 2025 (CET) == Plantilla ObraWikidata == Hola! Fa un [[Viquitexts:La_taverna/2023#Capturar_dades_de_l'índex_des_de_Wikidata|parell d'anys]] vam crear el codi que permet capturar dades d'una edició des de Wikidata. Això ja es fa a Commons amb la plantilla [[:c:Template:Book|book]]. A Viquitexts, les capturem automàticament (1) a un índex (espai de noms "Llibre") només informant l'identificador de Wikidata (p.ex. Qnnnnnnn), (2) a la capçalera d'una pàgina que transclogui pàgines si fem servir l'etiqueta «pages» amb «<code><nowiki>header=1</nowiki></code>» (per exemple, <code><nowiki><pages index="Llibre.pdf include="1-100" header=1 /></nowiki></code>) i (3) a una pàgina de l'espai de noms «Autor» mitjançant plantilles com {{tl|OW}} o {{tl|ED}}. És d'aquesta darrera plantilla {{tl|OW}} que vull fer uns canvis. Actualment es mostren unes icones, com l'enllaç a Wikidata, a l'índex, el nivell de correcció i un enllaç a descàrrega ePub. Els canvis consisteixen en (1) afegir altres formats d'exportació (PDF i mobi) i (2) ocultar totes aquestes icones, fent-les visibles (2.a) fent clic a l'única icona «𝍢» que apareixerà ara, o (2.b) fent clic a l'opció del menú lateral «Expandeix-ho tot» o «Amago-ho tot». Així queda tot molt més polit (crec). Un exemple ja es pot visualitzar a «[[Autor:Joaquim Casas i Carbó]]». Si ningú hi veu objeccions ho implementaria en uns dies. -[[Usuari Discussió:Aleator|Aleator]] 17:30, 8 gen 2026 (CET) :Fet! Es pot veure a quasi qualsevol pàgina d'autor. -[[Usuari Discussió:Aleator|Aleator]] 20:53, 16 gen 2026 (CET) == Thank You for Last Year – Join Wiki Loves Ramadan 2026 == Dear Wikimedia communities, We hope you are doing well, and we wish you a happy New Year. ''Last year, we captured light. This year, we’ll capture legacy.'' In 2025, communities around the world shared the glow of Ramadan nights and the warmth of collective iftars. In 2026, ''Wiki Loves Ramadan'' is expanding, bringing more stories, more cultures, and deeper global connections across Wikimedia projects. We invite you to explore the ''Wiki Loves Ramadan 2026'' [[m:Special:MyLanguage/Wiki Loves Ramadan 2026|Meta page]] to learn how you can participate and [[m:Special:MyLanguage/Wiki Loves Ramadan 2026/Participating communities|sign up]] your community. 📷 ''Photo campaign on '' [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan 2026|Wikimedia Commons]] If you have questions about the project, please refer to the FAQs: * [[m:Special:MyLanguage/Wiki Loves Ramadan/FAQ/|Meta-Wiki]] * [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan/FAQ|Wikimedia Commons]] ''Early registration for updates is now open via the '''[[m:Special:RegisterForEvent/2710|Event page]]''''' ''Stay connected and receive updates:'' * [https://t.me/WikiLovesRamadan Telegram channel] * [https://lists.wikimedia.org/postorius/lists/wikilovesramadan.lists.wikimedia.org/ Mailing list] We look forward to collaborating with you and your community. '''The Wiki Loves Ramadan 2026 Organizing Team''' 20:45, 16 gen 2026 (CET) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29879549 --> == <span lang="en" dir="ltr">Annual review of the Universal Code of Conduct and Enforcement Guidelines</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> I am writing to you to let you know the annual review period for the Universal Code of Conduct and Enforcement Guidelines is open now. You can make suggestions for changes through 9 February 2026. This is the first step of several to be taken for the annual review. [[m:Special:MyLanguage/Universal Code of Conduct/Annual review/2026|Read more information and find a conversation to join on the UCoC page on Meta]]. The [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee|Universal Code of Conduct Coordinating Committee]] (U4C) is a global group dedicated to providing an equitable and consistent implementation of the UCoC. This annual review was planned and implemented by the U4C. For more information and the responsibilities of the U4C, [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee/Charter|you may review the U4C Charter]]. Please share this information with other members in your community wherever else might be appropriate. -- In cooperation with the U4C, [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]])<section end="announcement-content" /> </div> 22:02, 19 gen 2026 (CET) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=29905753 --> == Action Required: Update templates/modules for electoral maps (Migrating from P1846 to P14226) == Hello everyone, This is a notice regarding an ongoing data migration on Wikidata that may affect your election-related templates and Lua modules (such as <code>Module:Itemgroup/list</code>). '''The Change:'''<br /> Currently, many templates pull electoral maps from Wikidata using the property [[:d:Property:P1846|P1846]], combined with the qualifier [[:d:Property:P180|P180]]: [[:d:Q19571328|Q19571328]]. We are migrating this data (across roughly 4,000 items) to a newly created, dedicated property: '''[[:d:Property:P14226|P14226]]'''. '''What You Need To Do:'''<br /> To ensure your templates and infoboxes do not break or lose their maps, please update your local code to fetch data from [[:d:Property:P14226|P14226]] instead of the old [[:d:Property:P1846|P1846]] + [[:d:Property:P180|P180]] structure. A [[m:Wikidata/Property Migration: P1846 to P14226/List|list of pages]] was generated using Wikimedia Global Search. '''Deadline:'''<br /> We are temporarily retaining the old data on [[:d:Property:P1846|P1846]] to allow for a smooth transition. However, to complete the data cleanup on Wikidata, the old [[:d:Property:P1846|P1846]] statements will be removed after '''May 1, 2026'''. Please update your modules and templates before this date to prevent any disruption to your wiki's election articles. Let us know if you have any questions or need assistance with the query logic. Thank you for your help! [[User:ZI Jony|ZI Jony]] using [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 19:11, 3 abr 2026 (CEST) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29941252 --> == Request for comment (global AI policy) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies for writing in English. {{int:Please-translate}} A [[:m:Requests for comment/Artificial intelligence policy|request for comment]] is currently being held to decide on a global AI policy. {{int:Feedback-thanks-title}} [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 02:58, 26 abr 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30424282 --> == <span lang="en" dir="ltr">Vote now in the 2026 U4C election</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> Eligible voters are asked to participate in the 2026 [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee|Universal Code of Conduct Coordinating Committee]] election. More information–including an eligibility check, voting process information, candidate information, and a link to the vote–are available on Meta at the [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee/Election/2026|2026 Election information page]]. The vote closes on 2 June 2026 at [https://zonestamp.toolforge.org/1780358400 00:00 UTC]. Please vote if your account is eligible. Results will be available by 14 June 2026. -- In cooperation with the U4C,<section end="announcement-content" /> </div> [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]]) 19:15, 27 maig 2026 (CEST) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == RFC about AI-generated content in Wikimedia Commons == <bdi lang="en" dir="ltr">Apologies for writing in English, please help translate this message to your language. You are invited to participate in a [[c:Commons:Requests for comment/Policy update for AI content|request for comment on Wikimedia Commons about a policy update for AI content]]. This may affect files that are uploaded to Wikimedia Commons for use on this project. Thank you. [[m:User:Codename Noreste|Codename Noreste]] ([[m:User talk:Codename Noreste|discussió]])</bdi> 19:12, 23 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == Enllaç de desplegament de contactes legals i de seguretat al peu de pàgina del vostre wiki == <section begin="Message"/> '''Contactes dels departament Legal i de Seguretat''' Hola comunitat, la Fundació Wikimedia ha proporcionat una [[wmf:Special:MyLanguage/Legal:Wikimedia Foundation Legal and Safety Contact Information|pàgina única de contacte legal i de seguretat]], que s'ha d'enllaçar al peu de pàgina del vostre wiki, per garantir l'accés a informació legal precisa. Es tracta d'un requisit reglamentari. Ja hem implementat enllaços als projectes en anglès, alemany, italià, espanyol i altres, i properament els implementarem al vostre wiki. [[m:Special:MyLanguage/Wikimedia_Foundation_Legal_and_Safety_Contacts_FAQ|Si us plau, llegiu-ne més a la pàgina del projecte]] i deixeu qualsevol comentari en aquest fil o a la [[m:Special:MyLanguage/Talk:Wikimedia Foundation Legal and Safety Contacts FAQ|pàgina de discussió]]. <section end="Message"/> -- [[User:Sannita (WMF)|User:Sannita (WMF)]] ([[User talk:Sannita (WMF)|talk]]) 15:30, 25 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Sannita (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=User:Sannita_(WMF)/Mass_sending_test&oldid=30731267 --> == Ús de l'apòstrof, canvi de criteri al continuar validant un llibre revisat? == Hola comunitat, volia reactivar la validació del llibre [[Llibre:La dòna d'aigua i altres contalles (1911).djvu|La dòna d'aigua i altres contalles]]. He vist que al llibre es fa un tractament diferent a l'apòstrof segons la seva situació, en uns casos és apòstrof i en altres punt volat ("l'una" vs "·s pensava", [[Pàgina:La dòna d'aigua i altres contalles (1911).djvu/94|pàgina 94]]). Al revisar el llibre, i a les pàgines validades, s'ha mantingut aquesta distinció, però al llegir les convencions de transcripció veig que es recomana fer servir l'apòstrof en tots els casos. Consulto a la comunitat quina és la millor manera de procedir: seguir el criteri de revisió (doble tractament), continuar la revisió aplicant el criteri de l'apòstrof o revisar-lo tot substituint els punts volats per apòstrofs. Gràcies [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 05:57, 27 juny 2026 (CEST) :{{ping|Lanxana}} Hola! Jo sóc partidari de transcriure fidelment: si l'edició té un apòstrof, llavors un apòstrof, i si un punt volat, llavors un punt volat. Quan costa molt de distingir un de l'altre, jo optaria per cercar a la resta de l'edició algun cas semblant i, si finalment, no sé què fer, llavors acabaria posant un apòstrof. Per cert, veig que la recomanació dels apòstrofs a [[Viquitexts:Convencions de transcripció]] la vaig escriure jo i sembla contradir-se amb allò que acabo de dir (modifíca-ho com creguis millor: quan la vaig escriure pensava en accents i cometes estranyes que alguna vegada he vist, potser fruit dels OCR). Fins aviat! -[[Usuari Discussió:Aleator|Aleator]] 11:27, 27 juny 2026 (CEST) ::Gràcies @[[Usuari:Aleator|Aleator]] per la resposta. Seguiré doncs amb la validació tal com està ara, respectant els punts volats. Aquest és el primer cas que m'he trobat amb aquest ús com apòstrof. Per ara deixo la recomanació a la viqui com està, si m'hi tornés a trobar amb un cas així en fase d'edició ja valoraria què fer. Al validar prefereixo seguir el criteri de l'editor i, davant el dubte, preguntar, com en aquest cas. [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 12:08, 30 juny 2026 (CEST) == Request for comment (the future of Abstract Wikipedia) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies if this has not yet been translated into your wiki's language. {{int:Please-translate}} You are invited to voice your opinions in a [[:m:Requests for comment/The future of Abstract Wikipedia|request for comment about the future of Abstract Wikipedia]]. {{Int:Feedback-thanks-title}} [[:m:User:Kowal2701|Kowal2701]] ([[:m:User talk:Kowal2701|talk]]) 14:25, 24 jul 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:DreamRimmer@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == <span lang="en" dir="ltr">Migration to Parsoid</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> <em>[[m:Special:MyLanguage/Wikimedia Foundation/Product and Technology/Parsoid Read Views/Read View Announcement|Read this in another language]]</em> Hello everyone! I am glad to inform you that as the next step in the [[mw:Special:MyLanguage/Parsoid/Parser Unification|Parser Unification]] project, Parsoid will soon be turned on as the default article renderer on your wiki. We are gradually increasing the number of wikis using Parsoid, with the intention of making it the default wikitext parser for MediaWiki's next long-term support release. This will make our wikis more reliable and consistent for editors, readers, and tools to use, as well as making the development of future wikitext features easier. If this disrupts your workflow, don’t worry! You can still opt out through a user preference or turn Parsoid off on the current page using the Tools submenu, as described in the [[mw:Special:MyLanguage/Help:Extension:ParserMigration|Extension:ParserMigration]] documentation. There is [[mw:Special:MyLanguage/Parsoid/Parser Unification/Confidence Framework|more information about our roll-out strategy]] available, including the testing done before we turn on Parsoid for a new wiki. To report bugs and issues, please look at our [[mw:Special:MyLanguage/Parsoid/Parser Unification/Known Issues|known issues]] documentation and if you found a new bug please create a phab ticket and tag the [[phab:project/view/5846|Content Transform Team in Phabricator]]. <section end="announcement-content" /> </div> [[mw:User:MSantos (WMF)|Content Transform Team]] 18:31, 3 ago 2026 (CEST) <!-- Missatge enviat per Usuari:MSantos (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/Wikisource&oldid=28221043 --> == La vostra wiki estarà aviat només en mode lectura == <section begin="server-switch"/><div class="plainlinks"> [[:m:Special:MyLanguage/Tech/Server switch|Llegiu aquest missatge en una altra llengua]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FServer+switch&language=&action=page&filter= {{int:please-translate}}] La [[foundation:|Fundació Wikimedia]] canviarà el trànsit entre els seus centres de dades. Això garantirà que la Viquipèdia i les altres wikis de Wikimedia romanguin disponibles fins i tot si es produeix un desastre. Tot el trànsit es durà el '''{{#time:j xg|2026-09-23|ca}}'''. La prova començarà a les '''[https://zonestamp.toolforge.org/{{#time:U|2026-09-23T14:00|en}} {{#time:H:i e|2026-09-23T14:00}}]'''. Malauradament, a causa de limitacions de [[mw:Special:MyLanguage/Manual:What is MediaWiki?|MediaWiki]] cal limitar la possibilitat d'editar durant el canvi. Ens disculpem per aquesta disrupció, i estem treballant per minimitzar-la en el futur. Es mostrarà un avís a totes les wikis de la Fundació Wikimedia 30 minuts abans que tingui lloc aquesta operació. <span lang="en" dir="ltr" class="mw-content-ltr">This banner will remain visible until the end of the operation.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can contribute to the [https://meta.wikimedia.org/w/index.php?title=Special%3ATranslate&group=Centralnotice-tgroup-read_only_banner&task=view&language=&filter=&action=translate translation or proofreading] of this banner text.</span> '''Durant una estona, podreu llegir, però no pas editar les wikis durant una estona breu.''' * No podreu editar durant com a màxima una hora el {{#time:l j xg Y|2026-09-23|ca}}. * Si proveu d'editar o desar canvis durant aquestes interrupcions, veureu un missatge d'error. Esperem que no es perdi cap edició durant aquest període de temps, però no us ho podem garantir. Si veieu el missatge d'error, espereu fins que tot torni a funcionar. Llavors hauríeu de poder desar la vostra edició. Tot i així, us recomanem que primer feu una còpia dels vostres canvis, per si un cas. ''Altres efectes'': * Els treballs automàtics de rerefons aniran més lents, i alguns es podrien aturar. Potser els enllaços vermells no s'actualitzaran tan ràpidament com és habitual. Si creeu un article que ja ha estat enllaçat en algun altre lloc, l'enllaç pot mantenir-se en vermell més estona de l'habitual. Alguns ''scripts'' de llarga durada s'hauran d'aturar. * Esperem que les implementacions de codi es produeixin com qualsevol altra setmana. No obstant això, algun codi concret es podria congelar puntualment si l'operació ho requereix. * [[mw:Special:MyLanguage/GitLab|GitLab]] no estarà disponible durant uns 90 minuts. Aquest projecte es podria ajornar si fos necessari. Podeu [[wikitech:Switch_Datacenter|llegir la planificació a wikitech.wikimedia.org]]. Es comunicarà qualsevol canvi a la planificació. '''Si us plau, compartiu aquesta informació amb la vostra comunitat viquimedista.'''</div><section end="server-switch"/> [[m:user:Trizek (WMF)|Trizek (WMF)]] 14:58, 15 set 2026 (CEST) <!-- Missatge enviat per Usuari:Trizek (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=30513874 --> == Canvis en plantilla Autor == Hola! Aprofitant la feina feta per {{u|Docosong}} al mòdul [[:q:Mòdul:Persona|Mòdul:Persona]] de Viquidites, l'he adaptat per a Viquitexts al nou [[Mòdul:Autor]]. Proposo canviar el codi de l'actual plantilla {{tl|Autor}} a una crida a aquest nou mòdul. Quins canvis presenta respecta a l'actual {{tl|Autor}}? He afegit un enllaç a Wikidata (a la secció de "Projectes germans"), he mogut la informació sobre drets d'autor a una secció pròpia (amb un enllaç a l'apartat de Wikidata sobre els drets d'autor, si n'hi ha; i un enllaç cap a la pàgina d'ajuda de drets d'autor); la clau d'ordenació (paràmetre "Ordenar") ja no caldrà informar-lo a mà; i també he acabat aconseguint (mitjançant ''vive coding'') treure els claudàtors del peu d'imatge quan a Wikidata n'hi hagi. Ara mateix podeu veure-ho a [[Autor:Erasme de Rotterdam]], però podeu fer proves (en mode previsualització) amb qualsevol autor i la {{tl|Plantilla de proves}}. En definitiva, proposo fer el canvi d'aquí a 1 mes (20 d'octubre) sempre que ningú hi vegi inconvenients. A reveure! -[[Usuari Discussió:Aleator|Aleator]] 20:51, 20 set 2026 (CEST) :Ah, m'oblidava. I llavors les plantilles {{tl|DP-Autor}}, {{tl|DP-Autor-70}}, {{tl|DP-Autor-80}}, {{tl|DP-Autor-100}} i {{tl|Copyright-AutorFins}} ja no serien necessàries i, per tant, les treuria de les pàgines d'autor (perque la informació ja apareixeria, més comprimida, a la infotaula). -[[Usuari Discussió:Aleator|Aleator]] 20:56, 20 set 2026 (CEST) dqylfhcbquykdyc1g6vf6bwl6bk6yo2 185677 185676 2026-09-20T19:14:30Z Docosong 1728 /* Canvis en plantilla Autor */ Resposta 185677 wikitext text/x-wiki {{La taverna (encapçalament)}} == Bon 2026 == Les converses anteriors han estat arxivades a [[Viquitexts:La taverna/2025]]. Aquest 2026 es compliran 100 anys de la mort de [[Autor:Joan Alcover i Maspons|Joan Alcover i Maspons]] i de [[Autor:Ramon Turró i Darder|Ramon Turró i Darder]], i 200 anys del naixement de [[Autor:Carlo Collodi|Carlo Collodi]] (el creador de ''Pinotxo''), així com 168 anys del naixement de [[Autor:Joaquim Casas i Carbó|Joaquim Casas i Carbó]] (que no tot han de ser números rodons!). Bon any 2026 i bones transcripcions! -[[Usuari Discussió:Aleator|Aleator]] 16:31, 31 des 2025 (CET) == Plantilla ObraWikidata == Hola! Fa un [[Viquitexts:La_taverna/2023#Capturar_dades_de_l'índex_des_de_Wikidata|parell d'anys]] vam crear el codi que permet capturar dades d'una edició des de Wikidata. Això ja es fa a Commons amb la plantilla [[:c:Template:Book|book]]. A Viquitexts, les capturem automàticament (1) a un índex (espai de noms "Llibre") només informant l'identificador de Wikidata (p.ex. Qnnnnnnn), (2) a la capçalera d'una pàgina que transclogui pàgines si fem servir l'etiqueta «pages» amb «<code><nowiki>header=1</nowiki></code>» (per exemple, <code><nowiki><pages index="Llibre.pdf include="1-100" header=1 /></nowiki></code>) i (3) a una pàgina de l'espai de noms «Autor» mitjançant plantilles com {{tl|OW}} o {{tl|ED}}. És d'aquesta darrera plantilla {{tl|OW}} que vull fer uns canvis. Actualment es mostren unes icones, com l'enllaç a Wikidata, a l'índex, el nivell de correcció i un enllaç a descàrrega ePub. Els canvis consisteixen en (1) afegir altres formats d'exportació (PDF i mobi) i (2) ocultar totes aquestes icones, fent-les visibles (2.a) fent clic a l'única icona «𝍢» que apareixerà ara, o (2.b) fent clic a l'opció del menú lateral «Expandeix-ho tot» o «Amago-ho tot». Així queda tot molt més polit (crec). Un exemple ja es pot visualitzar a «[[Autor:Joaquim Casas i Carbó]]». Si ningú hi veu objeccions ho implementaria en uns dies. -[[Usuari Discussió:Aleator|Aleator]] 17:30, 8 gen 2026 (CET) :Fet! Es pot veure a quasi qualsevol pàgina d'autor. -[[Usuari Discussió:Aleator|Aleator]] 20:53, 16 gen 2026 (CET) == Thank You for Last Year – Join Wiki Loves Ramadan 2026 == Dear Wikimedia communities, We hope you are doing well, and we wish you a happy New Year. ''Last year, we captured light. This year, we’ll capture legacy.'' In 2025, communities around the world shared the glow of Ramadan nights and the warmth of collective iftars. In 2026, ''Wiki Loves Ramadan'' is expanding, bringing more stories, more cultures, and deeper global connections across Wikimedia projects. We invite you to explore the ''Wiki Loves Ramadan 2026'' [[m:Special:MyLanguage/Wiki Loves Ramadan 2026|Meta page]] to learn how you can participate and [[m:Special:MyLanguage/Wiki Loves Ramadan 2026/Participating communities|sign up]] your community. 📷 ''Photo campaign on '' [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan 2026|Wikimedia Commons]] If you have questions about the project, please refer to the FAQs: * [[m:Special:MyLanguage/Wiki Loves Ramadan/FAQ/|Meta-Wiki]] * [[c:Special:MyLanguage/Commons:Wiki Loves Ramadan/FAQ|Wikimedia Commons]] ''Early registration for updates is now open via the '''[[m:Special:RegisterForEvent/2710|Event page]]''''' ''Stay connected and receive updates:'' * [https://t.me/WikiLovesRamadan Telegram channel] * [https://lists.wikimedia.org/postorius/lists/wikilovesramadan.lists.wikimedia.org/ Mailing list] We look forward to collaborating with you and your community. '''The Wiki Loves Ramadan 2026 Organizing Team''' 20:45, 16 gen 2026 (CET) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29879549 --> == <span lang="en" dir="ltr">Annual review of the Universal Code of Conduct and Enforcement Guidelines</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> I am writing to you to let you know the annual review period for the Universal Code of Conduct and Enforcement Guidelines is open now. You can make suggestions for changes through 9 February 2026. This is the first step of several to be taken for the annual review. [[m:Special:MyLanguage/Universal Code of Conduct/Annual review/2026|Read more information and find a conversation to join on the UCoC page on Meta]]. The [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee|Universal Code of Conduct Coordinating Committee]] (U4C) is a global group dedicated to providing an equitable and consistent implementation of the UCoC. This annual review was planned and implemented by the U4C. For more information and the responsibilities of the U4C, [[m:Special:MyLanguage/Universal Code of Conduct/Coordinating Committee/Charter|you may review the U4C Charter]]. Please share this information with other members in your community wherever else might be appropriate. -- In cooperation with the U4C, [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]])<section end="announcement-content" /> </div> 22:02, 19 gen 2026 (CET) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=29905753 --> == Action Required: Update templates/modules for electoral maps (Migrating from P1846 to P14226) == Hello everyone, This is a notice regarding an ongoing data migration on Wikidata that may affect your election-related templates and Lua modules (such as <code>Module:Itemgroup/list</code>). '''The Change:'''<br /> Currently, many templates pull electoral maps from Wikidata using the property [[:d:Property:P1846|P1846]], combined with the qualifier [[:d:Property:P180|P180]]: [[:d:Q19571328|Q19571328]]. We are migrating this data (across roughly 4,000 items) to a newly created, dedicated property: '''[[:d:Property:P14226|P14226]]'''. '''What You Need To Do:'''<br /> To ensure your templates and infoboxes do not break or lose their maps, please update your local code to fetch data from [[:d:Property:P14226|P14226]] instead of the old [[:d:Property:P1846|P1846]] + [[:d:Property:P180|P180]] structure. A [[m:Wikidata/Property Migration: P1846 to P14226/List|list of pages]] was generated using Wikimedia Global Search. '''Deadline:'''<br /> We are temporarily retaining the old data on [[:d:Property:P1846|P1846]] to allow for a smooth transition. However, to complete the data cleanup on Wikidata, the old [[:d:Property:P1846|P1846]] statements will be removed after '''May 1, 2026'''. Please update your modules and templates before this date to prevent any disruption to your wiki's election articles. Let us know if you have any questions or need assistance with the query logic. Thank you for your help! [[User:ZI Jony|ZI Jony]] using [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 19:11, 3 abr 2026 (CEST) <!-- Missatge enviat per Usuari:ZI Jony@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=29941252 --> == Request for comment (global AI policy) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies for writing in English. {{int:Please-translate}} A [[:m:Requests for comment/Artificial intelligence policy|request for comment]] is currently being held to decide on a global AI policy. {{int:Feedback-thanks-title}} [[Usuari:MediaWiki message delivery|MediaWiki message delivery]] ([[Usuari Discussió:MediaWiki message delivery|discussió]]) 02:58, 26 abr 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30424282 --> == <span lang="en" dir="ltr">Vote now in the 2026 U4C election</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> Eligible voters are asked to participate in the 2026 [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee|Universal Code of Conduct Coordinating Committee]] election. More information–including an eligibility check, voting process information, candidate information, and a link to the vote–are available on Meta at the [[m:Special:MyLanguage/Universal_Code_of_Conduct/Coordinating_Committee/Election/2026|2026 Election information page]]. The vote closes on 2 June 2026 at [https://zonestamp.toolforge.org/1780358400 00:00 UTC]. Please vote if your account is eligible. Results will be available by 14 June 2026. -- In cooperation with the U4C,<section end="announcement-content" /> </div> [[m:User:Keegan (WMF)|Keegan (WMF)]] ([[m:User talk:Keegan (WMF)|talk]]) 19:15, 27 maig 2026 (CEST) <!-- Missatge enviat per Usuari:Keegan (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == RFC about AI-generated content in Wikimedia Commons == <bdi lang="en" dir="ltr">Apologies for writing in English, please help translate this message to your language. You are invited to participate in a [[c:Commons:Requests for comment/Policy update for AI content|request for comment on Wikimedia Commons about a policy update for AI content]]. This may affect files that are uploaded to Wikimedia Commons for use on this project. Thank you. [[m:User:Codename Noreste|Codename Noreste]] ([[m:User talk:Codename Noreste|discussió]])</bdi> 19:12, 23 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Codename Noreste@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == Enllaç de desplegament de contactes legals i de seguretat al peu de pàgina del vostre wiki == <section begin="Message"/> '''Contactes dels departament Legal i de Seguretat''' Hola comunitat, la Fundació Wikimedia ha proporcionat una [[wmf:Special:MyLanguage/Legal:Wikimedia Foundation Legal and Safety Contact Information|pàgina única de contacte legal i de seguretat]], que s'ha d'enllaçar al peu de pàgina del vostre wiki, per garantir l'accés a informació legal precisa. Es tracta d'un requisit reglamentari. Ja hem implementat enllaços als projectes en anglès, alemany, italià, espanyol i altres, i properament els implementarem al vostre wiki. [[m:Special:MyLanguage/Wikimedia_Foundation_Legal_and_Safety_Contacts_FAQ|Si us plau, llegiu-ne més a la pàgina del projecte]] i deixeu qualsevol comentari en aquest fil o a la [[m:Special:MyLanguage/Talk:Wikimedia Foundation Legal and Safety Contacts FAQ|pàgina de discussió]]. <section end="Message"/> -- [[User:Sannita (WMF)|User:Sannita (WMF)]] ([[User talk:Sannita (WMF)|talk]]) 15:30, 25 juny 2026 (CEST) <!-- Missatge enviat per Usuari:Sannita (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=User:Sannita_(WMF)/Mass_sending_test&oldid=30731267 --> == Ús de l'apòstrof, canvi de criteri al continuar validant un llibre revisat? == Hola comunitat, volia reactivar la validació del llibre [[Llibre:La dòna d'aigua i altres contalles (1911).djvu|La dòna d'aigua i altres contalles]]. He vist que al llibre es fa un tractament diferent a l'apòstrof segons la seva situació, en uns casos és apòstrof i en altres punt volat ("l'una" vs "·s pensava", [[Pàgina:La dòna d'aigua i altres contalles (1911).djvu/94|pàgina 94]]). Al revisar el llibre, i a les pàgines validades, s'ha mantingut aquesta distinció, però al llegir les convencions de transcripció veig que es recomana fer servir l'apòstrof en tots els casos. Consulto a la comunitat quina és la millor manera de procedir: seguir el criteri de revisió (doble tractament), continuar la revisió aplicant el criteri de l'apòstrof o revisar-lo tot substituint els punts volats per apòstrofs. Gràcies [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 05:57, 27 juny 2026 (CEST) :{{ping|Lanxana}} Hola! Jo sóc partidari de transcriure fidelment: si l'edició té un apòstrof, llavors un apòstrof, i si un punt volat, llavors un punt volat. Quan costa molt de distingir un de l'altre, jo optaria per cercar a la resta de l'edició algun cas semblant i, si finalment, no sé què fer, llavors acabaria posant un apòstrof. Per cert, veig que la recomanació dels apòstrofs a [[Viquitexts:Convencions de transcripció]] la vaig escriure jo i sembla contradir-se amb allò que acabo de dir (modifíca-ho com creguis millor: quan la vaig escriure pensava en accents i cometes estranyes que alguna vegada he vist, potser fruit dels OCR). Fins aviat! -[[Usuari Discussió:Aleator|Aleator]] 11:27, 27 juny 2026 (CEST) ::Gràcies @[[Usuari:Aleator|Aleator]] per la resposta. Seguiré doncs amb la validació tal com està ara, respectant els punts volats. Aquest és el primer cas que m'he trobat amb aquest ús com apòstrof. Per ara deixo la recomanació a la viqui com està, si m'hi tornés a trobar amb un cas així en fase d'edició ja valoraria què fer. Al validar prefereixo seguir el criteri de l'editor i, davant el dubte, preguntar, com en aquest cas. [[Usuari:Lanxana|Lanxana]] ([[Usuari Discussió:Lanxana|discussió]]) 12:08, 30 juny 2026 (CEST) == Request for comment (the future of Abstract Wikipedia) == <bdi lang="en" dir="ltr" class="mw-content-ltr"> Apologies if this has not yet been translated into your wiki's language. {{int:Please-translate}} You are invited to voice your opinions in a [[:m:Requests for comment/The future of Abstract Wikipedia|request for comment about the future of Abstract Wikipedia]]. {{Int:Feedback-thanks-title}} [[:m:User:Kowal2701|Kowal2701]] ([[:m:User talk:Kowal2701|talk]]) 14:25, 24 jul 2026 (CEST) </bdi> <!-- Missatge enviat per Usuari:DreamRimmer@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery&oldid=30513860 --> == <span lang="en" dir="ltr">Migration to Parsoid</span> == <div lang="en" dir="ltr"> <section begin="announcement-content" /> <em>[[m:Special:MyLanguage/Wikimedia Foundation/Product and Technology/Parsoid Read Views/Read View Announcement|Read this in another language]]</em> Hello everyone! I am glad to inform you that as the next step in the [[mw:Special:MyLanguage/Parsoid/Parser Unification|Parser Unification]] project, Parsoid will soon be turned on as the default article renderer on your wiki. We are gradually increasing the number of wikis using Parsoid, with the intention of making it the default wikitext parser for MediaWiki's next long-term support release. This will make our wikis more reliable and consistent for editors, readers, and tools to use, as well as making the development of future wikitext features easier. If this disrupts your workflow, don’t worry! You can still opt out through a user preference or turn Parsoid off on the current page using the Tools submenu, as described in the [[mw:Special:MyLanguage/Help:Extension:ParserMigration|Extension:ParserMigration]] documentation. There is [[mw:Special:MyLanguage/Parsoid/Parser Unification/Confidence Framework|more information about our roll-out strategy]] available, including the testing done before we turn on Parsoid for a new wiki. To report bugs and issues, please look at our [[mw:Special:MyLanguage/Parsoid/Parser Unification/Known Issues|known issues]] documentation and if you found a new bug please create a phab ticket and tag the [[phab:project/view/5846|Content Transform Team in Phabricator]]. <section end="announcement-content" /> </div> [[mw:User:MSantos (WMF)|Content Transform Team]] 18:31, 3 ago 2026 (CEST) <!-- Missatge enviat per Usuari:MSantos (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Global_message_delivery/Wikisource&oldid=28221043 --> == La vostra wiki estarà aviat només en mode lectura == <section begin="server-switch"/><div class="plainlinks"> [[:m:Special:MyLanguage/Tech/Server switch|Llegiu aquest missatge en una altra llengua]] • [https://meta.wikimedia.org/w/index.php?title=Special:Translate&group=page-Tech%2FServer+switch&language=&action=page&filter= {{int:please-translate}}] La [[foundation:|Fundació Wikimedia]] canviarà el trànsit entre els seus centres de dades. Això garantirà que la Viquipèdia i les altres wikis de Wikimedia romanguin disponibles fins i tot si es produeix un desastre. Tot el trànsit es durà el '''{{#time:j xg|2026-09-23|ca}}'''. La prova començarà a les '''[https://zonestamp.toolforge.org/{{#time:U|2026-09-23T14:00|en}} {{#time:H:i e|2026-09-23T14:00}}]'''. Malauradament, a causa de limitacions de [[mw:Special:MyLanguage/Manual:What is MediaWiki?|MediaWiki]] cal limitar la possibilitat d'editar durant el canvi. Ens disculpem per aquesta disrupció, i estem treballant per minimitzar-la en el futur. Es mostrarà un avís a totes les wikis de la Fundació Wikimedia 30 minuts abans que tingui lloc aquesta operació. <span lang="en" dir="ltr" class="mw-content-ltr">This banner will remain visible until the end of the operation.</span> <span lang="en" dir="ltr" class="mw-content-ltr">You can contribute to the [https://meta.wikimedia.org/w/index.php?title=Special%3ATranslate&group=Centralnotice-tgroup-read_only_banner&task=view&language=&filter=&action=translate translation or proofreading] of this banner text.</span> '''Durant una estona, podreu llegir, però no pas editar les wikis durant una estona breu.''' * No podreu editar durant com a màxima una hora el {{#time:l j xg Y|2026-09-23|ca}}. * Si proveu d'editar o desar canvis durant aquestes interrupcions, veureu un missatge d'error. Esperem que no es perdi cap edició durant aquest període de temps, però no us ho podem garantir. Si veieu el missatge d'error, espereu fins que tot torni a funcionar. Llavors hauríeu de poder desar la vostra edició. Tot i així, us recomanem que primer feu una còpia dels vostres canvis, per si un cas. ''Altres efectes'': * Els treballs automàtics de rerefons aniran més lents, i alguns es podrien aturar. Potser els enllaços vermells no s'actualitzaran tan ràpidament com és habitual. Si creeu un article que ja ha estat enllaçat en algun altre lloc, l'enllaç pot mantenir-se en vermell més estona de l'habitual. Alguns ''scripts'' de llarga durada s'hauran d'aturar. * Esperem que les implementacions de codi es produeixin com qualsevol altra setmana. No obstant això, algun codi concret es podria congelar puntualment si l'operació ho requereix. * [[mw:Special:MyLanguage/GitLab|GitLab]] no estarà disponible durant uns 90 minuts. Aquest projecte es podria ajornar si fos necessari. Podeu [[wikitech:Switch_Datacenter|llegir la planificació a wikitech.wikimedia.org]]. Es comunicarà qualsevol canvi a la planificació. '''Si us plau, compartiu aquesta informació amb la vostra comunitat viquimedista.'''</div><section end="server-switch"/> [[m:user:Trizek (WMF)|Trizek (WMF)]] 14:58, 15 set 2026 (CEST) <!-- Missatge enviat per Usuari:Trizek (WMF)@metawiki utilitzant la llista de https://meta.wikimedia.org/w/index.php?title=Distribution_list/Non-Technical_Village_Pumps_distribution_list&oldid=30513874 --> == Canvis en plantilla Autor == Hola! Aprofitant la feina feta per {{u|Docosong}} al mòdul [[:q:Mòdul:Persona|Mòdul:Persona]] de Viquidites, l'he adaptat per a Viquitexts al nou [[Mòdul:Autor]]. Proposo canviar el codi de l'actual plantilla {{tl|Autor}} a una crida a aquest nou mòdul. Quins canvis presenta respecta a l'actual {{tl|Autor}}? He afegit un enllaç a Wikidata (a la secció de "Projectes germans"), he mogut la informació sobre drets d'autor a una secció pròpia (amb un enllaç a l'apartat de Wikidata sobre els drets d'autor, si n'hi ha; i un enllaç cap a la pàgina d'ajuda de drets d'autor); la clau d'ordenació (paràmetre "Ordenar") ja no caldrà informar-lo a mà; i també he acabat aconseguint (mitjançant ''vive coding'') treure els claudàtors del peu d'imatge quan a Wikidata n'hi hagi. Ara mateix podeu veure-ho a [[Autor:Erasme de Rotterdam]], però podeu fer proves (en mode previsualització) amb qualsevol autor i la {{tl|Plantilla de proves}}. En definitiva, proposo fer el canvi d'aquí a 1 mes (20 d'octubre) sempre que ningú hi vegi inconvenients. A reveure! -[[Usuari Discussió:Aleator|Aleator]] 20:51, 20 set 2026 (CEST) :Ah, m'oblidava. I llavors les plantilles {{tl|DP-Autor}}, {{tl|DP-Autor-70}}, {{tl|DP-Autor-80}}, {{tl|DP-Autor-100}} i {{tl|Copyright-AutorFins}} ja no serien necessàries i, per tant, les treuria de les pàgines d'autor (perque la informació ja apareixeria, més comprimida, a la infotaula). -[[Usuari Discussió:Aleator|Aleator]] 20:56, 20 set 2026 (CEST) ::Hola companys, gràcies per citar-me. Vaig fer el canvis al [[q:Mòdul:Persona|Mòdul:Persona]] amb l'ajuda d'eines IA (no domino gaire el codi avançat) Principalment, el mòdul LUA redueix bastant la càrrega de la plantilla i si no recordo malament és més segur i estable. I, per altra banda, també volia afegir el camp de drets d'autor, que es pot extreure de wikidata. Recomano repassar el codi amb una eina IA per si detecta errors o pot recomanar alguna millora.-- [[Usuari:Docosong|Docosong]] ([[Usuari Discussió:Docosong|discussió]]) 21:14, 20 set 2026 (CEST) rg6bv7yn07qgezn5nfdqjalvo89ol6a Mòdul:Autor 828 61076 185672 185669 2026-09-20T17:58:43Z Aleator 20 esmenes drets d'autor 185672 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions de l\'autor a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) or 2026 if (anyMort > 0 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat (autor viu)' end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p rqz2ervvx4omvukutvf228jklvsgj4c 185673 185672 2026-09-20T18:32:13Z Aleator 20 +pseudònim +ordenació 185673 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Clau d'ordenació local Ordenar = obtenirArg(args, {'Ordenar', 'ordenar'}) or '' local p735 = (item ~= '') and obtenirValorWD(item, 'P735') or '' local p734 = (item ~= '') and obtenirValorWD(item, 'P734') or '' if Ordenar == '' then if p734 ~= '' then local Cognom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P734 | list=false | formatting=label | item=' .. item .. '}}') if Cognom ~= '' then Ordenar = Cognom end elseif (Ordenar == '' and p735 ~= '') then local Prenom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P735 | list=false | formatting=label | item=' .. item .. '}}') if Prenom ~= '' then Ordenar = Prenom end else Ordenar = '*' end end Ordenar = mw.ustring.upper(mw.ustring.sub(Ordenar, 1, 1)) -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina .. '[[Categoria:Autors-' .. Ordenar .. ']]' local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions de l\'autor a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' local p742 = (item ~= '') and obtenirValorWD(item, 'P742') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- Pseudònim if p742 ~= '' then dades['label14'] = 'Pseudònim' dades['data14'] = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P742 | list=false | formatting=label | item=' .. item .. '}}') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) or 2026 if (anyMort > 0 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat (autor viu)' end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p a4y6jkivoivaytpcq2w1rdhghb61898 185674 185673 2026-09-20T18:39:42Z Aleator 20 connexió a WD 185674 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Clau d'ordenació local Ordenar = obtenirArg(args, {'Ordenar', 'ordenar'}) or '' local p735 = (item ~= '') and obtenirValorWD(item, 'P735') or '' local p734 = (item ~= '') and obtenirValorWD(item, 'P734') or '' if Ordenar == '' then if p734 ~= '' then local Cognom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P734 | list=false | formatting=label | item=' .. item .. '}}') if Cognom ~= '' then Ordenar = Cognom end elseif (Ordenar == '' and p735 ~= '') then local Prenom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P735 | list=false | formatting=label | item=' .. item .. '}}') if Prenom ~= '' then Ordenar = Prenom end else Ordenar = '*' end end Ordenar = mw.ustring.upper(mw.ustring.sub(Ordenar, 1, 1)) -- Connexió a Wikidata local ConWD local PagWD = mw.wikibase.getSitelink(item, 'cawikisource') or '' if PagWD == '' then ConWD = '[[Categoria:Pàgines d\'autor no connectades amb Wikidata]]' else ConWD = '[[Categoria:Pàgines d\'autor connectades amb Wikidata]]' end -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina .. '[[Categoria:Autors-' .. Ordenar .. ']]' .. ConWD local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions de l\'autor a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' local p742 = (item ~= '') and obtenirValorWD(item, 'P742') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- Pseudònim if p742 ~= '' then dades['label14'] = 'Pseudònim' dades['data14'] = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P742 | list=false | formatting=label | item=' .. item .. '}}') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) or 2026 if (anyMort > 0 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat (autor viu)' end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p 18m33kbadrfdbg5uieuu8kl8gqilkcz 185678 185674 2026-09-20T20:48:41Z Aleator 20 esmenes 185678 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Clau d'ordenació local Ordenar = obtenirArg(args, {'Ordenar', 'ordenar'}) or '' local p735 = (item ~= '') and obtenirValorWD(item, 'P735') or '' local p734 = (item ~= '') and obtenirValorWD(item, 'P734') or '' if Ordenar == '' then if p734 ~= '' then local Cognom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P734 | list=false | formatting=label | item=' .. item .. '}}') if Cognom ~= '' then Ordenar = Cognom end elseif (Ordenar == '' and p735 ~= '') then local Prenom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P735 | list=false | formatting=label | item=' .. item .. '}}') if Prenom ~= '' then Ordenar = Prenom end end end local CategoriesAutor = '' if Ordenar ~= '' then CategoriesAutor = '[[Categoria:Autors-' .. mw.ustring.upper(mw.ustring.sub(Ordenar, 1, 1)) .. ']]' end -- Connexió a Wikidata local ConnexioWD local PagWD = mw.wikibase.getSitelink(item, 'cawikisource') or '' if PagWD == '' then ConnexioWD = '[[Categoria:Pàgines d\'autor no connectades amb Wikidata]]' else ConnexioWD = '[[Categoria:Pàgines d\'autor connectades amb Wikidata]]' end if Ordenar ~= '' then CategoriesAutor = CategoriesAutor .. ConnexioWD end -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina .. CategoriesAutor local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' local p742 = (item ~= '') and obtenirValorWD(item, 'P742') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- Pseudònim if p742 ~= '' then dades['label14'] = 'Pseudònim' dades['data14'] = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P742 | list=false | formatting=label | item=' .. item .. '}}') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) --or 2026 if (anyMort > 0 and (anyActual - anyMort) > 70) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (70 p.m.a.)' elseif (anyMort > 0 and anyMort < 1995 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat' --viu end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p lo7jqvtafxryzsdwk6q5zgokiw3m63x 185679 185678 2026-09-20T20:53:24Z Aleator 20 esmenes 185679 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Clau d'ordenació local Ordenar = obtenirArg(args, {'Ordenar', 'ordenar'}) or '' local p735 = (item ~= '') and obtenirValorWD(item, 'P735') or '' local p734 = (item ~= '') and obtenirValorWD(item, 'P734') or '' if Ordenar == '' then if p734 ~= '' then local Cognom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P734 | list=false | formatting=label | item=' .. item .. '}}') if Cognom ~= '' then Ordenar = Cognom end elseif (Ordenar == '' and p735 ~= '') then local Prenom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P735 | list=false | formatting=label | item=' .. item .. '}}') if Prenom ~= '' then Ordenar = Prenom end end end local CategoriesAutor = '' if Ordenar ~= '' then CategoriesAutor = '[[Categoria:Autors-' .. mw.ustring.upper(mw.ustring.sub(Ordenar, 1, 1)) .. ']]' end -- Connexió a Wikidata local ConnexioWD local PagWD = mw.wikibase.getSitelink(item, 'cawikisource') or '' if PagWD == '' then ConnexioWD = '[[Categoria:Pàgines d\'autor no connectades amb Wikidata]]' else ConnexioWD = '[[Categoria:Pàgines d\'autor connectades amb Wikidata]]' end if Ordenar ~= '' then CategoriesAutor = CategoriesAutor .. ConnexioWD else CategoriesAutor = ConnexioWD end -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina .. CategoriesAutor local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' local p742 = (item ~= '') and obtenirValorWD(item, 'P742') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- Pseudònim if p742 ~= '' then dades['label14'] = 'Pseudònim' dades['data14'] = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P742 | list=false | formatting=label | item=' .. item .. '}}') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) --or 2026 if (anyMort > 0 and anyMort < 1995 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' elseif (anyMort > 0 and (anyActual - anyMort) > 70) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (70 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat' --viu end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p 8lsiu1vpwx9upqm452167gx9brbbuk9 185680 185679 2026-09-20T20:56:11Z Aleator 20 +esmenes 185680 Scribunto text/plain -------------------------------------------------------------------------------- -- Adaptat de https://ca.wikiquote.org/wiki/Mòdul:Persona -- (versió «10:26, 24 juny 2026 Docosong») -------------------------------------------------------------------------------- local p = {} -- Funció auxiliar de seguretat per fer preprocessos controlats local function safePreprocess(frame, text) local success, result = pcall(frame.preprocess, frame, text) return success and result or "" end -- Funció auxiliar per triar el primer paràmetre manual amb text local function obtenirArg(args, llista) for _, nom in ipairs(llista) do if args[nom] and args[nom] ~= '' then return args[nom] end end return nil end -- Funció nativa per obtenir dades de Wikidata netes i sense intermediaris local function obtenirValorWD(itemId, propietat) if not itemId or itemId == '' then return "" end local statements = mw.wikibase.getBestStatements(itemId, propietat) if statements and statements[1] and statements[1].mainsnak and statements[1].mainsnak.datavalue then local value = statements[1].mainsnak.datavalue.value if type(value) == "table" then return value.id or value.time or "" elseif type(value) == "string" then return value end end return "" end function p.infotaula(frame) local args = frame:getParent().args local item = args['item'] or '' if item == '' then local entitat = mw.wikibase.getEntityObject() if entitat then item = entitat.id end end local dades = { titlestyle = 'background-color: #d6d6c2; color:black; text-align:center;', abovestyle = 'background-color: #d6d6c2; color:black; text-align:center; padding:2px; font-size:110%;', headerstyle = 'background: #d6d6c2; color:black; text-align:center; padding:5px;', datastyle = 'text-align:left' } -- Clau d'ordenació local Ordenar = obtenirArg(args, {'Ordenar', 'ordenar'}) or '' local p735 = (item ~= '') and obtenirValorWD(item, 'P735') or '' local p734 = (item ~= '') and obtenirValorWD(item, 'P734') or '' if Ordenar == '' then if p734 ~= '' then local Cognom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P734 | list=false | formatting=label | item=' .. item .. '}}') if Cognom ~= '' then Ordenar = Cognom end elseif (Ordenar == '' and p735 ~= '') then local Prenom = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P735 | list=false | formatting=label | item=' .. item .. '}}') if Prenom ~= '' then Ordenar = Prenom end end end local CategoriesAutor = '' if Ordenar ~= '' then CategoriesAutor = '[[Categoria:Autors-' .. mw.ustring.upper(mw.ustring.sub(Ordenar, 1, 1)) .. ']]' end -- Connexió a Wikidata local ConnexioWD local PagWD = mw.wikibase.getSitelink(item, 'cawikisource') or '' if PagWD == '' then ConnexioWD = '[[Categoria:Pàgines d\'autor no connectades amb Wikidata]]' else ConnexioWD = '[[Categoria:Pàgines d\'autor connectades amb Wikidata]]' end if Ordenar ~= '' then CategoriesAutor = CategoriesAutor .. ConnexioWD else CategoriesAutor = ConnexioWD end -- Títol i Imatge principal local nomPagina = obtenirArg(args, {'nom', 'Nom'}) or safePreprocess(frame, '{{PAGENAME}}') dades['title'] = '<span style="float:left; margin-left:6px;">[[image:Simpleicons Interface user-outline.svg|20px|link=]]</span>' .. nomPagina .. CategoriesAutor local img = obtenirArg(args, {'imatge', 'image'}) or (item ~= '' and obtenirValorWD(item, 'P18')) or '' if img ~= '' then local codiImg = '{{#invoke:InfoboxImage|InfoboxImage | image=' .. img .. ' | size=' .. (args['mida_imatge'] or '225px') .. ' | sizedefault=frameless | upright=1 | alt=' .. (args['alt'] or '') .. ' | suppressplaceholder=yes}}' dades['image'] = '<div class="ombreig">' .. safePreprocess(frame, codiImg) .. '</div>' end if obtenirArg(args, {'imatge', 'image'}) and obtenirArg(args, {'peu', 'descripció'}) then dades['caption'] = obtenirArg(args, {'peu', 'descripció'}) elseif item ~= '' and img ~= '' then local captionWD = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P18 | qualifier=P2096 | list=lang | item=' .. item .. '}}') --Per treure possibles enllaços (no funciona amb Delink): captionWD = mw.text.decode(captionWD) --Treu entitats HTML captionWD = mw.text.killMarkers(captionWD):gsub("<[^>]+>", "") -- Treu etiquetes HTML captionWD = captionWD:gsub("%[%[[^%]]*%|([^%]%]]*)%]%]", "%1") --'[[Enllaç|Text 1]] => "Text 1"' captionWD = captionWD:gsub("%[%[([^%]%]]*)%]%]", "%1") --'[[Text]] => Text' dades['caption'] = mw.text.trim(captionWD) end -- SECCIÓ: Projectes germans dades['header1'] = 'Projectes germans' if item ~= '' then dades['data3'] = '<span style="padding:5px;">[[Fitxer:Wikidata-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Metadades a \'\'\'[[d:' .. item .. '|Wikidata]]\'\'\'</span>' local wp = mw.wikibase.getSitelink(item, 'cawiki') or '' if wp ~= '' then dades['data4'] = '<span style="padding:5px;">[[Fitxer:Wikipedia-logo-v2.svg|20px|link=]]&nbsp;&nbsp;Biografia a la \'\'\'[[w:' .. wp .. '|Viquipèdia]]\'\'\'</span>' end local wq = mw.wikibase.getSitelink(item, 'cawikiquote') or '' if wq ~= '' then dades['data5'] = '<span style="padding:5px;">[[Fitxer:Wikiquote-logo.svg|20px|enllaç=]]&nbsp;&nbsp;Dites i citacions a \'\'\'[[q:' .. wq .. '|Viquidites]]\'\'\'</span>' end end local p373 = (item ~= '') and obtenirValorWD(item, 'P373') or '' if p373 ~= '' then local cm = obtenirArg(args, {'Wikicommons', 'Commons'}) or (item ~= '' and safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P373 | list=false | item=' .. item .. ' }}')) or '' if cm ~= '' then dades['data7'] = '<span style="padding:5px;">[[Fitxer:Commons-logo.svg|20px|link=]]&nbsp;&nbsp;Multimèdia a \'\'\'[[commons:Category:' .. cm .. '|Commons]]\'\'\'</span>' end end -- SECCIÓ: Dades biogràfiques dades['header9'] = 'Dades biogràfiques' local p19 = (item ~= '') and obtenirValorWD(item, 'P19') or '' local p569 = (item ~= '') and obtenirValorWD(item, 'P569') or '' local p20 = (item ~= '') and obtenirValorWD(item, 'P20') or '' local p570 = (item ~= '') and obtenirValorWD(item, 'P570') or '' local p742 = (item ~= '') and obtenirValorWD(item, 'P742') or '' -- Naixement if p19 ~= '' or p569 ~= '' then dades['label11'] = 'Naixement' local elementsNaix = {} if p19 ~= '' then table.insert(elementsNaix, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P19 | list=false | item=' .. item .. ' | formatting=label}}')) end if p569 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P569 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsNaix, dataTxt) end dades['data11'] = table.concat(elementsNaix, ', ') end -- Mort if p20 ~= '' or p570 ~= '' then dades['label13'] = 'Mort' local elementsMort = {} if p20 ~= '' then table.insert(elementsMort, safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P20 | list=false | item=' .. item .. ' | |formatting=label}}')) end if p570 ~= '' then local dataTxt = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P570 | list=false | formatting= j xg "de" Y | item=' .. item .. '}}') table.insert(elementsMort, dataTxt) end dades['data13'] = table.concat(elementsMort, ', ') end -- Pseudònim if p742 ~= '' then dades['label14'] = 'Pseudònim' dades['data14'] = safePreprocess(frame, '{{#invoke:Wikidata | claim | property=P742 | list=false | formatting=label | item=' .. item .. '}}') end -- SECCIÓ: Drets d'autor if item ~= '' then local Drets = '' local TextFinal = '' local LogoPD = '[[Fitxer:Icon PD.svg|20px|link=]]' local LogoCR = '[[Fitxer:Red copyright.svg|20px|link=]]' local claimsCopyright = mw.wikibase.getBestStatements(item, 'P7763') if claimsCopyright and claimsCopyright[1] and claimsCopyright[1].mainsnak.datavalue then local idCopyright = claimsCopyright[1].mainsnak.datavalue.value.id if idCopyright == 'Q71887839' then Drets = 'PD' TextFinal = LogoPD .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|han expirat]]' elseif idCopyright == 'Q50423863' then Drets = 'CR' TextFinal = LogoCR .. ' Els drets d\'autor [[:d:' .. item .. '#P7763|no han expirat]]' end end if Drets == '' then if p570 ~= '' then local anyMort = tonumber(string.match(p570, "%d%d%d%d")) or 0 local anyActual = tonumber(os.date('%Y')) --or 2026 if (anyMort > 0 and (anyActual - anyMort) > 100) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (100 p.m.a.)' elseif (anyMort > 0 and (anyActual - anyMort) > 80) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (80 p.m.a.)' elseif (anyMort > 0 and anyMort > 1995 and (anyActual - anyMort) > 70) then TextFinal = LogoPD .. ' Els drets d\'autor han expirat (70 p.m.a.)' else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat encara' end else TextFinal = LogoCR .. ' Els drets d\'autor no han expirat' --viu end end dades['header18'] = "Drets d'autor [[Fitxer:Commons-emblem-notice.svg|20px|link=Viquitexts:Drets d\'autor]]" dades['data19'] = TextFinal end return frame:expandTemplate{ title = 'Infotaula', args = dades } end return p iwq9rswlhwi9z0e3dk1yq3zm3e2t571