--- type: "series" title: "Mad Men" englishTitle: "Mad Men" year: "2007–2015" dataSource: "OMDbAPI" url: "https://www.imdb.com/title/tt0804503/" id: "tt0804503" genres: - "Drama" studios: - "N/A" episodes: 0 duration: "47 min" onlineRating: 8.7 image: "https://m.media-amazon.com/images/M/MV5BNTgxNDZlODQtNDcwOC00NWQ5LTljNWMtMDhjY2U5YTUzMTc4XkEyXkFqcGdeQXVyMDA4NzMyOA@@._V1_SX300.jpg" released: true airing: false airedFrom: "19/07/2007" airedTo: "unknown" watched: true lastWatched: "2015" personalRating: 7 CollapseMetaTable: true --- 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 ```   ### Detail   **Genres**: `$= dv.current().genres.length === 0 ? ' - none' : dv.list(dv.current().genres)` ```dataviewjs let text = ''; if (!dv.current().released) { text += '**Not released**\n'; if (dv.current().airedFrom) { text += 'The series will release on ' + dv.current().release_date + '.'; } else { text += 'The series is not released yet.'; } } else if (dv.current().airing) { text += '**Not finished**\n'; text += 'The series is not fully released yet.'; } if (text) { dv.paragraph(text); } ``` ```dataview list without id "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "
Type" + this.type + "
Online Rating" + this.onlineRating + "
Episodes" + this.episodes + "
Duration" + this.duration + "
Aired from" + this.airedFrom + "
Aired to" + this.airedTo + "
Studios" + this.studios + "
" FROM "03.04 Cinematheque/Mad Men (2007–2015)" ```   ---   ### Poster   `$= '![Image|360](' + dv.current().image + ')'`