Usuari Discussió:Vriullop

El contingut de la pàgina no s'admet en altres llengües.
De la Viquipèdia, l'enciclopèdia lliure







You have been a medical translators within Wikipedia. We have recently relaunched our efforts and invite you to join the new process. Let me know if you have questions. Best Doc James (talk · contribs · email) 12:34, 6 August 2023 (UTC)





conjunció o[modifica]

Benvolgut, després de perdre 2 hores cercant una cosa que ja m'has respost abans (més d'un cop...), torno a recórrer a la teva saviesa, memòria o organització en els teus apunts, per saber: "quin és el missatge mediawiki de la conjunció o, or, ou,...." ?. Prometo afegir-ho a la doc de wikidades, de les infotaules i als meus apunts a veure si la propera vegada soc més afortunat cercant. Gràcies ! amador (disc.) 08:26, 31 març 2024 (CEST)[respon]

Trobat !. {{MediaWiki:Mwe-upwiz-add-flickr-or}} amador (disc.) 08:39, 31 març 2024 (CEST)[respon]
Està documentat en el mòdul, però de fet no l'utilitza. Deu estar en les plantilles. V.RiuLlop (parlem-ne) 15:12, 31 març 2024 (CEST)[respon]
No serà el que he afegit jo aquest matí ?.
Efectivament no és cosa del mòdul, perquè l'AND és valor per defecte, però l'OR sempre és excepcional. Però com que no recorava el nom, buscava a cegues. L'he trobat a Infotaula persona, que té una mica de tot.

Aprofito el fil per proposar-te un repte. No per fer-ho, sinó per pensar com enfocar la solució.
Observo que a mida que creixen els usuaris de WD, i ja sigui per raons lingüístiques o per manca de manteniment de items amb significat igual o molt similar, estan creixent el nombre de valors de propietats com la Ocupació (P106) o el Gènere (P136) que tenen un significat pseudo-repetit. Poso un parell d'exemples:
Si descartem actuar sobre les dades de WD, podríem fer alguna "post-producció" de neteja al mostrar-ho a la infotaula. Estic pensant en tenir unes regles i un codi que les apliqui, de forma que sigui fàcil fer tunning i ampliar o refer les regles segons cada cas, sense haver de canviar el codi. En alguns casos podríem treballar amb la idea de si una és subclasse e l'altre, però també en el fet que el text fos igual, o una especificitat d'un altre de genèric.
Bé, una anada d'olla que he pensat que et podria interessar, ni que sigui com esport.
Salut ! amador (disc.) 17:51, 31 març 2024 (CEST)[respon]

Technical question about maps and Lua[modifica]

