« get me outta code hell

content: withDateRange strings for album chunks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-04-18 13:05:59 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-04-18 13:05:59 -0300
commitc2ea69224ef91de19841dc5be82bc07342421a57 (patch)
tree173ca6ae63ef902bbf75e71b06333e765b942386 /src
parentd0857d360896ba700da78c701436514892f185b3 (diff)
content: withDateRange strings for album chunks
demo on /artist/tensei/
Diffstat (limited to 'src')
-rw-r--r--src/strings-default.yaml25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index c27d45ae..32081f22 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -1381,8 +1381,12 @@ artistPage:
   creditList:
 
     # album:
-    #   Tracks are chunked by albums, as long as the tracks are all
-    #   of the same date (if applicable).
+    #   Tracks are chunked by albums, generally all tracks from an
+    #   album together in one chunk, but a album may be split into
+    #   multiple chunks if the tracks are individually dated and the
+    #   artist contributed to some other release between. Date ranges
+    #   are shown only if the tracks within a chunk vary in date AND
+    #   the album itself has no date.
 
     album:
       _: "{ALBUM}"
@@ -1391,9 +1395,20 @@ artistPage:
       credit:
         by: "by {ARTISTS}"
 
-      withDate: "{ALBUM} ({DATE})"
-      withDuration: "{ALBUM} ({DURATION})"
-      withDate.withDuration: "{ALBUM} ({DATE}; {DURATION})"
+      withDate: >-
+        {ALBUM} ({DATE})
+
+      withDuration: >-
+        {ALBUM} ({DURATION})
+
+      withDateRange: >-
+        {ALBUM} ({DATE_RANGE})
+
+      withDate.withDuration: >-
+        {ALBUM} ({DATE}; {DURATION})
+
+      withDateRange.withDuration: >-
+        {ALBUM} ({DATE_RANGE}; {DURATION})
 
     # flashAct:
     #   Flashes are chunked by flash act, though a single flash act