Template:Material infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "{{#if:{{{image\|}}}\|↵{{!}} class="infoboxmedia" colspan="2" style="background:([^\n;"]+); border-bottom:1px solid ([^\n;"]+)" {{!}} {{{image}}} {{#if:{{{caption\|}}}\|{{clear}}{{{caption}}}}}↵}}↵\|-" to "{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=$1|linebg=$2}}")
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:")
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#0000FF}}}}}
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#00f}}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#fff}}}|bg={{{nameBG|transparent}}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#fff}}}|bg={{{nameBG|transparent}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#f0f0f0}}}|linebg={{{lineBG|#223060}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#F3F3F3}}}|linebg={{{lineBG|#223060}}}}}
{{#if:{{{hidea|}}}||
 
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#696969}}}" {{!}} {{{section1-title|Overview}}}
{{Infobox|section|title={{{section1-title|Overview}}}|color={{{color2|#fff}}}|bg={{{sectionBG|#696969}}}|entries=
{{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}}}}}
}}
}}
|-
 
{{#if:{{{location|}}}|
{{Infobox|section|title={{{section2-title|Details}}}|color={{{color2|#fff}}}|bg={{{sectionBG|#696969}}}|entries=
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{Infobox|entry|title={{{source-title|Source}}}|content={{{source|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{{location-title|Location}}}:
{{Infobox|entry|title={{{value-title|Value}}}|content={{{value|}}}|bg={{{fieldBG|#ccc}}}|linebg={{{lineBG|#223060}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{location}}}
}}
}}
|-
 
{{#if:{{{stack limit|}}}|
{{Infobox|end}}<noinclude>{{clear}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{stack limit-title|Stack limit}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{stack limit}}}
}}
|-
{{#if:{{{class|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{class-title|Rarity class}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{class}}}
}}
|-
{{#if:{{{loot drop|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{loot drop-title|Loot drop}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{loot drop}}}
}}
|-
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#696969}}}" {{!}} {{{section3-title|Details}}}
}}
|-
{{#if:{{{source|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{source-title|Source}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{source}}}
}}
|-
{{#if:{{{value|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{value-title|Value}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#ccc}}}; border-color:{{{lineBG|#223060}}}" {{!}}
{{{value}}}
}}
|-
| class="infoboxfooter" colspan="2" | &nbsp;
|}<noinclude>{{clear}}
==Usage instructions==
==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.
Line 59: Line 21:
<pre>
<pre>
{{Material infobox
{{Material infobox
|name=
|image=
|image=
|location=
|location=
Line 70: 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 82: Line 45:
|section1-title=
|section1-title=
|section2-title=
|section2-title=
</pre>
==Display parameters==
The following allows you to hide the section header
*hidea (hides Overview section header)
*hideb (hides Details section header)
<pre>
|hidea=
|hideb=
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</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=