Template:Phone/doc

For formatting inline phone numbers (where listing template does not make sense).


 * Displays number in Wikivoyage phone format
 * Checks phone number is in standard international syntax
 * Create click and phone link
 * Saves author having to work out how to type in phone symbol
 * Will allow for quick update of format if policy guidelines change.

– shows which should show format warning (if preference set)

– shows which should be OK

Numbers that cannot be dialed from outside the country should not begin with a country code. Some examples of these are unified local emergency numbers (like 1-1-2 or 9-1-1) and national freephone numbers in many countries (e.g. 0800 737-000, the Air New Zealand Freephone number, is valid only within NZ).

The following number prefixes will not be flagged as having a missing country code: 0508, 0800, 1300, 1800, 01800. Adding a description in brackets after the number of one of the following: "high cost", "extra charge", "premium", "local rate", "in country only", "domestic" or "non-geographic number", will also stop it being flagged as an incorrect format needing country code.

{	"params": { "1": {			"label": "Phone Number", "description": "Specify a phone number. Include the country code, unless the number cannot be called from outside of the country.", "example": "+1 718 555-0123", "type": "string", "required": true }	},	"description": "Add a phone number within an article" }