|
|
#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,897
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 03:43 AM. |
|
|
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
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,897
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:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expressions | geormes | Calibre | 4 | 08-04-2011 08:09 AM |
| Another help with regular expressions | encapuchado | Library Management | 6 | 06-21-2011 04:14 PM |
| Help with regular expressions | jevonbrady | Library Management | 6 | 06-21-2011 11:16 AM |
| Need help with expressions | MMAC | Library Management | 2 | 04-25-2011 06:49 AM |
| Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 12:04 PM |