Commit 21ef2d4

xxwhirlpool  ·  2026-04-09 11:53:20 -0400 EDT
parent 9e3a914
obsidian clipper templates
4 files changed,  +187, -0
+58, -0
......@@ -0,0 +1,58 @@
1+{
2+ "schemaVersion": "0.1.0",
3+ "name": "IMDB",
4+ "behavior": "create",
5+ "noteContentFormat": "{{schema:description}}",
6+ "properties": [
7+ {
8+ "name": "genre",
9+ "value": "{{schema:genre|join}}",
10+ "type": "multitext"
11+ },
12+ {
13+ "name": "director",
14+ "value": "{{selector:[data-testid=\\\"title-pc-principal-credit\\\"]:first-child a|unique|join}}",
15+ "type": "multitext"
16+ },
17+ {
18+ "name": "scoreImdb",
19+ "value": "{{schema:aggregateRating.ratingValue}}",
20+ "type": "number"
21+ },
22+ {
23+ "name": "cover",
24+ "value": "{{schema:image}}",
25+ "type": "text"
26+ },
27+ {
28+ "name": "cast",
29+ "value": "{{selector:[data-testid=\\\"title-pc-principal-credit\\\"]:nth-child(3) div a|unique|join}}",
30+ "type": "multitext"
31+ },
32+ {
33+ "name": "plot",
34+ "value": "{{schema:description}}",
35+ "type": "text"
36+ },
37+ {
38+ "name": "year",
39+ "value": "{{schema:datePublished|split:\\\"-\\\"|slice:0,1}}",
40+ "type": "number"
41+ },
42+ {
43+ "name": "created",
44+ "value": "{{date}}",
45+ "type": "date"
46+ },
47+ {
48+ "name": "tags",
49+ "value": "clippings-movies",
50+ "type": "multitext"
51+ }
52+ ],
53+ "triggers": [
54+ "/^https:\\/\\/www\\.imdb\\.com\\/title\\/tt\\d+(?!\\/reference\\/)(\\/[^\\s]*)?$/"
55+ ],
56+ "noteNameFormat": "{{schema:name}} ({{schema:datePublished|split:\"-\"|slice:0,1}})",
57+ "path": "clippings/movies"
58+}
+53, -0
......@@ -0,0 +1,53 @@
1+{
2+ "schemaVersion": "0.1.0",
3+ "name": "Letterboxd",
4+ "behavior": "create",
5+ "noteContentFormat": "{{description}}",
6+ "properties": [
7+ {
8+ "name": "genre",
9+ "value": "{{schema:genre|join}}",
10+ "type": "multitext"
11+ },
12+ {
13+ "name": "director",
14+ "value": "{{schema:director[*].name|join}}",
15+ "type": "multitext"
16+ },
17+ {
18+ "name": "cast",
19+ "value": "{{schema:actors[*].name|slice:0,5|join}}",
20+ "type": "multitext"
21+ },
22+ {
23+ "name": "cover",
24+ "value": "{{schema:image}}",
25+ "type": "text"
26+ },
27+ {
28+ "name": "plot",
29+ "value": "{{description}}",
30+ "type": "text"
31+ },
32+ {
33+ "name": "created",
34+ "value": "{{date}}",
35+ "type": "date"
36+ },
37+ {
38+ "name": "year",
39+ "value": "{{schema:releasedEvent[*].startDate|date:\\\"YYYY\\\"}}",
40+ "type": "number"
41+ },
42+ {
43+ "name": "tags",
44+ "value": "clippings-movies",
45+ "type": "multitext"
46+ }
47+ ],
48+ "triggers": [
49+ "https://letterboxd.com/film/"
50+ ],
51+ "noteNameFormat": "{{schema:@Movie:name}} ({{schema:releasedEvent[*].startDate|date:\"YYYY\"}})",
52+ "path": "clippings/movies"
53+}
+43, -0
......@@ -0,0 +1,43 @@
1+{
2+ "schemaVersion": "0.1.0",
3+ "name": "Recipes",
4+ "behavior": "create",
5+ "noteContentFormat": "{{description}}\n\n## Ingredients\n\n{{schema:recipeIngredient|list:task}}\n\n## Instructions\n\n{{schema:recipeInstructions[*].text|list:task}}\n\n## Nutrition\n\n{{schema:@Recipe:nutrition|uncamel|capitalize|table|replace:(\"@type\":\"Nutrient\",\"Nutrition information\":\"Quantity\")}}",
6+ "properties": [
7+ {
8+ "name": "title",
9+ "value": "{{title}}",
10+ "type": "text"
11+ },
12+ {
13+ "name": "image",
14+ "value": "{{image}}",
15+ "type": "text"
16+ },
17+ {
18+ "name": "cuisine",
19+ "value": "{{schema:recipeCuisine}}",
20+ "type": "multitext"
21+ },
22+ {
23+ "name": "url",
24+ "value": "{{url}}",
25+ "type": "multitext"
26+ },
27+ {
28+ "name": "created",
29+ "value": "{{date}}",
30+ "type": "date"
31+ },
32+ {
33+ "name": "tags",
34+ "value": "clippings-recipes",
35+ "type": "multitext"
36+ }
37+ ],
38+ "triggers": [
39+ "schema:@Recipe"
40+ ],
41+ "noteNameFormat": "{{title}}",
42+ "path": "clippings/recipes"
43+}
+33, -0
......@@ -0,0 +1,33 @@
1+{
2+ "schemaVersion": "0.1.0",
3+ "name": "Wikipedia",
4+ "behavior": "create",
5+ "noteContentFormat": "{{selectorHtml:#mw-content-text|remove_html:(\".navbox,.printfooter,.side-box,.infobox-image,.mw-editsection\")|markdown}}",
6+ "properties": [
7+ {
8+ "name": "url",
9+ "value": "{{url}}",
10+ "type": "multitext"
11+ },
12+ {
13+ "name": "title",
14+ "value": "{{title}}",
15+ "type": "text"
16+ },
17+ {
18+ "name": "tags",
19+ "value": "clippings-wikipedia",
20+ "type": "multitext"
21+ },
22+ {
23+ "name": "created",
24+ "value": "{{date|date:\\\"YYYY-MM-DD\\\"}}",
25+ "type": "date"
26+ }
27+ ],
28+ "triggers": [
29+ "https://en.wikipedia.org"
30+ ],
31+ "noteNameFormat": "{{title}}",
32+ "path": "clippings/wikipedia"
33+}