Template:Reference book infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "background:{{{fieldBG\|([^\n}]+)}}}; border-bottom:1px solid {{{lineBG\|([^\n}]+)}}};" to "background:{{{fieldBG|$1}}}; border-color:{{{lineBG|$2}}};")
m (Text replacement - "}}};"" to "}}}"")
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" cellspacing="0" cellpadding="0" border="0" style="width:260px; background:{{{BG|#EFF0FF}}}; border:1px solid #B5B7CF; color:{{{color1|#000}}}"
{{!}}-
{{!}}-
! class="infoboxheading" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! class="infoboxheading" 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|}}} {{#if:{{{caption|}}}|<div style="clear:both">{{{caption}}}</div>}}
! style="background:{{{imageBG|#F0F8FF}}}; text-align:center; padding:4px; border-bottom:1px solid {{{lineBG|#999999}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|<div style="clear:both">{{{caption}}}</div>}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{author|}}}|
{{#if:{{{author|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{author-title|Author(s)}}}''':
'''{{{author-title|Author(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{author|}}}
{{{author|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{cover artist|}}}|
{{#if:{{{cover artist|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{cover artist-title|Cover artist(s)}}}:'''
'''{{{cover artist-title|Cover artist(s)}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{cover artist|}}}
{{{cover artist|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{editor|}}}|
{{#if:{{{editor|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{editor-title|Editor(s)}}}:'''
'''{{{editor-title|Editor(s)}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{editor|}}}
{{{editor|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{illustrator|}}}|
{{#if:{{{illustrator|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{illustrator-title|Illustrator(s)}}}''':
'''{{{illustrator-title|Illustrator(s)}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{illustrator|}}}
{{{illustrator|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{publisher|}}}|
{{#if:{{{publisher|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{publisher-title|Publisher}}}''':
'''{{{publisher-title|Publisher}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{publisher|}}}
{{{publisher|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{publication|}}}|
{{#if:{{{publication|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{publication-title|Publication date}}}''':
'''{{{publication-title|Publication date}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{publication|}}}
{{{publication|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{media|}}}|
{{#if:{{{media|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{media-title|Media type}}}''':
'''{{{media-title|Media type}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{media|}}}
{{{media|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{length-title|Pages}}}:'''
'''{{{length-title|Pages}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{length|}}}
{{{length|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{dimensions|}}}|
{{#if:{{{dimensions|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{dimensions-title|Dimensions}}}:'''
'''{{{dimensions-title|Dimensions}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{dimensions|}}}
{{{dimensions|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{weight|}}}|
{{#if:{{{weight|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{weight-title|Weight}}}:'''
'''{{{weight-title|Weight}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{weight|}}}
{{{weight|}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{ISBN|}}}|
{{#if:{{{ISBN|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
'''{{{ISBN-title|ISBN}}}:'''
'''{{{ISBN-title|ISBN}}}:'''
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}};" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999999}}}" {{!}}
{{{ISBN|}}}
{{{ISBN|}}}
{{!}}-}}
{{!}}-}}

Revision as of 00:15, September 15, 2022

Reference book infobox
 

Add the following code and change the values to add the book template to the an article:

{{Reference book
|image=
|author=
|cover artist=
|editor=
|illustrator=
|publisher=
|publication=
|media=
|length=
|dimensions=
|weight=
|ISBN=
}}
Note: for ISBN, please include [[Special:BookSources/ISBN-NUMBER-HERE|ISBN-NUMBER-HERE]]. So, for example, Cryptum's is "0765323966": it would thus become so, "[[Special:BookSources/0765323966|0765323966]]" which would create as such, "0765323966".