Module talk:LinkPhone

From Wikivoyage
Jump to navigation Jump to search

Toll free numbers[edit]

Do we do a country prefix syntax check on tollfree numbers, and should we? --Traveler100 (talk) 17:19, 5 September 2015 (UTC)[reply]

Extra charge numbers[edit]

How can we best handle and syntax check Wikivoyage talk:Listings#High charge phone numbers that cannot be called from abroad?

We could add check for numbers beginning with 0844 and 0870, for example, and not include them in the error categories but it's only in the UK that those numbers cannot be linked. If a number started with 0870 in another country then it will need prefixing with the correct country code, so should appear in the error category. It the moment there are two choices, either add them to the error category or don't add them, with the first the UK oes can't be fixed and will always stay in the error category and with the second option some numbers in other countries wil not get added as error and will be missed. -- WOSlinker (talk) 20:14, 5 September 2015 (UTC)[reply]
Another possibility could be to add an optional phonelink=no parameter to the listing templates and then not link any phone numbers in that listing if the parameter is used. -- WOSlinker (talk) 20:51, 5 September 2015 (UTC)[reply]
how about if in the phone field after the number if there is the text (extra charge number) or (premium number) no check on country code is made? --Traveler100 (talk) 17:58, 12 September 2015 (UTC)[reply]
Yes, could do that. -- WOSlinker (talk) 18:53, 12 September 2015 (UTC)[reply]
I´d be really hesitant to generalise that area code (844) is a premium number. That might be true in the UK, but in my country +1-844 is tollfree. K7L (talk) 21:20, 12 September 2015 (UTC)[reply]
I think what I'll do is that if there is any text in brackets after the number then it will not do any country code check, so 0844 123 4567 (costs loads of money) or 1300 123 4567 (local rate call) for example will no longer be added to the error category. -- WOSlinker (talk) 22:09, 12 September 2015 (UTC)[reply]
Ok, that's done, see YHA Oxford in Oxford#Budget for an example. -- WOSlinker (talk) 22:15, 12 September 2015 (UTC)[reply]
I was thinking a specific phrase in brackets after the number. such as (high cost call). There are many numbers with text after that should have syntax checks. Sorry if did not make myself clear.--Traveler100 (talk) 06:30, 13 September 2015 (UTC)[reply]
Ok, changed it so that the extra text needs to contain one of the following phrases: "high cost", "extra charge" or "premium" to stop the country code checking. -- WOSlinker (talk) 07:35, 13 September 2015 (UTC)[reply]
I've also added "local rate". -- WOSlinker (talk) 08:29, 13 September 2015 (UTC)[reply]