Lankide eztabaida:Theklan/2016ko urtarrila

Automatic search for similar items in Wikidata aldatu

Hi! If we're speaking about templates and categories, then I could help. By my count there are some 10tk templates, that are also in English Wikipedia with the same name. I can connect them, but not right now - will probably wait some 2-3 weeks (so my to-do-list gets longer), hope it's OK with you. In those 10tk templates I counted only those, which are @enwiki and are not redirects there. In my current level of wikiguru it is quite painful dealing with redirects. I suppose you have taken some stuff also from Spanish Wikipedia, right? So I should also check it? And maybe some other popular Wikipedias here? But when dealing with categories (there are some 2400 unconnected categories) I need local help with translating. I will later give you a list of those unconnected categories and somebody who knows the language should guide me for popular items (like "(year) 2000", "2000 in music" etc.). --Edgars2007 (eztabaida) 08:51, 10 azaroa 2015 (UTC)

Here is the list of categories, that are not connected to Wikidata. It looks like it will basically be a manual work. Templates are more simple to connect because users are lazy and copy-paste from enwiki :) P.S. I don't know your Wikipedia rules, but lets keep this disscusion undefragmented, if it's not against the rules. Pinging me will be fine :) P.S.S. if you have some specific questions about Lua in templates, I probably can also help (I like to work with infoboxes - I'm something like infobox boss at my homewiki :) ). I'm not some cool Lua coder, but have some knowledge. Didn't dig very deep, but this one looks quite OK, but yes, the code could be simplified. --Edgars2007 (eztabaida) 16:58, 10 azaroa 2015 (UTC)
And I think you have a typo here - search for Elba and Enterprise[15] (Alabama). Articles like Coffee konderria (Alabama) looks weird then :) --Edgars2007 (eztabaida) 17:03, 10 azaroa 2015 (UTC)
Thanks Edgars2007. Typo solved. About the categories... many of them are very local. Like "Buildings in this town" and won't find anything in other wikis. Templates I think it would be easier. About automatic infoboxes, I'm very interested in the topic, and I think that it would be possible for small wikis to be up to date with Wikidata. So I have quite a good knowledge of templates and parser functions, but I'm very lost with lua and with extracting complex data from Wikidata. For example, it would be very useful to extract data of items that don't exist but without the Qxxxxxxx format. -Theklan ·   ·   22:20, 10 azaroa 2015 (UTC)
You think something like this (Père)? Will have to dig deep to find the piece of code, that does the job. --Edgars2007 (eztabaida) 17:06, 11 azaroa 2015 (UTC)
Yes, but with a red link! -Theklan ·   ·   17:29, 11 azaroa 2015 (UTC)

To prove you, that I haven't forgot about you, some update. Well, I kind of found that piece of code, it's the formatStatements function here (OK, I understand, that it doesn't mean anything to you). As you maybe see, frwiki has a quite complex tree of Wikidata modules, which most probably is very good, but not good, when you need only something :) If I won't be able to get that function work alone, then most probably will ask frwiki author to get it. See some potential use-cases also for lvwiki. But anyway, at least at lvwiki I have done some nasty things - I just review Wikidata modules at each Wikipedia and then decide, if I need that version at lvwiki, because some functionality is better developed in only one version. When I would be Lua proffesional, I would just connect them in one module :) --Edgars2007 (eztabaida) 19:19, 21 azaroa 2015 (UTC)

Done the Wikidata addition part. I connected some 10tk templates - mainly taxobox subtemplates and cite doi templates. --Edgars2007 (eztabaida) 09:40, 26 abendua 2015 (UTC)

WOW! Thank you very much Edgars2007! Is there anything I must do now? -Theklan ·   ·   09:46, 26 abendua 2015 (UTC)
You could continue connecting pages to Wikidata items. Will later (probably in 2016) provide the list. It would be very good to cennect at least basepages (without subpages). --Edgars2007 (eztabaida) 13:10, 31 abendua 2015 (UTC)
The list. --Edgars2007 (eztabaida) 11:29, 14 urtarrila 2016 (UTC)

