Magnus Brading
Almighty Author

Group: Super Administrators
Posts: 2751
Joined: Aug. 2002 |
 |
Posted: Sep. 20 2004,13:20 |
 |
Thanks for recommending Mp3/Tag Studio to other people noddy.
Let me take a shot at the multi-part field explanation:
First off, let's ignore the [|] part of the fields, and only see what the numbers do, like this:
<Comment-2>-<Comment-3>-<Comment-4>-<Comment-1>-<Comment-5>
These fields work just like normal fields, data is parsed out to them according to the given separators.
Ok, the first difference is then that the data is put together in the used field (in this case the comment field) in another order than it is originally found in the source (in this case the source is the lines in your generated list file), and this is what those numbers mean. The field with number 1 will be first, then 2, then 3 and so on, so the target field (i.e. the comment in this case) will be put together like this:
<Comment-1><Comment-2><Comment-3><Comment-4><Comment-5>
Ok, now for the final quirk. As you can see, the fields are just appended to each other to create the target field, and maybe you will also like to have them separated by something (like e.g. dashes in your example, i.e. "-"). This is what the [|] part is for!
The thing before the pipe character (i.e. "|") will be put before the contents of the field when it is appended with the other ones to create the target data, and the contents after the pipe character will be put after the contents of the field when it is appended. If you don't need any such things, you simply leave it empty, like [|].
So, as an example, if you have the following source data (e.g. a line in the source list or a source filename):
Code Sample | in the comment - This will be |
and the following template:
Code Sample | <Comment-2[|]> - <Comment-1[|]> |
the resulting comment field would be the following:
This will bein the comment
As you can see, there is no space between "be" and "in", because there were no such thing in the source data, so we can add it by using any of the following two templates instead:
Code Sample | <Comment-2[ |]> - <Comment-1[|]> |
Code Sample | <Comment-2[|]> - <Comment-1[| ]> |
which would result in the desired comment field:
This will be in the comment
In the example with your template, dashes were added between all the fields by using this exact technique. Now take a look at your template again and see if you don't understand it a bit better.
-------------- Software author and website owner
|