Template:BookListing: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#if: {{{cover|}}}|<nowiki/> | {{#if: {{{cover|}}}|<nowiki/> | ||
<div class="book-cover"> | <div class="book-cover"> | ||
[[File:{{{cover}}}|link={{{link|}}}]] | [[File:{{{cover}}}|300px|center|link={{{link|}}}]] | ||
</div>|<nowiki/> | </div>|<nowiki/> | ||
}}<nowiki/> | }}<nowiki/> | ||
Line 15: | Line 15: | ||
</div>|<nowiki/> | </div>|<nowiki/> | ||
}}<nowiki/> | }}<nowiki/> | ||
</div> | </div><noinclude><templatedata> | ||
{ | |||
"params": { | |||
"cover": { | |||
"label": "Book Cover", | |||
"description": "File name of the book cover to display", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"link": { | |||
"label": "Cover Link", | |||
"description": "Specify the link to visit when clicking on the cover.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"title": { | |||
"label": "Book Title", | |||
"description": "Specify the title of the book.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"desc": { | |||
"label": "Book Description", | |||
"description": "Describe the book.", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "For use in flex-containers.", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 21:16, 5 July 2021
For use in flex-containers.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Book Cover | cover | File name of the book cover to display | String | suggested |
Cover Link | link | Specify the link to visit when clicking on the cover. | String | suggested |
Book Title | title | Specify the title of the book. | String | suggested |
Book Description | desc | Describe the book. | Content | suggested |