Template:Armor infobox: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
m (Cleaning up the infobox to match Weapons.)
Line 1: Line 1:
{| class="infobox bordered" align="right" style="width: 25em; background:gray; font-size: 95%; color: white"
{| 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}}};"
|-
{{!}}-
! class="header" colspan="2" | {{{Name}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#FFFFFF}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
{{!}}-
| class="image" colspan="2" | {{{Image|}}}
{{#if:{{{image|}}}|
|- style="{{#if:{{{Type|}}} | | display: none;}}"
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#223060}}}; padding: 0px;" colspan="2" {{!}} {{{image|}}}
! style="width: 1px;" | Type
}}
| {{{Type}}}
{{!}}-
|- style="{{#if:{{{Rarity|}}} | | display: none;}}"
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! Rarity
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#FFFFFF}}}; text-align:center; background:{{{sectionBG|#223060}}}" {{!}} {{{section1-title|Specifications}}}}}
| {{{Rarity}}}
{{!}}-
|- style="{{#if:{{{Class|}}} | | display: none;}}"
{{#if:{{{Name|}}}|
! 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}}}
'''{{{Name-title|Name}}}''':
|- style="{{#if:{{{Minimum Level|}}} | | display: none;}}"
{{!}} 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
{{{Name|}}}
| {{{Minimum Level}}}
{{!}}-}}
|- style="{{#if:{{{Defense Rating|}}} | | display: none;}}"
{{#if:{{{Type|}}}|
! 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}}}
'''{{{Type-title|Type}}}''':
|- style="{{#if:{{{Light|}}} | | display: none;}}"
{{!}} 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
{{{Type|}}}
| {{{Light}}}
{{!}}-}}
|- style="{{#if:{{{Loot Drop|}}} | | display: none;}}"
{{#if:{{{Rarity|}}}|
! 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}}}
'''{{{Rarity-title|Rarity}}}''':
|- style="{{#if:{{{Vendor|}}} | | display: none;}}"
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
! Vendor
{{{Rarity|}}}
| {{{Vendor}}}
{{!}}-}}
|- style="{{#if:{{{Price|}}} | | display: none;}}"
{{#if:{{{Class|}}}|
! 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}}}
'''{{{Class-title|Class}}}''':
|}<noinclude>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#223060}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
This template is intended to be used on pages relating to the lore of various characters in the Diablo Universe.
{{{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;" |&nbsp;
|}<noinclude>{{clear}}


== Usage ==
 
==Usage==
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Armor infobox
{{Armor infobox
|image=
|Name=
|Type=
|Rarity=
|Class=
|Minimum Level=
|Defense Rating=
|Light=
|Loot Drop=
|Vendor=
|Price=
}}
</pre>
==Custom parameters==
The following allows you to alter the title of the sub-sections:
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=
</pre>


|Name            =  
==Display parameters==
|Image          =  
The following allows you to hide the section header
|Type            =  
*hidea (hides Specs section header)
|Rarity          =  
*hideb (hides Availability section header)
|Class          =
 
|Minimum Level  =
<pre>
|Defense Rating  =
|hidea=
|Light          =
|hideb=
|Loot Drop      =
|Vendor          =  
|Price          =  


}}</pre>
</pre>


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

Revision as of 09:52, April 29, 2015

Armor infobox
Specifications
Availability
 


Usage

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

{{Armor infobox
|image= 
|Name=
|Type= 
|Rarity= 
|Class=
|Minimum Level=
|Defense Rating= 
|Light=
|Loot Drop=
|Vendor= 
|Price= 

}}

Custom parameters

The following allows you to alter the title of the sub-sections:

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

Display parameters

The following allows you to hide the section header

  • hidea (hides Specs section header)
  • hideb (hides Availability section header)
|hidea=
|hideb=