{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
{{ title .Name }}
{{ .Race }} {{ .Type }}
{{- if gt (len .WorshipId) 0 }}
centered around the worship of {{ hfList .WorshipId }}
{{- end }}
{{- if gt (len .Sites) 0 }}
Name
History
{{- range .Sites }}
{{ site . }}
{{ template "events.html" events (history .) }}
{{- end}}
{{- end}}
{{- if gt (len .HistfigId) 0 }}
Type
{{- range .HistfigId }}
{{ hf .}}
{{- end}}
{{- end}}
{{- if gt (len .Child) 0 }}
Type
{{- range .Child }}
{{ entity .}}
{{- end}}
{{- end}}
{{- if gt (len .Wars) 0 }}
Year
Name
Enemy
{{- range .Wars }}
{{- if eq .StartYear .EndYear}}
In {{ .StartYear }}
{{- else if eq .EndYear -1 }}
Since {{ .StartYear }}
{{- else }}
From {{ .StartYear }} till {{ .EndYear }}
{{- end }}