Jump to content

Template:Infobox organization/doc

From Wikihoc

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if:|
         |{{#ifexist:Template:Infobox organization
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }}

{{Infobox organization}} can be used to provide at-a-glance information at the start of an article about an organization.

Usage

{{{name}}}
{{#if:{{{full_name}}}|
{{{full_name}}}
}}
{{#if:{{{native_name}}}|{{#if:es|
}}{{{native_name}}}{{#if:es|
}}}}
Abbreviation{{{abbreviation}}}
Nickname{{{nickname}}}
Pronunciation{{{pronunciation}}}{{{pronounce_ref}}} {{{pronounce_comment}}}
Named after{{{named_after}}}
Predecessor{{{predecessor}}}
Merged into{{{merged_into}}}
Successor{{{successor}}}
Formation{{{formation}}}
Founder{{#if:|s}}{{{founder}}}
Founded at{{{founding_location}}}
{{#if:|Defunct|Dissolved}}{{{dissolved}}}
Merger of{{{merger}}}
Type{{{type}}}
{{#ifeq: {{#if: |VAT ID no. |Tax ID no.}} | {{#if: |VAT ID no. |Tax ID no.}} | | width: 100%; }}{{#if:|}}{{{tax_id}}}
Registration no.{{{registration_id}}}
Legal status{{{status}}}
{{#ifeq: Professional title | Professional title |
Professional title
| width: 100%; }}{{#if:|}}
{{{professional_title}}}
Headquarters{{{headquarters}}}
Location
  • {{#if: |{{{location_city}}}}}, {{#if: |{{{location_country}}}}}
  • {{{location}}}
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Origins{{{origins}}}
{{#ifeq: Region served | Region served |
Region served
| width: 100%; }}{{#if:|}}
{{{region_served}}}
Product{{#if:{{{products}}}|s}}{{{products}}}
Services{{{services}}}
Method{{#if:{{{methods}}}|s}}{{{methods}}}
Field{{#if:{{{fields}}}|s}}{{{fields}}}
Members{{{num_members}}} {{#if:{{{num_members_year}}}|({{{num_members_year}}})}}
{{#ifeq: Official language{{#if:|s}} | Official language{{#if:|s}} |
Official language{{#if:|s}}
| width: 100%; }}{{#if:|}}
{{{language}}}
Owner{{#if:|s}}{{{owner}}}
{{#ifeq: {{#if:|General Secretary|Secretary General}} | {{#if:|General Secretary|Secretary General}} |
{{#if:|General Secretary|Secretary General}}
| width: 100%; }}{{#if:|}}
{{{secretary_general}}}
{{#if:{{{leader_title}}} |{{#ifeq: {{{leader_title}}} | {{{leader_title}}} |
{{{leader_title}}}
| width: 100%; }}{{#if:|}} |Leader}}
{{{leader_name}}}
{{#ifeq: {{{leader_title1}}} | {{{leader_title1}}} |
{{{leader_title1}}}
| width: 100%; }}{{#if:|}}
{{#if:{{{leader_title1}}} |{{{leader_name1}}} }}
{{#ifeq: {{{leader_title2}}} | {{{leader_title2}}} |
{{{leader_title2}}}
| width: 100%; }}{{#if:|}}
{{#if:{{{leader_title2}}} |{{{leader_name2}}} }}
{{#ifeq: {{{leader_title3}}} | {{{leader_title3}}} |
{{{leader_title3}}}
| width: 100%; }}{{#if:|}}
{{#if:{{{leader_title3}}} |{{{leader_name3}}} }}
{{#ifeq: {{{leader_title4}}} | {{{leader_title4}}} |
{{{leader_title4}}}
| width: 100%; }}{{#if:|}}
{{#if:{{{leader_title4}}} |{{{leader_name4}}} }}
{{#ifeq: Board of directors | Board of directors | <div style="}}display: inline-block; line-height: 1.2em; padding: .1em 0; {{#ifeq: Board of directors | Board of directors | ">Board of directors | width: 100%; }}{{#if:|}}{{{board_of_directors}}}
{{#ifeq: Key people | Key people |
Key people
| width: 100%; }}{{#if:|}}
{{{key_people}}}
{{#ifeq: Main organ | Main organ |
Main organ
| width: 100%; }}{{#if:|}}
{{{main_organ}}}
{{#ifeq: Publication | Publication |
Publication
| width: 100%; }}{{#if:|}}
{{{publication}}}
{{#ifeq: Parent organi{{#if:|s|z}}ation | Parent organi{{#if:|s|z}}ation |
Parent organi{{#if:|s|z}}ation
| width: 100%; }}{{#if:|}}
{{{parent_organization}}}
Subsidiaries{{{subsidiaries}}}
Secessions{{{secessions}}}
Affiliations{{{affiliations}}}
R.O.R. Id{{{ror_id}}}
Budget{{{budget}}} {{#if:{{{budget_year}}} | ({{{budget_year}}}) }}
Revenue{{{revenue}}} {{#if:{{{revenue_year}}} |({{{revenue_year}}}) }}
Income{{#if: |() }}
Disbursements{{{disbursements}}}
Expenses{{{expenses}}} {{#if:{{{expenses_year}}}|({{{expenses_year}}}) }}
{{#if:|Funders|Funding}}{{{funding}}}
Endowment{{{endowment}}} {{#if:{{{endowment_year}}} | ({{{endowment_year}}}) }}
{{#if:{{{num_staff}}} |Staff |Employees}}{{{num_staff}}} {{#if:{{{num_staff_year}}}|({{{num_staff_year}}})}}
Volunteers{{{num_volunteers}}} {{#if:{{{num_volunteers_year}}} |({{{num_volunteers_year}}})}}
Students{{{num_students}}} {{#if:{{{num_students_year}}}| ({{{num_students_year}}})}}
Award{{{awards}}}
Website{{{website}}}
Remarks{{{remarks}}}
{{#ifeq: Formerly called | Formerly called |
Formerly called
| width: 100%; }}{{#if:|}}
{{{former_name}}}
{{{module}}}
{{{footnotes}}}

{{#switch:

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

| template = {{#ifeq:Infobox organization/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:

 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = {{#if:{{{native_name}}}|{{#if:es||}}}} | other | #default = }}{{safesubst:#switch:

 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = | other | #default = }}

Full syntax

Copy this version to use, remove hidden notes (both the <!-- and --> characters) that surround certain entries, in order for the data you enter to appear in the published article. All fields must be lowercase, and all are optional.

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

Infobox organization/doc
{{#if:|
}}
{{#if:|{{#if:|
}}{{#if:|
}}}}
Location
  • {{#if: |{{{location_city}}}}}, {{#if: |{{{location_country}}}}}
Members{{#if:|()}}
{{#ifeq: {{{leader_title1}}} | {{{leader_title1}}} |
{{{leader_title1}}}
| width: 100%; }}{{#if:|}}
{{#if: | }}
{{#ifeq: | |
| width: 100%; }}{{#if:|}}
{{#if: | }}
{{#ifeq: | |
| width: 100%; }}{{#if:|}}
{{#if: | }}
{{#ifeq: | |
| width: 100%; }}{{#if:|}}
{{#if: | }}
Budget{{#if: | () }}
Revenue{{#if: |() }}
Income{{#if: |() }}
Expenses{{#if:|() }}
Endowment{{#if: | () }}
{{#if: |Staff |Employees}}{{#if:|()}}
Volunteers{{#if: |()}}
Students{{#if:| ()}}

{{#switch:

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

| template = {{#ifeq:Infobox organization/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default = }}{{safesubst:#switch:

 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = {{#if:|{{#if:||}}}} | other | #default = }} </syntaxhighlight>

Uprights

There are four upright parameters, logo: |{{SAFESUBST:#if:upright|upright=}}, image: |{{SAFESUBST:#if:image_upright|image_upright=}}, map: |{{SAFESUBST:#if:map_upright|map_upright=}} and map2: |{{SAFESUBST:#if:map2_upright|map2_upright=}}. For an explanation of the upright parameter, please see Help:Upright.

Pushpin location maps

<syntaxhighlight lang="wikitext" style="overflow:auto"> {{Infobox organization ... | coordinates = | pushpin_map = | map_alt = | pushpin_relief = | map_dot_label = | map_size = | map_caption = ... }} </syntaxhighlight>

|{{SAFESUBST:#if:pushpin_map|pushpin_map=}} is the same as |{{SAFESUBST:#if:map_type|map_type=}}.

More information about this is at {{Location map#Available maps}}.

Mapframe maps

  • Basic {{Infobox mapframe}} parameters:{{#if:||
    • mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no{{#if:yes, unless any of these are set: |{{SAFESUBST:#if:map|map=}}, |{{SAFESUBST:#if:map2|map2=}}, |{{SAFESUBST:#if:pushpin_map|pushpin_map=}}, |{{SAFESUBST:#if:map_type|map_type=}}|, but also modified by onByDefault}}
      • Internal onByDefault parameter: yes, unless any of these are set: |{{SAFESUBST:#if:map|map=}}, |{{SAFESUBST:#if:map2|map2=}}, |{{SAFESUBST:#if:pushpin_map|pushpin_map=}}, |{{SAFESUBST:#if:map_type|map_type=}}
    • {{#if:||mapframe-coordinates or mapframe-coord or}} coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |{{SAFESUBST:#if:coord|coord=}}{{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata d:Property:P625
    • mapframe-caption – Caption for the map. Default: blank (or if |{{SAFESUBST:#if:mapframe-geomask|mapframe-geomask=}} is set, "Location in geomask's label")
    • mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified}}
    • {{#if:|id|mapframe-id or id or qid}} – Id (Q-number) of Wikidata item to use. Default: item for current page
    • {{#if:||mapframe-}}wikidata – Set to <syntaxhighlight lang="text" class="" style="" inline="1">yes</syntaxhighlight> to show all shape/line features from OpenStreetMap. Default: not specified
  • Customise which features are displayed:
    • {{#if:||mapframe-}}point – Turn off display of point feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force point marker to be displayed by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
    • {{#if:||mapframe-}}shape – Turn off display of shape feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force display of shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Use an inverse shape (geomask) instead of a regular shape by setting to <syntaxhighlight lang="text" class="" style="" inline="1">inverse</syntaxhighlight>. Default: not specified
    • {{#if:||mapframe-}}line – Turn off display of line feature by setting to <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. Force display of line by setting to <syntaxhighlight lang="text" class="" style="" inline="1">on</syntaxhighlight>. Default: not specified
    • {{#if:||mapframe-}}geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for {{#if:P17

| {{#switch:P

 | Q | P  = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17)
 | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP17)
 }}

| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).

 | [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]]
 | (no entity)
 }}

}}, P131 for {{#if:P131 | {{#switch:P

 | Q | P  = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131)
 | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP131)
 }}

| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).

 | [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]]
 | (no entity)
 }}

}}). Default: not specified

    • {{#if:||mapframe-}}switcher – set to <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
      • <syntaxhighlight lang="text" class="" style="" inline="1">auto</syntaxhighlight> – switch geomasks found in {{#if:P276

| {{#switch:P

 | Q | P  = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P276)
 | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP276)
 }}

| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).

 | [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]]
 | (no entity)
 }}

}} and {{#if:P131 | {{#switch:P

 | Q | P  = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131)
 | #default = Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (QP131)
 }}

| {{#if:Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).

 | [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]]
 | (no entity)
 }}

}} statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.

      • <syntaxhighlight lang="text" class="" style="" inline="1">geomasks</syntaxhighlight> – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the {{#if:||mapframe-}}geomask parameter
      • <syntaxhighlight lang="text" class="" style="" inline="1">zooms</syntaxhighlight> – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight>), "zoomed out" is <syntaxhighlight lang="text" class="" style="" inline="1">1</syntaxhighlight>, and "zoomed midway" is the average
  • Other optional parameters:
    • {{#if:||mapframe-}}frame-width or {{#if:||mapframe-}}width – Frame width. Default: 270
    • {{#if:||mapframe-}}frame-height or {{#if:||mapframe-}}height – Frame height. Default: 200
    • {{#if:||mapframe-}}shape-fill – Color used to fill shape features. Default: #606060
    • {{#if:||mapframe-}}shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
    • {{#if:||mapframe-}}stroke-color or {{#if:||mapframe-}}stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
      • {{#if:||mapframe-}}line-stroke-color or {{#if:||mapframe-}}line-stroke-colour – Color of line features. Default: #ff0000
      • {{#if:||mapframe-}}shape-stroke-color or {{#if:||mapframe-}}shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
    • {{#if:||mapframe-}}stroke-width – Width of line features, and outlines of shape features. Default: 2
      • {{#if:||mapframe-}}shape-stroke-width – Width of outlines of shape features. Default: 2
      • {{#if:||mapframe-}}line-stroke-width – Width of line features. Default: 5
    • {{#if:||mapframe-}}marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
      • Can also be set to <syntaxhighlight lang="text" class="" style="" inline="1">blank</syntaxhighlight> to override any default marker symbol
    • {{#if:||mapframe-}}marker-color or {{#if:||mapframe-}}marker-colour – Background color for the marker. Default: #5E74F3
    • {{#if:||mapframe-}}geomask-stroke-color or {{#if:||mapframe-}}geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
    • {{#if:||mapframe-}}geomask-stroke-width – Width of outline of geomask shape. Default: 1
    • {{#if:||mapframe-}}geomask-fill – Color used to fill outside geomask features. Default: #606060
    • {{#if:||mapframe-}}geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
    • {{#if:||mapframe-}}zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
    • {{#if:||mapframe-}}length_km or {{#if:||mapframe-}}length_mi or {{#if:||mapframe-}}area_km2 or {{#if:||mapframe-}}area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
    • {{#if:||mapframe-}}frame-coordinates or {{#if:||mapframe-}}frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
    • {{#if:||mapframe-}}type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
    • {{#if:||mapframe-}}population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified

{{#if:|

  • Deprecated parameters
    • Template:Gray – Alternate latitude coordinate for initial placement of map; default is derived from item coordinates
    • Template:Gray – Alternate longitude coordinate for initial placement of map; default is derived from item coordinates

}}

Microformat

The HTML mark-up produced by this template includes {{#if: |{{{type}}} |an hCard microformat}} that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.{{#if:* Use {{#ifeq:{{safesubst:#switch:

|no
|n
|f
|false
|off
|0        = no
|         = yes
|¬        = yes
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes|{{Start date and age}}|{{Start date}}}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.

  • Use {{URL}} for an organisation's URL.

|

Subtemplates
  • Use {{#ifeq:{{safesubst:#switch:
|no
|n
|f
|false
|off
|0        = no
|         = yes
|¬        = yes
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes|{{Start date and age}}|{{Start date}}}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.

  • Use {{URL}} for an organisation's URL.

Please do not remove instances of these subtemplates.

}}{{#if: |

{{{subsection1}}}

}}{{#if:adr |

Classes used

The HTML classes of this microformat include:

  • adr
  • agent
  • category
  • country-name
  • extended-address
  • fn
  • geo
  • label
  • latitude
  • locality
  • longitude
  • nickname
  • note
  • org
  • region
  • street-address
  • url
  • vcard

{{#ifeq: Please do not rename or remove these classes{{#if:on |
nor collapse nested elements which use them}}.
| Please do not rename or remove these classes{{#if:on |
nor collapse nested elements which use them}}.
| <div style="}}display: inline-block; line-height: 1.2em; padding: .1em 0; {{#ifeq: Please do not rename or remove these classes{{#if:on |
nor collapse nested elements which use them}}.
| Please do not rename or remove these classes{{#if:on |
nor collapse nested elements which use them}}.
| line-height:1.3em">Please do not rename or remove these classes{{#if:on |
nor collapse nested elements which use them}}.
| width: 100%; }}{{#if:|}}}}{{safesubst:#if:{{safesubst:#ifeq:doc|sandbox|1}}{{safesubst:#ifeq:doc|doc|1}}||

}}

Template data

{{ safesubst:#if: |{{ safesubst:#ifeq:{{{demo}}} |no

|
|

}} |{{ safesubst:#ifeq:Template|Template

|
|

}}}}

Tracking categories

{{#ifexist: Category:Pages using infobox organization with unknown parameters|

See also