Traveler100bot

From Wikivoyage
Jump to navigation Jump to search
This is a Wikivoyage user page.

Bot account for User:Traveler100

If this bot is running and you want to stop it. Publish some text on the Talk page of this article.

Proposed Function[edit]

hatnote[edit]

If first line of article start with colon then replace and place text in {{hatnote}}

Ongoing functions[edit]

Listings Accessibility - Bullet lists fix and Listings case[edit]

  • Remove blank lines between listings, as this creates multiple bullet lists. Affects the underlying HTML code and may have disruptive effects for some screen readers; see w:Wikipedia:Manual_of_Style/Accessibility#Lists for details.
  • Change listings type name from uppercase to lowercase. For example Sleep to sleep. When page has mix of uppercase and lowercase listings the map marking do not work correctly.

Previous functions[edit]

kms[edit]

  • change kms to km (if number before it)

Translate text position[edit]

  • Move {{translate}} from top to bottom of articles.

Related sites - phase 2[edit]

no Wikipedia link[edit]

Related sites[edit]

Change syntax of Related Sites entries

  • Replace [[Wikipedia:(.*?)]] with {{RelatedWikipedia|$1}}
  • Replace [[Commons:Category:(.*?)]] with {{RelatedCommonsCat|$1}}
  • Replace [[Commons:(.*?)]] with {{RelatedCommons|$1}}
  • Delete [[Dmoz:(.*?)]]

Fix phone number format[edit]

For all articles check phone parameter of listings template (buy, do, drink, eat, listing, see, sleep).

  • If parameter contains text and special characters but not capital letters:
  • replace / with -
  • remove (0)
  • remove [0]
  • remove ( and )
  • remove '
  • remove .
  • remove &nbsp

* remove Tel: and Tel.:

  • remove 00
  • repalce 011 with +
  • replace +digits digits digits digits with +digits digits digits-digits
  • replace +digits digits-digits with +digits digits digits
  • Run via country adding country code if does not exist, fixing country code format with plus and removing zeros

Currently running manually as too many exceptions for automatic.

Add pagebanners[edit]

Recursively descend country or continent categories below Category:Region categories and for all article pages (skip if contains {{pagebanner ) add {{pagebanner}} to first line.

Note: Only articles within Category:Austria will have the template added until the preliminary stage is over.

New article type and status tags[edit]

Per discussion at Wikivoyage talk:Article status#Consolidation proposal.
https://en.wikivoyage.org/wiki/User:Traveler100bot
en.wikivoyage.org
crawl=CC-MAIN-2019-04
42187
application/http; msgtype=response
sha1:42KMOT2VQKDTZI4Q6DRI3NOUDBVTM2AJ
<urn:uuid:657da373-2732-4fad-92af-24ed3b0fdcfc>
2019-01-16T01:41:55Z
208.80.154.224
text/html
sha1:2LHCK2KYDRVGFSOFKVGZZI4P7XJ3CFQU
<urn:uuid:25c4f848-e488-4c40-871c-ba06322f0221>
https://en.wikivoyage.org/wiki/User:Traveler100bot
response
<urn:uuid:e845f757-53f6-46b6-a0bf-d705005a4173>
isPartOf: CC-MAIN-2019-04
publisher: Common Crawl
description: Wide crawl of the web for January 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-140-252-72.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 0.11-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/