Template:Book infobox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - " border="0"" to "") |
(Improved formatting of usage example. Replaced the Halo literature used to demonstrate ISBNs with Destiny literature.) |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox | {| class="infobox" style="width:260px; background:{{{BG|#EFF0FF}}}; border:1px solid #B5B7CF; color:{{{color1|#000}}}" cellspacing="0" | ||
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | |||
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}} | |- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
! style="background:{{{imageBG|#F0F8FF}}} | {{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F8FF}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}} | ||
}} | }} | ||
|- | |||
{{#if:{{{author|}}}| | {{#if:{{{author|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{author-title|Author(s)}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{author | {{{author}}} | ||
}} | |||
|- | |||
{{#if:{{{publisher|}}}| | {{#if:{{{publisher|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{publisher-title|Publisher}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{publisher | {{{publisher}}} | ||
}} | |||
|- | |||
{{#if:{{{publication|}}}| | {{#if:{{{publication|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{publication-title|Publication date}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{publication | {{{publication}}} | ||
}} | |||
|- | |||
{{#if:{{{media|}}}| | {{#if:{{{media|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{media-title|Media type}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{media | {{{media}}} | ||
}} | |||
|- | |||
{{#if:{{{length|}}}| | {{#if:{{{length|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{length-title|Pages}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{length | {{{length}}} | ||
}} | |||
|- | |||
{{#if:{{{ISBN|}}}| | {{#if:{{{ISBN|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ISBN-title|ISBN}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|# | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ISBN | {{{ISBN}}} | ||
}} | |||
| colspan=2 | |- | ||
| class="infoboxfooter" colspan="2" | | |||
|}<noinclude>{{Clear}} | |}<noinclude>{{Clear}} | ||
Add the following code and change the values to add the book template to the an article: | Add the following code and change the values to add the book template to the an article: | ||
<pre> | <pre> | ||
{{Book infobox | {{Book infobox | ||
|image= | | image = | ||
|author= | | author = | ||
|publisher= | | publisher = | ||
|publication= | | publication = | ||
|media= | | media = | ||
|length= | | length = | ||
|ISBN= | | ISBN = | ||
}} | }} | ||
</pre> | </pre> | ||
: | :Note: for ISBN, please include <code><nowiki>[[Special:BookSources/ISBN-NUMBER-HERE|ISBN-NUMBER-HERE]]</nowiki></code>. So, for example, the [[Destiny Strategy Guide|''Destiny Strategy Guide''<nowiki/>'s]] is "978-0-7440-1562-1": it would thus become so, <code><nowiki>"[[Special:BookSources/978-0-7440-1562-1|978-0-7440-1562-1]]"</nowiki></code> which would create as such, "[[Special:BookSources/978-0-7440-1562-1|978-0-7440-1562-1]]". | ||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |
Revision as of 18:08, September 7, 2023
Book infobox | |
---|---|
Add the following code and change the values to add the book template to the an article:
{{Book infobox | image = | author = | publisher = | publication = | media = | length = | ISBN = }}
- Note: for ISBN, please include
[[Special:BookSources/ISBN-NUMBER-HERE|ISBN-NUMBER-HERE]]
. So, for example, the Destiny Strategy Guide's is "978-0-7440-1562-1": it would thus become so,"[[Special:BookSources/978-0-7440-1562-1|978-0-7440-1562-1]]"
which would create as such, "978-0-7440-1562-1".