User:TigerfellBot

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is an account controlled by User icon 2.svgTigerfell (on osm). It is used for the execution of scripts and other semi-automatic or automatic changes within the wiki. Programs run multiple times (continuous cleanup), tasks are executed once within a specific time span and then they are done.

Program 'Rename categories'

Status:
 
in operation

Renamed i.e. moved categories are not updated on their member pages (MediaWiki bug). This has lead to a user reverting the redirection of a category, because he thought the redirect "didn't work".

The bot uses subcategories of Category:Soft-redirected categories still containing pages and changes all content within a subcategory to the new category. Every subcategory for redirection will be checked manually to spot template errors and erroneous redirections. This bot uses the scripts provided by Pywikibot.

Factsheet

type of change replacement of text, wiki maintenance
affected namespaces and pages all pages included in redirected categories if the category redirection was reviewed
duration and frequency of changes continuously
reason for action bug in Wiki software, no judgment for every page required
handling of exclusion requests contact me via User talk:Tigerfell
reference to notifications Talk:Wiki
proposed edit summary running program 'Rename categories': update names of redirected and soft-redirected categories
date of first change 6 August 2019
date of last change -

List of requested page exclusions


Example change

Page name before change after changes on categorisation by TigerfellBot
RU:Moscow Mapping Party 20131026 Special:PermaLink/962472 Special:PermaLink/1886886 (diff)


Task 'Slippymap'

Status:
 
planned

The Slippy Map wiki extension suffers some technical issues and is called depreciated. After a longer discussion, user User icon 2.svgTigerfell (on osm) expanded the MultiMaps map extension in a way it can replace the Slippy Map extension in this wiki. This automated edit aims to replace the calls to Slippy Map extension with calls to Template:Slippymap which in turn calls MultiMaps extension. In case we will exchange one of our map extensions with a different one again, we can simply change the template.

This bot uses the scripts provided by Pywikibot. It processes the pages within wiki search results for '<slippymap lat=' if they are also within one of the following namespaces: (main), Talk, DE, DE talk, ES, ES talk, FR, FR talk, IT, IT talk, JA, JA talk, NL, NL talk, RU, RU talk, User, User talk. This means that template pages will be changed manually (but they are planned to change as well). Calls using an older syntax will be replaced as well.

Factsheet

type of change replacement of text, technical change
affected namespaces and pages all pages using Slippy Map MediaWiki Extension
duration and frequency of changes multiple sets of systematic changes in the span of less then two months
reason for action change of MediaWiki extension used, keeping the current appearance of pages
handling of exclusion requests very problematic: If we disable the current extension afterwards, maps will display a static text instead. (possibly needs discussion)
singular pages: adding the page title to the excluded page list
multiple pages: wiki email to Tigerfell
reference to notifications none (planning stage)
proposed edit summary running task 'Slippymap': replacing Slippy Map extension with MultiMaps extension
date of first change -
date of last change -

List of requested page exclusions


Example changes

Page name before change after changes on template and by TigerfellBot

Small changes during execution

The following changes were made during the execution of the script. I deemed them as minor and did not request approval for them.

  • (none yet)

Task 'Undefined Elements'

Status:
 
reviewed

User Tigerfell rewrote the relation template in September 2018 and dropped some features (community approval included). One of the dropped features was the ability to link to an element in the OSM database which was not yet defined. This was done by leaving the first parameter of the templates empty. Some pages' markup is now invalid. The bot's aim is to change the template calls with an empty first parameter by adding the previously visible wiki text of the old template at the spot of the current template call with invalid parameters. The change is also requested for Template:Node, Template:Way, and Template:Area where the same changes were applied.
For the ease of processing, the bot would change calls to Template:BrowseRelation to Template:Relation (currently redirected) on all affected pages.

This bot uses the scripts provided by Pywikibot. It processes the pages within Category:Pages with script errors if they are also within one of the following namespaces: (main), Talk, DE, DE talk, ES, ES talk, FR, FR talk, IT, IT talk, JA, JA talk, NL, NL talk, RU, RU talk, User, User talk.

Factsheet

type of change replacement of text, substitution of a former template
affected namespaces and pages pages in Category:Pages with script errors and namespaces (main), Talk, DE, DE talk, ES, ES talk, FR, FR talk, IT, IT talk, JA, JA talk, NL, NL talk, RU, RU talk, User, User talk
duration and frequency of changes multiple groups of systematic changes in the span of less then two months
reason for action change in template, keeping the former appearance of pages
handling of exclusion requests singular pages: adding the page title to the excluded page list
multiple pages: wiki email to Tigerfell
reference to notifications Talk:Wiki, OSM forum Wiki team, Talk mailing list
proposed edit summary running task 'Undefined Elements': replacing undefined elements with plain wiki text
date of first change 15 October 2018 (DE namespace)
date of last change 16 November 2018 (RU namespace with replacement texts falling back to English)

List of requested page exclusions


Example changes

Page name before change on template after change on template after changes on template and by TigerfellBot
ES:Cusco Nodo no definido Lua error in Module:Element at line 11: Given node id parameter is not a number. Nodo no definido
Colorado/Railroads Relation not defined yet for Main line Lua error in Module:Element at line 11: Given relation id parameter is not a number. Relation not defined yet for Main line
NL:Hoofdpagina Way not defined yetHelp dit vertalen naar het Nederlands! Lua error in Module:Element at line 11: Given way id parameter is not a number. Way not defined yet

In the last example both valid versions would also include the page in Category:Pages unavailable in Dutch under Hoofdpagina.

Small changes during execution

The following changes were made during the execution of the script. I deemed them as minor and did not request approval for them.

  • {{BrowseRelation}} was not generally replaced by {{Relation}} on affected pages so far.
  • I counted combinations of Xes, question marks and dashes as empty first parameters. MediaWiki counts spaces without text in unnamed parameters as empty values itself.
  • I did not strictly follow the language prefixes when substituting the calls. Instead, I tried to figure out the language of a page by the title (and sometimes the content as well).
  • As there were many pages in Polish, I requested a translation from Władysław Komorek. The Polish pages will display a Polish text instead of an English fallback version.
  • Regarding the language fallback to English, I used the template {{TranslationOf element not defined yet for}} instead of a plain English wiki text. This enables translators to change the template instead of conducting another automated edit. The template existed before my actions already.