{{template "layout.html" .}}
{{define "title"}}{{ title .Name }}{{end}}
{{define "content"}}
{{ .Race }} {{ .Type }}
{{- if gt (len .WorshipId) 0 }}
centered around the worship of {{ hfList .WorshipId }}
{{- end }}
{{- if gt (len .Leaders) 0 }}
Date |
Name |
{{- range .Leaders }}
{{- if eq .EndYear -1 }}
since {{ .StartYear }}
{{- else }}
from {{ .StartYear }} till {{ .EndYear }}
{{- end }}
|
{{ hf .Hf.Id }} |
{{- end}}
{{- 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 }}
|
{{ collection .Id}} |
{{- if eq $.Id .Details.AggressorEntId}}
attacking {{ entity .Details.DefenderEntId }}
{{- else }}
defending against {{ entity .Details.AggressorEntId }}
{{- end}}
|
{{- end}}
{{- end}}
{{ json . }}
{{- end }}