Template:Book infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "! class="infoboxheading" colspan="2" style="background:([^\n;"]+)" (\||{{!}}) {{#if:{{{name\|}}}\|{{{name}}}\|{{PAGENAME}}}}↵\|-" to "{{Infobox|title|name={{{name|}}}}}")
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="background:([^\n;"]+); border-color:([^\n;"]+)" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to "{{Infobox|entry|title=$4|content=$1}}")
Line 2: Line 2:
{{Infobox|title|name={{{name|}}}}}
{{Infobox|title|name={{{name|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{author|}}}|
{{Infobox|entry|title={{{author-title|Author(s)}}}|content={{{author|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{publisher-title|Publisher}}}|content={{{publisher|}}}}}
{{{author-title|Author(s)}}}:
{{Infobox|entry|title={{{publication-title|Publication date}}}|content={{{publication|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{media-title|Media type}}}|content={{{media|}}}}}
{{{author}}}
{{Infobox|entry|title={{{length-title|Pages}}}|content={{{length|}}}}}
}}
{{Infobox|entry|title={{{ISBN-title|ISBN}}}|content={{{ISBN|}}}}}
|-
{{#if:{{{publisher|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher-title|Publisher}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher}}}
}}
|-
{{#if:{{{publication|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication-title|Publication date}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication}}}
}}
|-
{{#if:{{{media|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media-title|Media type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media}}}
}}
|-
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length-title|Pages}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length}}}
}}
|-
{{#if:{{{ISBN|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN-title|ISBN}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN}}}
}}
|-
| class="infoboxfooter" colspan="2" |  
| class="infoboxfooter" colspan="2" |  
|}<noinclude>{{Clear}}
|}<noinclude>{{Clear}}

Revision as of 10:34, June 1, 2024

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