Jump to content

Template:Infobox country telephone plan/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Blank syntax

[edit]
{{Infobox country telephone plan
 | country              =
 | country_link         =
 | continent            =
 | map_image            =
 | map_caption          =
 | map_size             =
 | map_alt              =
 | regulator            =
 | plan_membership      =
 | plan_type            =
 | nsn_length           =
 | number_format        =
 | plan_link            =
 | plan_date            =
 | country_code =
 | international_prefix =
 | trunk_prefix         =
 | codes_list           =
}}

Parameters

[edit]

Required parameters

[edit]

For this template to function properly, all of the parameters in this section must be specified.

  • country: Name of the country. Appears in the title of the infobox, and is also shown with the label Country. Do not wikilink this parameter – use country_link to specify a link destination instead.
  • country_link: Name of the Wikipedia article about the country. Set this to none to remove the link.
  • continent: Name of the continent that contains the country. This is shown with the label Continent, and is automatically linked to the article titled "Telephone numbers in continent".

Access codes

[edit]

At least one of these parameters should be set. Ideally, all should be set.

  • international_prefix: The prefix that must be dialed in the country for international calls.
  • trunk_prefix: The national trunk prefix that must be dialed to reach a non-local domestic number.

Other parameters

[edit]

At least one of these parameters should be set.

  • regulator: Name of the organisation that regulates the country's dial plan. Can be a wikilink.
  • plan_membership: If the numbering plan is part of a larger numbering plan (e.g. the North American Numbering Plan), give the name of that numbering plan here. Can be a wikilink.
  • nsn_length: National Significant Number length. This is the number of digits in a long-distance telephone number, including the area code but not counting the trunk prefix.
  • plan_type: Telephone numbering plan types are either open or closed.
  • number_format: An example of how a typical phone number for this country is written, with digits replaced by placeholder letters.
  • codes_list: Title of an article with a list of area codes in this country. Leave this parameter blank if the area codes are in the same article as the infobox.

Map

[edit]

These parameters can be safely omitted or left blank if no map is available.

  • map_image: Name of a file that shows a map of the country and the surrounding area. Ideally, the country should be highlighted in some way on the map. Do not include the File: prefix, and do not use square brackets around the name.
  • map_caption: Caption shown beneath the map. For example, "Location of Gnomeland (dark green)".
  • map_size: Size at which the map is displayed. Does not normally need to be specified. See Wikipedia:Picture tutorial#Thumbnail sizes for details of values that are valid here.
  • map_alt: Alternate text for readers that cannot view the map (e.g. blind users).

Example

[edit]
Countries participating in the North American Numbering Plan
MembershipE.164
NSN length10
FormatNXX NXX XXXX
Country code1
International access011
Long-distance1
List of area codes

The following syntax produces the right-hand table:

{{Infobox country telephone plan
 | map_image = NANP countries.svg
 | map_caption = Countries participating in the North American Numbering Plan
 | plan_membership = E.164
 | nsn_length = 10
 | number_format = NXX NXX XXXX
 | country_code = 1
 | international_prefix = 011
 | trunk_prefix = 1
 | codes_list = List of North American Numbering Plan area codes
 }}