Template:Novel infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
mNo edit summary
Line 1: Line 1:
<div style="width:250px;float:right;clear:right;margin:0 0 1em 1em;border:1px solid #B5B7CF;background:#EFF0FF;-moz-border-radius:10px;padding:10px 10px 10px 10px;">
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:6px; padding:2px; background:{{{BG|#EFF0FF}}}; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; border:1px solid #B5B7CF; color:{{{color1|#000}}};"
<div style="text-align:center;font-size:16px;font-weight:900;line-height:1.5em;">{{{name}}}
{{!}}-
<div class="hiddenStructure{{{image|}}}">[[image:{{{image}}}|{{{imageSize|200}}}px|center|{{{image}}}]]</div></div>
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<div style="clear:left;font-size:10px;text-align:center">
{{!}}-
<div style="width:80px;float:left;text-align:left;">Author(s)</div>
{{#if:{{{image|}}}|
<div style="width:170px;float:left;text-align:right;">{{{Author}}}</div>
! style="background:{{{imageBG|#F0F8FF}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
</div>
}}
<div style="clear:left;font-size:10px;text-align:center">
{{!}}-
<div style="width:80px;float:left;text-align:left;">Publisher</div>
{{#if:{{{author|}}}|
<div style="width:170px;float:left;text-align:right;">{{{Publisher}}}</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
</div>
'''{{{author-title|Author(s)}}}''':
<div style="clear:left;font-size:10px;text-align:center;border-top:2px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div style="width:80px;float:left;text-align:left;">Date Released</div>
{{{author|}}}
<div style="width:170px;float:left;text-align:right;">{{{Date Released}}}</div>
{{!}}-}}
</div>
{{#if:{{{publisher|}}}|
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div style="width:80px;float:left;text-align:left;">Length</div>
'''{{{publisher-title|Publisher}}}''':
<div style="width:170px;float:left;text-align:right;">{{{Length}}}</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
</div>
{{{publisher|}}}
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}}-}}
<div style="width:80px;float:left;text-align:left;">Availability</div>
{{#if:{{{publication|}}}|
<div style="width:170px;float:left;text-align:right;">{{{Availability}}}</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
</div>
'''{{{publication-title|Publication date}}}''':
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div style="width:80px;float:left;text-align:left;">ISBN</div>
{{{publication|}}}
<div style="width:170px;float:left;text-align:right;">ISBN {{{ISBN}}}</div>
{{!}}-}}
</div>
{{#if:{{{media|}}}|
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div style="width:80px;float:left;text-align:left;">Product Dimensions</div>
'''{{{media-title|Media type}}}''':
<div style="width:170px;float:left;text-align:right;">{{{Product Dimensions}}}<BR>{{{Product Dimensions Metric|}}}</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
</div>
{{{media|}}}
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}}-}}
<div style="width:80px;float:left;text-align:left;">Shipping Weight</div>
{{#if:{{{length|}}}|
<div style="width:170px;float:left;text-align:right;">{{{Shipping Weight}}}<BR>{{{Shipping Mass|}}}</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
</div>
'''{{{length-title|Pages}}}:'''
<div style="clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div style="width:80px;float:left;text-align:left;">Price Listing</div>
{{{length|}}}
<div style="width:170px;float:left;text-align:right;">{{{US Price}}}&nbsp;[[Image:USA.png|20px]]<BR>{{{Can Price}}}&nbsp;[[Image:Canada.png|20px]]<BR>{{{UK Price}}}&nbsp;[[Image:UK-flag.png|20px]]</div>
{{!}}-}}
</div>
{{#if:{{{ISBN-10|}}}|
<div class="hiddenStructureAmazon" style="width:250px;clear:left;font-size:10px;text-align:center;border-top:2px solid #B5B7CF;">
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
[{{{Amazon}}} Buy this book from Amazon]
'''{{{ISBN-title|ISBN}}}:'''
</div>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<div class="hiddenStructure{{{website|}}}" style="width:250px;clear:left;font-size:10px;text-align:center;border-top:1px solid #B5B7CF;">
{{{ISBN|}}}
[{{{website}}} Website]
{{!}}-}}
</div>
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px;" | [[Template:Affiliation infobox|<span style="color:#000;">[Source]</span>]]
</div><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 Info
{{Book Info
|name=
|name=
|image=
|image=
|imageSize=
|author=
|Author=
|publisher=
|Publisher=
|publication=
|Date Released=
|media=
|Length=
|length=
|US Price=
|Can Price=
|UK Price=
|ISBN-10=
|ISBN-13=
|Amazon=
|Availability=
|ISBN=
|ISBN=
|Product Dimensions=
|Product Dimensions Metric=
|Shipping Weight=
|Shipping Mass=
}}
}}
</PRE>
</pre>


[[Category:Infoboxes|{{PAGENAME}}]]
[[Category:Infoboxes|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 06:50, April 23, 2012

Novel infobox
[Source]

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

{{Book Info
|name=
|image=
|author=
|publisher=
|publication=
|media=
|length=
|ISBN=
}}