{{- define "main" }} {{- $site := . }} {{- $html_url := .Site.Params.afpUrls.html }} {{- if isset .Site.Data "status" }} {{- $html_url = .Site.Params.afpUrls.htmlDevel }} {{- end }} {{- $entry_name := "" }} {{- with .File }}{{- $entry_name = .BaseFileName }}{{ end }}
{{- if isset .Site.Data "status" }} This is a development version of this entry. It might change over time and is not stable. Please refer to release versions for citations. {{- end }}

Abstract

{{ trim .Params.abstract "\n" | safeHTML }}

License

{{- if (eq .Params.license "BSD") }} BSD License {{- else if (eq .Params.license "LGPL") }} GNU Lesser General Public License (LGPL) {{- else }} {{ printf "%s License" .Params.license }} {{- end }}
{{- with .Params.note }}

{{ . }}

{{- end }} {{- with.Params.history }}

History

{{- range . }}
{{ dateFormat "January 2, 2006" .date }}
{{ safeHTML .value }}
{{- end }}
{{- end }} {{- with .Params.extra }} {{- range $key, $value := . }}

{{ humanize $key }}

{{ $value | safeHTML }}

{{- end }} {{- end }} {{- $Scratch := newScratch }} {{- with .Params.topics }}

Topics

{{- end }} {{- with .Params.related }}

Related publications

{{- end }} {{- range .Params.sessions }} {{- $session := .session }}

Session {{ $session }}

{{- end }}
{{- $uses := .Params.dependencies }} {{- with $uses }}

Depends on

    {{- range . }} {{- $path := printf "/entries/%s.html" . }} {{- with $site.Site.GetPage $path }}
  • {{ printf "[%s](%s)" .Title $path | $.Page.RenderString }}
  • {{- end }} {{- end }}
{{- end }} {{- $used_by := (index .Site.Taxonomies.dependencies (urlize $entry_name)) }} {{- with $used_by }}

Used by

    {{- range . }}
  • {{ printf "[%s](%s)" .Title .RelPermalink | $.Page.RenderString }}
  • {{- end }}
{{- end }} {{- with .File }} {{- $related := (where ($site.Site.RegularPages.Related $site) ".BaseFileName" "not in" $uses) | complement $used_by | first 5 }} {{- with $related }}

Auto-related entries

    {{- range . }}
  • {{ printf "[%s](%s)" .Title .RelPermalink | $.Page.RenderString }}
  • {{- end }}
{{- end }}
{{ end }}
{{- end }}