Template:BookClub: Difference between revisions

From CAT Base
Jump to navigation Jump to search
Jtodd1 (talk | contribs)
Created template to organize book selections for the FFBC
 
Jtodd1 (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== {{{year}}} ==
=== {{{year}}} ===
<div class="bookclub-entry"><templatestyles src="BookClubSelection/styles.css" />{{#if:{{{cover|}}}|<div class="bookclub-cover">[[File:{{{cover}}}|150px|alt=Cover of {{{title}}}]]</div>}}<div class="bookclub-body">
{{{cover|}}}''{{{title}}}'' by {{{author}}}
<div class="bookclub-title">{{#if:{{{link|}}}|''[{{{link}}} {{{title}}}]''|''{{{title}}}''}}</div>
 
<div class="bookclub-author">by {{{author}}}</div>{{#if:{{{note|}}}|
{{{note|}}}
<div class="bookclub-note">{{{note}}}</div>}}
 
<div class="bookclub-meta">{{#if:{{{edition|}}}|<span>{{{edition}}} Annual</span>}}{{#if:{{{themes|}}}|<span>Themes: {{{themes}}}</span>}}{{#if:{{{sessions|}}}|<span>{{{sessions}}} session{{#ifeq:{{{sessions}}}|1||s}}</span>}}{{#if:{{{cosponsor|}}}|<span>Co-sponsored with {{{cosponsor}}}</span>}}</div>
{{{meta|}}}
</div></div><noinclude>
<div style="clear:both"></div><noinclude>
Usage — copy one block per year onto the Fall Faculty Book Club page:
Usage — only year, title, author are required. Omit any of cover/note/meta
and they vanish. Optional fields take finished wikitext, not raw values:
<pre>
<pre>
{{BookClubSelection
{{BookClub
| year     =
| year  =  
| edition  =
| cover = [[File:Filename.jpg|left|150px]]
| title    =
| title  = [https://publisher-url Book Title]   (or just plain text, no link)
| author   =  
| author =  
| cover   = (File name only, e.g. PedagogyOfKindness.jpg)
| note   = The "why this book, that year" annotation.
| link    = (publisher or Goodreads URL)
| meta  = '''Themes:''' x · y · z<br>'''Sessions:''' 3
| themes   = (comma-separated)
| sessions =  
| note     = (the "why this book, that year" annotation)
| cosponsor=  
}}
}}
</pre>
</pre>
Required: year, title, author. Everything else is optional and hides itself when blank.
</noinclude>
</noinclude>

Latest revision as of 09:12, 30 June 2026

{{{year}}}

{{{title}}} by {{{author}}}



Usage — only year, title, author are required. Omit any of cover/note/meta and they vanish. Optional fields take finished wikitext, not raw values:

{{BookClub
| year   = 
| cover  = [[File:Filename.jpg|left|150px]]
| title  = [https://publisher-url Book Title]   (or just plain text, no link)
| author = 
| note   = The "why this book, that year" annotation.
| meta   = '''Themes:''' x · y · z<br>'''Sessions:''' 3
}}