![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
![]()
My save template looks like this:
{author_sort} - {series} {series_index} - {title} This is fine. It makes me happy... unless the book does not have a series. And then I end up with "Twain, Mark - - White Fang". So I took at look at Calibre's template editor. Looks powerful. Also, incredibly not user-friendly for those of us that do not play with whatever language it's based upon. So, my question: How do I make the " - {series} {series_index}" conditional upon there actually being something in the series field? Thanks in advance |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
{author_sort} - {series}{series_index:| - | - }{title} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
When series is not present, this is good.
However, when series is present, it results in this: "Pullman, Philip - His Dark Materials - 2 - The Subtle Knife" I modified it to this, and all is well: {author_sort} - {series}{series_index:| | - }{title} Thank you! |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2011
Device: Sony PRS350
|
For my save to disk..
I also went only the first author on save to disk to control the filename size {author_sort:list_item(0,&)} |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting a Save Template. | Illyrie | Library Management | 5 | 02-08-2014 11:12 AM |
Save template problem | antoon | Library Management | 12 | 08-17-2012 12:47 PM |
Need help on a Save to Disk template | fidvo | Library Management | 2 | 08-12-2012 03:34 PM |
A little help with a save template...? | Belfaborac | Library Management | 2 | 02-04-2011 09:47 PM |
save to disk template | speakingtohe | Calibre | 9 | 05-29-2010 06:02 AM |