Hola, Vriullop. I am chiefly active in the Esperanto Wikipedia, but I visite your Wikipedia now and again, above all if I search again ideas for templates and Lua-modules. - In a template is used {{#tag:mapframe:. But the code with {{#if: around it is partly unusable, so that now the maps are used only, if the topic in the article is railway line in Czechia (Q213) and Slovakia (Q214). The topic is the template eo:Ŝablono:Informkesto fervojlinio. Furthermore in the code block is used a not complete documented Lua-module (wikidata2, from the czech Wikipedia). I would change the code, that somehow is called up if a map is usable, so data are defined for that. But P402 on Wikidata is usable partly only, because this isn't defined on Wikidata for the concerned articles. Are there somehow other, that can be called up with Lua? - Can Lua call up "externaldata" from {{#tag:mapframe:, before the Wiki extension is integrated? Tlustulimu (disc.) 08:45, 9 abr 2024 (CEST)[respon]

@Tlustulimu: I'm not sure if I understood it. You can generate a map with an OSM relation like type=route or type=waterway. Some test examples at Special:Permalink/33353354. But it has to be defined on Wikidata with OpenStreetMap relation ID (P402). I have not found any example with route=railway. If they are available on OSM, you can follow the instructions of mw:Help:Extension:Kartographer/OSM.
@Amadalvarez: Can you generate a list of instances railway with P402? V.RiuLlop (parlem-ne) 11:03, 9 abr 2024 (CEST)[respon]
Thanks for your answer. But in some articles the map works without P402, for example eo:Báňská dráha. Tlustulimu (disc.) 11:27, 9 abr 2024 (CEST)[respon]
@Tlustulimu: I see. On OSM, the relation https://www.openstreetmap.org/relation/2783381 is identified with wikidata=Q802957, and then the Kartographer extension can associate it with Wikidata item Q802957. There is no way from Lua or wikicode to know if it exists or not, other than to add P402=2783381. There is a tracking category cs:Kategorie:Údržba:OSM relace není na Wikidatech, but it seems incomplete. To make it consistent, you should review eo:Special:Whatlinkshere/Ŝablono:Mapkadro fervojlinio in order to assure all inclusions have P402. Then, in the template it is just {{#if:{{#property:P402}}|<generate map>}}. V.RiuLlop (parlem-ne) 12:50, 9 abr 2024 (CEST)[respon]
I just added P402 to the Q802957 and changed the infobox template. It works, even for other countries. Thank you and have a good day. Tlustulimu (disc.) 13:34, 9 abr 2024 (CEST)[respon]
@Vriullop https://w.wiki/9iAn amador (disc.) 13:19, 9 abr 2024 (CEST)[respon]
Gràcies. El problema serà el contrari, saber què hi ha a OSM que no està a Wikidata. Per cert, he vist coses com https://www.openstreetmap.org/relation/195707. @Tlustulimu: This query from Amador may be helpful. V.RiuLlop (parlem-ne) 13:29, 9 abr 2024 (CEST)[respon]
I just tested some articles, those topic is a railway in another country than Czechia or Slovakia, for example eo:Linio A de la metroo de Liono, eo:Nekrasovskaja linio (Moskvo). It works very finely. Tlustulimu (disc.) 13:38, 9 abr 2024 (CEST)[respon]
Hola, Vriullop. There are some problems with the articles eo:Tram-metroo de Rouen and eo:Tramvojo de Monto Blanka. For the second article is lacking the Q-code Q1577318 on the OSM page Relation: ‪Tramway du Mont-Blanc‬ (‪14626388‬). But I don't know how I could add it there. But P402 is defined on the Wkikidata page. For the first article all codes are defined. But a world map appears only. - Do you have an idea? Greetings Tlustulimu (disc.) 16:09, 10 abr 2024 (CEST)[respon]
@Tlustulimu: For the first case, note that the OSM map does not show any line. That's because it is defined as type=network, it is formed by two lines: Tram ligne Technopôle (Rouen) (Q55079952) and Rouen tram route Georges Braque (Q55079983), both defined as type=route. Good news is that you can show both lines in one map, see eo:User:Vriullop/provejo using parameter id of Template:Mapkadro fervojlinio. You can include this parameter in Template:Informkesto fervojlinio. I have added a suggested code in the sandbox, not tested. The idea is with id=- do not show any map at all, with id=Qxxx then show a map not associated with current page, with id=Qxxx,Qxxx then show a multiple map as in Rouen, with no id defined then show the map from P402.
For the second case, see the instructions at mw:Help:Extension:Kartographer/OSM#How to add Wikidata ID to OSM. V.RiuLlop (parlem-ne) 09:07, 11 abr 2024 (CEST)[respon]
Hola, Vriullop. Thank you for your idea. I just changed the infobox and added "id" to the first article. It works finely there. - Greetings Tlustulimu (disc.) 09:56, 11 abr 2024 (CEST)[respon]

Superat per l'html[modifica]

Hola Vicenç. Mira si em pots fer la llum amb un tema [menor] on estic encallat. a Usuari:Amadalvarez/proves/òpera tens una col·lecció de capçaleres d'infotaula on he compartit un logo amb el text del nom/títol de l'article. El logo és opcional, per tant, si no hi ha logo el text ha de sortir centrat. Tens un cas als exemples. La caixa s'ajusta a la mida del text. El logo, per evitar ensurts, li he posat mida fixa.

Ho voldria centrar verticalment, perquè ara queda alineat a dalt. Quan els logos són alts i transparents no queden malament. Però els que tenen fons de color i més baixos que l'alçada de la caixa, queda una mica estrany. Per més voltes que li he donat no me'n surto. Potser té alguna col·lisió o li fan nosa valors de les classes de la Infobox o de la templatestyle. Si és alguna cosa relativa a aquesta darrera pots canviar-lo perquè és particular. Avui o demà voldria pujar aquest canvi a producció. Si ho tens abans millor, però no seria greu tenir-ho com està ara, si cal. Gràcies amador (disc.) 11:50, 23 abr 2024 (CEST)[respon]

@Amadalvarez: en:Wikipedia:Extended image syntax#Vertical alignment no funciona amb float. L'opció middle ja és per defecte quan no és thumb. El truc està en definir line-height pel div del logo que agafi les dues línies. L'he posat a ull d'acord amb el fitxer 80x40px. Caldria veure-ho en casos extrems. V.RiuLlop (parlem-ne) 12:51, 23 abr 2024 (CEST)[respon]
Genial !. He pujat a 45 i quedava més centrat. Però forçant un text de 3 línies, s'esgarrava perquè se'm colava el final del text per sota la imatge.
Després de fer una mica d'empirisme intentant trobat un algorisme que em tornes la proporció àuria del tema, he arribat a la conclusió que la llargada del text és una mida prou bona per posar-la com a alçada de línia. Veure: special:permalink/33417290.
Gràcies. amador (disc.) 15:58, 23 abr 2024 (CEST)[respon]