OK, I think I have resolved that Wikidata problem (getting redlink instead of Qxx). Actually, it was pretty easy :D You can preview this code: {{#invoke:Sandbox/Edgars2007 | formatStatements | property=P138 | separator=<br /> | conjunction=<br />|formatting=normal}} at Coffee konderria (Alabama). OK, it isn't completely finished (formatting still needs to be done), but the code is ready. But what I need from you, is euwiki decision. What output do you want (if there isn't euwiki article):

  • [[enwiki link | enwiki link without parenthesis]]
  • [[enwiki link | en label]]
  • [[enwiki link | eu label]]

Everything is doable. I would suggest 3rd, but if there isn't eu label, then 1st. We can track down in category those items, which don't have eu label. Oh, and if there isn't enwiki link, then what Wikipedia(-s) should come next? Or we can then put [[eu label]] or category, if there isn't eu label? OK, I hope you understand, what I'm trying to say. It's pretty late here and my mind starts to think unlogically :) --Edgars2007 (eztabaida) 00:07, 12 otsaila 2016 (UTC)

Great! I think I have to ask about this to other users. Thanks for all the work! -Theklan ·   ·   08:22, 12 otsaila 2016 (UTC)

The Signpost: 06 January 2016 aldatu

News, reports and features from the English Wikipedia's weekly journal about Wikipedia and Wikimedia

Pywikibot aldatu

Aupa Theklan!! Garai batean pywikibot-a nuen eta ordenagailua aldatu nuenean galdu egin nuen... Saiatu naiz berriro instalatzen ingelesezko tutorialekin baina ez dut lortzen :( Uste dut pywikibot-a duzula, laguntzerik? Milesker --An13sa 19:01, 7 urtarrila 2016 (UTC)

Nik baita Windowsen. Python eta Pywikibot deskargatu eta instalatu ditut. Galderak:
  • Zein formatutan sortu behar da eta non ubikatu behar da user-config.py? Zer jarri behar da?
  • Hori egin ondoren, cmd ireki eta chdir erabili (bot-a dagoen karpetara mugitzeko) eta ya erabiltzeko moduan dago?

--An13sa 20:42, 7 urtarrila 2016 (UTC)

Nik hau jarrita dut, eta core karpetan dago:

  1. -*- coding: utf-8 -*-
  1. This is a sample file. You should use generate_user_files.py
  2. to create your user-config.py file.

mylang = 'eu' family = 'wikipedia' usernames['wikipedia']['eu'] = 'TheklanBot' transliteration_target = None

Ondoren metodo ezberdina erabiltzen da, lehen adibidez replace.py jarri behar zen eta orain pwb.py replace.py eta horrela funtzionatu beharko luke. -Theklan ·   ·   20:48, 7 urtarrila 2016 (UTC)
Aupa Theklan, oraindik ez dut lortu martxan jartzea. Orain arte hau egin dut: Python instalatu, core karpeta deskargatu eta "Mis Documentos"-en deskonprimatu, User_files.py sortu dut (zuk komentatu bezala) eta cmd.exen sartu naiz. Lehenengo "chdir"-ekin "core" karpetaren ubikaziora joan naiz. Ondoren zer egin behar dut? Saioa hasi? Zer idatzi behar dut? Eskerrik asko laguntzagatik. --An13sa 19:01, 18 urtarrila 2016 (UTC)
C:\code> pwb.py login.py egitean lerro huts bat bueltatzen dit...--An13sa 20:11, 18 urtarrila 2016 (UTC)

Hau lortzen dut:
File "C:\code\login.py", line 140
pywikibot.output(u"To force a re-login, please delete the revelant "

SyntaxError: invalid syntax--An13sa 20:36, 18 urtarrila 2016 (UTC)

The Signpost: 13 January 2016 aldatu

Italiako botarekin arazoren bat. aldatu

Aupa Theklan, Italiako herriarentzako zure botak arazoren bat dauka "herri mugakideekin". Ez da ezer agertzen edo zenbaki batzuk agertzen dira. Nik ez dakit zelan konpontzen den. P.D. Pena haundia daukat atzo ezin izan nintzelako zuekin poteren bat edo beste hartzen geratu. Hurrengoan ez dut hutsik egingo. Gabon. -Oraina (eztabaida) 21:31, 16 urtarrila 2016 (UTC) Osasuna Oso ondo ba, langile fina. Ondo izan.-Oraina (eztabaida) 21:43, 16 urtarrila 2016 (UTC)

Laguntza aldatu

Aupa. Ikusiko al duzu zergatik ateratzen den ETAren anagrama bi aldiz artikuluko infotaulan? Eta, bide batez zer dela eta azaltzen da Iñaki Kijera artikulua G letran sailkatuta kategorietan, defaultsort sartuta? Mila esker. - --Joxemai; (erantzunak) 17:31, 18 urtarrila 2016 (UTC)

Infotaula txantiloian norbaitek aldaketa egin zuen eta Donostiako Zinemaldia, NHL, NBA, NFA... artikuluetako infotauletan ere irudia birritan errepikatzen zela duela pare bat egun ikusirik aldaketa atzera botatzen saiatu nintzen baina alferrik. Irudia errepikatu ez dadin image = dagoen lekuan image1 = jarri beharra dago.
-Euskaldunaa (eztabaida) 17:45, 18 urtarrila 2016 (UTC)
Bai, ikusi nuen arazoa. Eta egia esan ez dakit zergatik, ze teorian da Modulu:Infoboximage edo horrelako zerbait ukitu nuelako. Eta ukitu nuen zegoen bezala utziz. -Theklan ·   ·   18:17, 18 urtarrila 2016 (UTC)

AEBetako konderri infotaula automatikoa aldatu

Aupa Theklan!! Badakizu zergatik agertzen den Oglala Lakota konderria (Hego Dakota) artikuluko konderri infotaulako estatua atalean agertzen dena? Arraroa iruditzen zait...--An13sa 20:36, 21 urtarrila 2016 (UTC)

Ok!! --An13sa 14:54, 22 urtarrila 2016 (UTC)

The Signpost: 20 January 2016 aldatu

News, reports and features from the English Wikipedia's weekly journal about Wikipedia and Wikimedia

Alemaniako udalerriak (automatikoa) aldatu

Aupa Theklan, ikusi dut Xirkan ari dela Alemaniako udalerrien artikuluak eskuz sortzen (infotaula automatikoarekin) eta nire bot-arekin Alemaniako udalerriak azkarrago sortzen lagundu nahi dut. Bot-arekin hau sortu dut froga gisa: Absberg, baina ez ditu wikidatako datuak hartzen. Zerbait egin behar dut aurretik txantiloi:Alemaniako udalerri infotaula automatikoan?--An13sa 10:04, 28 urtarrila 2016 (UTC)

Ok! Interwiki bat jartzeaz ari zara ezta? Eskerrik asko.--An13sa 10:19, 28 urtarrila 2016 (UTC)

Linking two categories to Wikidata aldatu

Hi again! I'm currently doing this. At least two problems, that I have spotted.

  1. some iw links are not valid, for example, this. Will try to provide list of them later.
  2. some articles now are linked to disambigs, for example, this one. Not so good :) I could try to give you a list of them if you could tell me, how to "reproduce" this category. All members of that category had this infobox?
  3. some articles may be about other cities, I think. --Edgars2007 (eztabaida) 18:38, 29 urtarrila 2016 (UTC)
The list of articles, that have infobox "Txantiloi:Alemaniako udalerri infotaula automatikoa" and are marked as disambigs at Wikidata. As data is incomplete at Wikidata, there may be more:
P.S. I found such article :) --Edgars2007 (eztabaida) 07:23, 3 otsaila 2016 (UTC)
"Theklan/2016ko urtarrila" erabiltzailearen orrira bueltatu.