Template:Book infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "border-radius:0 0 .7em .7em; " to "")
(Improved formatting of usage example. Replaced the Halo literature used to demonstrate ISBNs with Destiny literature.)
(42 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:260px; background:{{{BG|#EFF0FF}}}; border:1px solid #B5B7CF; color:{{{color1|#000}}};"
{| 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}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#F0F8FF}}}; text-align:center; padding:4px; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F8FF}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
|-
{{#if:{{{author|}}}|
{{#if:{{{author|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{author-title|Author(s)}}}''':
{{{author-title|Author(s)}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{author|}}}
{{{author}}}
{{!}}-}}
}}
|-
{{#if:{{{publisher|}}}|
{{#if:{{{publisher|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{publisher-title|Publisher}}}''':
{{{publisher-title|Publisher}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher|}}}
{{{publisher}}}
{{!}}-}}
}}
|-
{{#if:{{{publication|}}}|
{{#if:{{{publication|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{publication-title|Publication date}}}''':
{{{publication-title|Publication date}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication|}}}
{{{publication}}}
{{!}}-}}
}}
|-
{{#if:{{{media|}}}|
{{#if:{{{media|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{media-title|Media type}}}''':
{{{media-title|Media type}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media|}}}
{{{media}}}
{{!}}-}}
}}
|-
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{length-title|Pages}}}:'''
{{{length-title|Pages}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length|}}}
{{{length}}}
{{!}}-}}
}}
|-
{{#if:{{{ISBN|}}}|
{{#if:{{{ISBN|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{ISBN-title|ISBN}}}:'''
{{{ISBN-title|ISBN}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN|}}}
{{{ISBN}}}
{{!}}-}}
}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | 
|-
| 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, ''Cryptum''<nowiki />'s is "0765323966": it would thus become so, <code><nowiki>"[[Special:BookSources/0765323966|0765323966]]"</nowiki></code> which would create as such, "[[Special:BookSources/0765323966|0765323966]]".
: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".