tagz.txt 2.2 KB

1234567891011121314151617181920212223
  1. Syntax Reference:
  2. * %tagname% - inserts field named <tagname>, eg. "%artist%"
  3. * $abbr(x) - inserts abbreviation of x, eg. "$abbr(%album%)" - will convert album name of "Final Fantasy VI" to "FFVI"
  4. * $abbr(x,y) - inserts abbreviation of x if x is longer than y characters; otherwise inserts full value of x, eg. "$abbr(%album%,10)"
  5. * $lower(x), $upper(x) - converts x to lower/uppercase, eg. "$upper(%title%)"
  6. * $num(x,y) - displays x number and pads with zeros up to y characters (useful for track numbers), eg. $num(%tracknumber%,2)
  7. * $filepart(x) - if passed a filename, gives the filename without directory or extension
  8. * $fileext(x) - if passed a filename, gives the file extension
  9. * $caps(x) - converts first letter in every word of x to uppercase, and all other letters to lowercase, eg. "blah BLAH" -> "Blah Blah"
  10. * $caps2(x) - similar to $caps, but leaves uppercase letters as they are, eg. "blah BLAH" -> "Blah BLAH"
  11. * $if(A,B,C) - if A contains at least one valid tag, displays B, otherwise displays C; eg. "$if(%artist%,%artist%,unknown artist)" will display artist name if present; otherwise will display "unknown artist"; note that "$if(A,A,)" is equivalent to "[A]" (see below)
  12. * $if2(A,B) - if A is valid, uses A, otherwise, uses B
  13. * $longest(A,B,C,....) - compares lengths of output strings produced by A,B,C... and displays the longest one, eg. "$longest(%title%,%comment%)" will display either title if it's longer than comment; otherwise it will display comment
  14. * $pad(x,y) - pads x with spaces up to y characters
  15. * $cut(x,y) - truncates x to y characters
  16. * $padcut(x,y) - pads x to y characters and truncates to y if longer
  17. * $repeat(x,y) - creates a string consisting of x repeating y times; e.g. $repeat(*, 7) becomes *******
  18. * [ .... ] - displays contents of brackets only if at least one of fields referenced inside has been found, eg. "%artist% - [%album% / ]%title%" will hide [] block if album field is not present
  19. * ' (single quotation mark) - outputs raw text without parsing, eg, 'blah$blah%blah[][]' will output the contained string and ignore all reserved characters (%,$,[,]) in it; you can use this feature to insert square brackets for an example.
  20. eg. "[%artist% - ][$abbr(%album%,10)[ %tracknumber%] / ]%title%[ %streamtitle%]"