![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
|
understanding template expressions
I'm sure this has been answered somewhere, but I haven't had any luck finding it for myself.
Anyway, I'm experimenting with some template expressions that I found in another thread. What purpose does the | symbol serve in the following? {author_sort}{series:| - | }{series_index:0>2s} {series}{series_index:0>2s|| - }{title} |
![]() |
![]() |
![]() |
#2 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
My understanding is that red - would be placed before the series name and the orange - would show after the series name (along with the spaces). If there is no series the the dashes and the series name would not be inserted. The same applies to {series_index:0>2s|| - } items after the first | are placed previous to the field name the items placed after the second | are placed following the field name. If the field doesn't exist any items in the brackets are not used. Last edited by DoctorOhh; 10-28-2011 at 02:43 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
See this section in the calibre manual for details on what the vertical bars do.
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regular Expressions | geormes | Calibre | 4 | 08-04-2011 07:09 AM |
Another help with regular expressions | encapuchado | Library Management | 6 | 06-21-2011 03:14 PM |
Help with regular expressions | jevonbrady | Library Management | 6 | 06-21-2011 10:16 AM |
Need help with expressions | MMAC | Library Management | 2 | 04-25-2011 05:49 AM |
Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 11:04 AM |