"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:Listings - telephone number formatting

From Wikitravel Shared
Jump to: navigation, search

Listings currently leave the telephone number (and fax number) unformatted. I'm not sure about the other language versions, but on :en, our MOS requires the optional portion of a telephone number to be in italics. This is not currently possible with listings.

Unfortunately, doing this may require each telephone field to be divided in two, one for the optional portion and one for the required portion. That would certainly reduce the readability and usability of the listings and would complicate the input form, but it seems necessary in order to comply with the :en MOS.

-- LtPowers 09:05, 25 August 2008 (EDT)

I think we had some earlier discussion about this, where we concluded that adding a tag to an article that told the listings tags that it was a USA destination article, we could then get the listings tags to auto format entries for localization. E.g., add {{USA}} to an article, and then any combination of 10 digits entered will automatically display: 1 800 523-3456. --Peter Talk 22:24, 25 August 2008 (EDT)
The problem with that is that the area code isn't always optional. Your example is a prime example of that; there is nowhere in the world you could dial just "523-3456" and reach that toll free number. If the area code was consistently optional, we wouldn't need to format the number to show which parts are optional. =) LtPowers 09:09, 26 August 2008 (EDT)

Variants

Actions

In other languages