template.xhtml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <html xmlns="{xmlns}">
  2. <head>
  3. <title>{title_str}</title>
  4. <meta name="calibre-content" content="jacket"/>
  5. <style type="text/css">{css}</style>
  6. </head>
  7. <body>
  8. <div class="cbj_banner">
  9. <table class="cbj_header">
  10. <tr>
  11. <td class="cbj_title" colspan="2">{title}</td>
  12. </tr>
  13. <tr>
  14. <!-- If you do not want the series number to be formatted using roman numerals
  15. change {series.roman} to {series}. You can also access the raw series name and number
  16. using {series.name}, {series.number} or {series.roman_number} -->
  17. <td class="cbj_series" colspan="2">{series.roman}</td>
  18. </tr>
  19. <tr>
  20. <td class="cbj_author" colspan="2">{author}</td>
  21. </tr>
  22. <tr>
  23. <!-- When formatting dates you can specify the type of formatting, for example
  24. {pubdate.yyyy} while show only the publication year, and, {pubdate.dd MMM yyyy}
  25. will show the day, month and year. For the full list of supported formatting codes
  26. see the documentation of "Control how dates are displayed" in Preferences->Tweaks -->
  27. <td class="cbj_pubdata" colspan="2">{publisher} ({pubdate})</td>
  28. </tr>
  29. <tr>
  30. <td class="cbj_author" colspan="2"><hr class="metadata_divider" /></td>
  31. </tr>
  32. <tr class="cbj_rating">
  33. <td class="cbj_label">{rating_label}:</td>
  34. <td class="cbj_content">{rating}</td>
  35. </tr>
  36. <tr class="cbj_tags">
  37. <td class="cbj_label">{tags_label}:</td>
  38. <!-- If you want the tags to be alphabetical, change {tags} to
  39. {tags.alphabetical} -->
  40. <td class="cbj_content">{tags}</td>
  41. </tr>
  42. <tr data-calibre-jacket-searchable-tags="1" style="color:white; display:none"><td colspan="2">{searchable_tags}</td></tr>
  43. </table>
  44. <!--
  45. If you want to insert the identifiers you can do so either as a
  46. comma separated list of links, just like they are displayed in
  47. the Book details panel, or as individual entries, for example::
  48. <div style="display: {display.identifiers}">{identifiers.links}</div>
  49. <div style="display: {identifiers.display.isbn}">{identifiers.isbn}</div>
  50. -->
  51. <div class="cbj_footer">{footer}</div>
  52. </div>
  53. <hr class="cbj_kindle_banner_hr" />
  54. <!--
  55. In addition you can add code to show the values of custom columns here.
  56. The value is available as _column_name and the title as
  57. _column_name_label. For example, if you have a custom column with
  58. label #genre, you can add it to this template with _genre_label and
  59. _genre. Note that the # is replaced by an underscore. For example
  60. <div style="display: display._genre"><b>{_genre_label}:</b> {_genre}</div>
  61. If #genre is not set, then the entire <div> element will be hidden.
  62. -->
  63. <div class="cbj_comments">{comments}</div>
  64. </body>
  65. </html>