Template:Armor infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Cleaning up the infobox to match Weapons.)
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:")
 
(98 intermediate revisions by 6 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 5px 10px; padding:2px; background:{{{BG|#223060}}}; 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|#000}}}}}
{{!}}-
{{Infobox|title|name={{{name|}}}|color={{{color2|#FFD700}}}|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|#000}}}|linebg={{{lineBG|#000}}}}}
{{!}}-
 
{{#if:{{{image|}}}|
{{Infobox|section|title={{{section1-title|Specifications}}}|color={{{color2|#FFD700}}}|bg={{{sectionBG|#000}}}|entries=
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#223060}}}; padding: 0px;" colspan="2" {{!}} {{{image|}}}
{{Infobox|entry|title={{{name-title|Name}}}|content={{{name|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{rarity-title|Rarity}}}|content={{{rarity|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{class-title|Class}}}|content={{{class|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{minimum level-title|Minimum level}}}|content={{{minimum level|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{defense rating-title|Defense rating}}}|content={{{defense rating|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{light-title|Light}}}|content={{{light|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{intellect-title|Intellect}}}|content={{{intellect|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{discipline-title|Disicpline}}}|content={{{discipline|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{strength-title|Strength}}}|content={{{strength|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
}}
}}
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#223060}}}" {{!}} {{{section1-title|Specifications}}}}}
{{!}}-
{{#if:{{{Name|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Name-title|Name}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Name|}}}
{{!}}-}}
{{#if:{{{Type|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Type-title|Type}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Type|}}}
{{!}}-}}
{{#if:{{{Rarity|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Rarity-title|Rarity}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Rarity|}}}
{{!}}-}}
{{#if:{{{Class|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Class-title|Class}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Class|}}}
{{!}}-}}
{{#if:{{{Minimum Level|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Minimum Level-title|Minimum Level}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Minimum Level|}}}
{{!}}-}}
{{#if:{{{Defense Rating|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Defense Rating-title|Defense Rating}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Defense Rating|}}}
{{!}}-}}
{{#if:{{{Light|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Light-title|Light}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Light|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#223060}}}" {{!}} {{{section2-title|Availability}}}}}
{{!}}-
{{#if:{{{Loot Drop|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Loot Drop-title|Loot Drop?(Y/N)}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Loot Drop|}}}
{{!}}-}}
{{#if:{{{Vendor|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Vendor-title|Vendor}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{ammo|}}}
{{!}}-}}
{{#if:{{{Price|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{Price-title|Price}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{Price|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | 
|}<noinclude>{{clear}}


{{Infobox|section|title={{{section2-title|Availability}}}|color={{{color2|#FFD700}}}|bg={{{sectionBG|#000}}}|entries=
{{Infobox|entry|title={{{loot drop-title|Loot drop?}}}|content={{{loot drop|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{sources-title|Sources}}}|content={{{sources|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{vendor-title|Vendor}}}|content={{{vendor|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
{{Infobox|entry|title={{{price-title|Price}}}|content={{{price|}}}|bg={{{fieldBG|#F0E68C}}}|linebg={{{lineBG|#000}}}}}
}}


==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>
{{Armor infobox
{{Armor infobox
|image=  
|name=
|Name=
|image=
|Type=  
|type=
|Rarity=  
|rarity=
|Class=
|class=
|Minimum Level=
|minimum level=
|Defense Rating=  
|defense rating=
|Light=
|light=
|Loot Drop=
|intellect=
|Vendor=  
|discipline=
|Price=  
|strength=
 
|loot drop=
|sources=
|vendor=
|price=
}}
}}
</pre>
</pre>


==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 110: Line 62:
</pre>
</pre>


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

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

Armor infobox
 

Usage instructions

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

{{Armor infobox
|name=
|image=
|type=
|rarity=
|class=
|minimum level=
|defense rating=
|light=
|intellect=
|discipline=
|strength=
|loot drop=
|sources=
|vendor=
|price=
}}

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=