Difference between revisions of "Template:BookListing"

From The Portal Wiki
Jump to navigation Jump to search
m (Protected "Template:BookListing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(3 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;">
{{#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>

Latest revision as of 23:56, 12 March 2022

For use in flex-containers.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Book Covercover

File name of the book cover to display

Stringsuggested
Cover Linklink

Specify the link to visit when clicking on the cover.

Stringsuggested
Book Titletitle

Specify the title of the book.

Stringsuggested
Book Descriptiondesc

Describe the book.

Contentsuggested