{%- comment -%} Inserts a full data set of an campus of an organization. The data will be formatted as postal address, followed by an external link to the organizations website. On error, a placeholder will be inserted to prevent messing up the formatting of pages that expect a block at this position. The parameter "campus" is expected to be a key into _data/helmholtz-centers.yml ! See also the documentation there for field-specific behaviour. ! If the key is not valid, an informative HTML comment will be inserted. If available, the parameter "room" will be inserted verbatim at the appropriate position. {%- endcomment -%} {%- if include.location -%} {%- assign campus-id = include.location.campus -%} {%- assign room = include.location.room -%} {%- if campus-id -%} {%- assign organization-code = campus-id | split: "-" | first -%} {%- assign organization = site.data.helmholtz-centers[organization-code] -%} {%- assign location = organization.campii[campus-id] -%} {%- if organization and location -%}