--- type: "movie" title: "Once Upon a Time in the West" englishTitle: "Once Upon a Time in the West" year: "1968" dataSource: "OMDbAPI" url: "https://www.imdb.com/title/tt0064116/" id: "tt0064116" genres: - "Western" producer: "Sergio Leone" duration: "165 min" onlineRating: 8.5 image: "https://m.media-amazon.com/images/M/MV5BODQ3NDExOGYtMzI3Mi00NWRlLTkwNjAtNjc4MDgzZGJiZTA1XkEyXkFqcGdeQXVyMjUzOTY1NTc@._V1_SX300.jpg" released: true premiere: "04/07/1969" watched: true lastWatched: "2021" personalRating: 8.5 tags: "#mediaDB/tv/movie" CollapseMetaTable: yes --- Parent:: [[Cinematheque]] --- ```dataviewjs dv.paragraph(`> [!${dv.current().watched ? 'SUCCESS' : 'WARNING'}] ${dv.current().watched ? 'last watched on ' + dv.current().lastWatched : 'not yet watched'}`) ```   # `$= dv.current().title`   `$= dv.current().watched ? '**Rating**: ' + dv.current().personalRating + ' out of 10' : ''` ```toc ```   ### Details   **Genres**: `$= dv.current().genres.length === 0 ? ' - none' : dv.list(dv.current().genres)` `$= !dv.current().released ? '**Not released** The movie is not yet released.' : ''`   ```dataview list without id "" + "" + "" + "" + "" + "" + "" + "" + "" + "
Type" + this.type + "
Online Rating" + this.onlineRating + "
Duration" + this.duration + "
Premiered" + this.premiere + "
Producer" + this.producer + "
" FROM "03.04 Cinematheque/Once Upon a Time in the West (1968)" ```   ---   ### Poster   `$= '![Image|360](' + dv.current().image + ')'`