Template:Reference book infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "<div>{{{caption}}}</div>" to "{{clear}}{{{caption}}}")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" style="width:260px; background:{{{BG|#EFF0FF}}}; border:1px solid #B5B7CF; color:{{{color1|#000}}}"
{{Infobox|start}}
{{!}}-
{{Infobox|title|name={{{name|''{{PAGETITLE}}''}}}}}
! class="infoboxheading" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}; font-size:120%" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|entry|title={{{author-title|Author(s)}}}|content={{{author|}}}}}
! style="background:{{{imageBG|#F0F8FF}}}; padding:4px; border-bottom:1px solid {{{lineBG|#999}}}" colspan="2" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|entry|title={{{cover artist-title|Cover artist(s)}}}|content={{{cover artist|}}}}}
}}
{{Infobox|entry|title={{{editor-title|Editor(s)}}}|content={{{editor|}}}}}
{{!}}-
{{Infobox|entry|title={{{illustrator-title|Illustrator(s)}}}|content={{{illustrator|}}}}}
{{#if:{{{author|}}}|
{{Infobox|entry|title={{{publisher-title|Publisher}}}|content={{{publisher|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{publication-title|Publication date}}}|content={{{publication|}}}}}
'''{{{author-title|Author(s)}}}''':
{{Infobox|entry|title={{{media-title|Media type}}}|content={{{media|}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{Infobox|entry|title={{{length-title|Pages}}}|content={{{length|}}}}}
{{{author|}}}
{{Infobox|entry|title={{{dimensions-title|Dimensions}}}|content={{{dimensions|}}}}}
{{!}}-}}
{{Infobox|entry|title={{{weight-title|Weight}}}|content={{{weight|}}}}}
{{#if:{{{cover artist|}}}|
{{Infobox|entry|title={{{ISBN-title|ISBN}}}|content={{{ISBN|}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
 
'''{{{cover artist-title|Cover artist(s)}}}:'''
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Book}}}}}</includeonly><noinclude>{{clear}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}; border-color:{{{lineBG|#999}}}" {{!}}
==Usage instructions==
{{{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|}}}
{{!}}-}}
| colspan="2" style="background:{{{BG|transparent}}}; padding:0; font-size:10px; line-height:10px" | &nbsp;
|}<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:
<pre>
<pre>
{{Reference book
{{Reference book
Line 93: Line 36:
</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, ''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]]".
 
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:11, June 14, 2024

Reference book infobox
 

Usage instructions

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