{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }} {{ range ( sort $.Site.Data.games.current "Date Started" "desc" ) }} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{ index . "Date Released" }} {{ .Platforms }} {{- if index . "Date Started" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}} Unknown {{- end -}}–Unknown {{ end }} {{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}

Diary

{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{ index . "Date Released" }} {{ .Platforms }} {{- if index . "Date Started" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}} Unknown {{- end -}}–{{- if index . "Date Finished" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}} {{- else -}} Unknown {{- end -}} {{- if index . "Level of Completion" }} ({{ index . "Level of Completion" }}){{- end -}} {{ end }}

Assorted

{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "" ) "Title" "asc" ) }} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{ index . "Date Released" }} {{ .Platforms }} {{- if index . "Date Started" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}} {{- else -}} Unknown {{- end -}}–{{- if index . "Date Finished" -}} {{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}} {{- else -}} Unknown {{- end -}} {{- if index . "Level of Completion" }} ({{ index . "Level of Completion" }}){{- end -}} {{ end }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ range ( sort $.Site.Data.games.wishlist "Title" "asc" ) }} {{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}} {{ index . "Date Released" }} {{ .Platforms }} n/a {{ end }} {{ end }}