Wikidata:Requests for permissions/Bot/Andrebot
From Wikidata
Jump to navigation
Jump to search
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 17:34, 27 July 2018 (UTC)[reply]
Andrebot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Andrei Stroe (talk • contribs • logs)
Task/s: Maintain items of settlements and municipalities of Romania.
Code:
- Main code: https://github.com/rowiki/wikiro/blob/master/java/wikiro-java-villages-fixer/src/main/java/org/wikipedia/ro/villagesfixer/FixVillages.java
- Calling functions from: https://github.com/andreistroe/wiki-java/blob/master/src/org/wikibase/Wikibase.java
Function details:
- Set the label to the settlement/municipality name, and the Romanian description to the standard text;
- Populate native label (P1705) with the Romanian name if not already present;
- Import image (P18) from the imagine parameter of the infobox, along with a qualifier for media legend (P2096) from the descriere parameter of the infobox;
- Import area (P2046) from the suprafață_totală_km2 parameter of the infobox;
- Import elevation above sea level (P2044) from the suprafață_totală_km2 parameter of the infobox;
- Import coat of arms image (P94) from the stemă parameter of the infobox;
The timing is 10-40 seconds between municipalities and 10-20 seconds between settlements.--Andrei Stroe (talk) 06:42, 25 July 2018 (UTC)[reply]
- Please make about 50 test edits.--Ymblanter (talk) 08:02, 25 July 2018 (UTC)[reply]
- The bot has performed (actually, too) many such edits: most are examples of populating native label (P1705). At Tămășeu (Q12160449), there is an example of importing image (P18), as well as the media legend (P2096) qualifier. The other imports are expected to be rare.--Andrei Stroe (talk) 08:13, 25 July 2018 (UTC)[reply]
- Looks uncontrovercial to me, so that I could approve it in a couple of days provided there have been no objections raised.--Ymblanter (talk) 19:24, 25 July 2018 (UTC)[reply]
- The bot has performed (actually, too) many such edits: most are examples of populating native label (P1705). At Tămășeu (Q12160449), there is an example of importing image (P18), as well as the media legend (P2096) qualifier. The other imports are expected to be rare.--Andrei Stroe (talk) 08:13, 25 July 2018 (UTC)[reply]