Template:BookListing: Difference between revisions

m
Protected "Template:BookListing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
(Created page with "<div class="book-listing"> <div class="book-cover">\ {{{cover}}} </div> <div class="book-title"> {{{title}}} </div> <div class="book-desc"> {{{desc}}}...")
 
m (Protected "Template:BookListing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="book-listing">
<div class="book-listing" style="flex: 0 1 300px;">
    <div class="book-cover">\
{{#if: {{{cover|}}}|<nowiki/>
{{{cover}}}
<div class="book-cover">
    </div>
[[File:{{{cover}}}|300px|center|link={{{link|}}}]]
    <div class="book-title">
</div>|<nowiki/>
}}<nowiki/>
{{#if: {{{title|}}}|<nowiki/>
<div class="book-title">
{{{title}}}
{{{title}}}
    </div>
</div>|<nowiki/>
    <div class="book-desc">
}}<nowiki/>
{{#if: {{{desc|}}}|<nowiki/>
<div class="book-desc">
{{{desc}}}
{{{desc}}}
    </div>
</div>|<nowiki/>
</div>
}}<nowiki/>
</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>