Template:Material infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "5px 0 10px 15px" to "0 0 10px 15px")
m (Text replacement - "The following allows you to alter the title of the sub-sections:" to "The following parameters allow you to customize the infobox colors and section titles:")
 
(84 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 10px 15px; padding:2px; background:{{{BG|#0000FF}}}; 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;  color:{{{color1|#000}}};"
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#00f}}}}}
{{!}}-
{{Infobox|title|name={{{name|}}}|color={{{color2|#fff}}}|bg={{{nameBG|transparent}}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#FFFFFF}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#F3F3F3}}}|linebg={{{lineBG|#223060}}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Overview}}}|color={{{color2|#fff}}}|bg={{{sectionBG|#696969}}}|entries=
! class="infoboxcell" style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#223060}}}; padding: 0px;" colspan="2" {{!}} {{{image|}}}
{{Infobox|entry|title={{{location-title|Location}}}|content={{{location|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{Infobox|entry|title={{{stack limit-title|Stack limit}}}|content={{{stack limit|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{Infobox|entry|title={{{class-title|Rarity class}}}|content={{{class|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{Infobox|entry|title={{{loot drop-title|Loot drop}}}|content={{{loot drop|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
}}
 
{{Infobox|section|title={{{section2-title|Details}}}|color={{{color2|#fff}}}|bg={{{sectionBG|#696969}}}|entries=
{{Infobox|entry|title={{{source-title|Source}}}|content={{{source|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{Infobox|entry|title={{{value-title|Value}}}|content={{{value|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
}}
}}
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#696969}}}" {{!}} {{{section1-title|Overview}}}}}
{{!}}-}}
{{#if:{{{location|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{location-title|Location}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{location|}}}
{{!}}-}}
{{#if:{{{stack limit|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{stack limit-title|Stack limit}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{stack limit|}}}
{{!}}-}}
{{#if:{{{class|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{class-title|Rarity class}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{class|}}}
{{!}}-}}
{{#if:{{{loot drop|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{loot drop-title|Loot drop}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{loot drop|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#696969}}}" {{!}} {{{section3-title|Details}}}}}
{{!}}-
{{#if:{{{source|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{source-title|Source}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{source|}}}
{{!}}-}}
{{#if:{{{value|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{value-title|Value}}}''':
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#808080}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{value|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | 
|}<noinclude>{{clear}}


==Usage==
{{Infobox|end}}<noinclude>{{clear}}
==Usage instructions==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Material infobox
{{Material infobox
|image=  
|name=
|image=
|location=
|location=
|stack limit=
|stack limit=
Line 67: Line 33:


==Custom parameters==
==Custom parameters==
The following allows you to alter the title of the sub-sections:
The following parameters allow you to customize the infobox colors and section titles:
 
<pre>
<pre>
|nameBG=
|imageBG=
|imageBG=
|nameBG=
|sectionBG=
|sectionBG=
|fieldBG=
|fieldBG=
Line 80: Line 47:
</pre>
</pre>


==Display parameters==
[[Category:Infobox templates]]</noinclude>
The following allows you to hide the section header
*hidea (hides Overview section header)
*hideb (hides Details section header)
 
<pre>
|hidea=
|hideb=
</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 14:50, June 18, 2024

Material infobox
 

Usage instructions

Copy and paste the following into the article and fill in the fields.

{{Material infobox
|name=
|image=
|location=
|stack limit=
|class=
|loot drop=
|source=
|value=
}}

Custom parameters

The following parameters allow you to customize the infobox colors and section titles:

|nameBG=
|imageBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=