• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If this site has been useful to you, please give today.
  • About Wikivoyage
  • Disclaimer
Wikivoyage

Template:Phone

  • Language
  • Watch
  • View source

☏

Template documentation[view] [edit] [history] [purge]

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.

{{phone|123456789}} – shows ☏ 123456789 which should show format warning (if preference set)

{{phone|+1 2334 5678 9999}} – shows ☏ +1 2334 5678 9999 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.

Add a phone number within an article

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Phone Number1

Specify a phone number. Include the country code, unless the number cannot be called from outside of the country.

Example
+1 718 555-0123
Stringrequired
The above documentation is transcluded from Template:Phone/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikivoyage.org/w/index.php?title=Template:Phone&oldid=3788441"
Last edited on 30 May 2019, at 06:52

Languages

    • বাংলা
    • Deutsch
    • Français
    • Bahasa Indonesia
    • Italiano
    • 日本語
    • Nederlands
    • Português
    • Русский
    • Türkçe
    • Українська
    • 中文
    Wikivoyage
    • Wikimedia Foundation
    • Powered by MediaWiki
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikivoyage
    • Disclaimer
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop