Template:Book infobox: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
(Improved formatting of usage example. Replaced the Halo literature used to demonstrate ISBNs with Destiny literature.)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; background:{{{BG|#EFF0FF}}}; border:1px solid #B5B7CF; color:{{{color1|#000}}}" cellspacing="0"
{| 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}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{!}}-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! class="infoboximage" colspan="2" style="background:{{{imageBG|#F0F8FF}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F8FF}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
|-
{{#if:{{{author|}}}|
{{#if:{{{author|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{author-title|Author(s)}}}''':
{{{author-title|Author(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{author|}}}
{{{author}}}
{{!}}-}}
}}
|-
{{#if:{{{publisher|}}}|
{{#if:{{{publisher|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{publisher-title|Publisher}}}''':
{{{publisher-title|Publisher}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher|}}}
{{{publisher}}}
{{!}}-}}
}}
|-
{{#if:{{{publication|}}}|
{{#if:{{{publication|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{publication-title|Publication date}}}''':
{{{publication-title|Publication date}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication|}}}
{{{publication}}}
{{!}}-}}
}}
|-
{{#if:{{{media|}}}|
{{#if:{{{media|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{media-title|Media type}}}''':
{{{media-title|Media type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media|}}}
{{{media}}}
{{!}}-}}
}}
|-
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{length-title|Pages}}}:'''
{{{length-title|Pages}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length|}}}
{{{length}}}
{{!}}-}}
}}
|-
{{#if:{{{ISBN|}}}|
{{#if:{{{ISBN|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{ISBN-title|ISBN}}}:'''
{{{ISBN-title|ISBN}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN|}}}
{{{ISBN}}}
{{!}}-}}
}}
| colspan="2" style="text-align:center; line-height:8px" |  
|-
| 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>

Latest 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".