Template:Reference book infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "\| class="infoboxfooter" colspan="2" \|  ↵\|}" to "{{Infobox|end}}")
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to "{{Infobox|entry|title=$2|content=$1}}")
Line 6: Line 6:
}}
}}
|-
|-
{{#if:{{{author|}}}|
{{Infobox|entry|title={{{author-title|Author(s)}}}|content={{{author|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{cover artist-title|Cover artist(s)}}}|content={{{cover artist|}}}}}
{{{author-title|Author(s)}}}:
{{Infobox|entry|title={{{editor-title|Editor(s)}}}|content={{{editor|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{illustrator-title|Illustrator(s)}}}|content={{{illustrator|}}}}}
{{{author}}}
{{Infobox|entry|title={{{publisher-title|Publisher}}}|content={{{publisher|}}}}}
}}
{{Infobox|entry|title={{{publication-title|Publication date}}}|content={{{publication|}}}}}
|-
{{Infobox|entry|title={{{media-title|Media type}}}|content={{{media|}}}}}
{{#if:{{{cover artist|}}}|
{{Infobox|entry|title={{{length-title|Pages}}}|content={{{length|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{dimensions-title|Dimensions}}}|content={{{dimensions|}}}}}
{{{cover artist-title|Cover artist(s)}}}:
{{Infobox|entry|title={{{weight-title|Weight}}}|content={{{weight|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{ISBN-title|ISBN}}}|content={{{ISBN|}}}}}
{{{cover artist}}}
}}
|-
{{#if:{{{editor|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{editor-title|Editor(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{editor}}}
}}
|-
{{#if:{{{illustrator|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{illustrator-title|Illustrator(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{illustrator}}}
}}
|-
{{#if:{{{publisher|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher-title|Publisher}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publisher}}}
}}
|-
{{#if:{{{publication|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication-title|Publication date}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{publication}}}
}}
|-
{{#if:{{{media|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media-title|Media type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{media}}}
}}
|-
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length-title|Pages}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length}}}
}}
|-
{{#if:{{{dimensions|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{dimensions-title|Dimensions}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{dimensions}}}
}}
|-
{{#if:{{{weight|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{weight-title|Weight}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{weight}}}
}}
|-
{{#if:{{{ISBN|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN-title|ISBN}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ISBN}}}
}}
|-
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Book {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{Clear}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Book {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><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:

Revision as of 18:31, August 28, 2023

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