Template:Infobox telephone area code/doc

From Holocaustmap

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Infobox telephone area code
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}
{{{trunk_code}}}{{{area_code}}}
[[File:{{{locator_map}}}|frameless]]
{{{locator_map_caption}}}
{{{country}}} {{{code_descriptor}}} for {{{area_name}}}
National calling{{{trunk_code}}}{{{area_code}}}
International calling+{{{country_calling_code}}} {{{area_code}}}
Conservation{{{conservation}}}
Active since{{{active_date}}}
Previous code(s){{{previous_codes}}}
Earlier code(s){{{earlier_codes}}}
Number format{{{number_format}}}
Coverage
{{{coverage_map}}}
{{{coverage_map_caption}}}
Area served{{{area_served}}}
{{#if:{{{codes_list}}}|[[{{{codes_list}}}|List of {{{country}}} codes]]}}

{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq:Infobox telephone area code/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}

Usage

<syntaxhighlight lang="wikitext" style="overflow: auto;">

for
International calling+
Coverage
{{#if:|[[|List of codes]]}}

{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq:Infobox telephone area code/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}

</syntaxhighlight>