Widget:Contact info
Jump to navigation
Jump to search
This widget uses the neic.no api v1.0 and deprecates (the old, miscapitalized) Widget:ContactInfo.
Create a contact info table using public info from neicweb people api (cf https://neic.no/api/), and optionally additional columns with contact information that should only be published on the NeIC internal wiki.
Usage
{{#widget:Contact info | webpage = Url to link to, in case the user does not use javascript. | group_id = Id of the group to display. | additional = Optional. Additional contact info in YAML format (see below). | headings = Optional. What column headings to display. Default is name,role,email,home,country,phone. }}
headings is given as a comma separated list of words present as keys in either additional or the info provided by the people api.
additional is expected to be a associative array on the form person_id:person_info overriding what is given by the people api, but can also contain additional attributes. Some attributes are special:
Example
{{#widget:Contact info | webpage = https://neic.nordforsk.org/about/team/tryggve/ | group_id = tryggve | headings = name,role,email,home,country,groups,phone,skype | additional= joel-hedlund: skype: joel.hedlund phone: M: +46734 607126. antti-pursula: skype: kimmo.koski gnarly-bernadotte: skype: mr_king.se }}