Template:Armor infobox: Difference between revisions

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:"
m (Text replacement - "! class="infoboxheading" colspan="2" style="background:([^\n;"]+); color:([^\n;"]+)" (\||{{!}}) {{#if:{{{name\|}}}\|{{{name}}}\|{{PAGENAME}}}}↵\|-" to "{{Infobox|title|name={{{name|}}}|color=$2|bg=$1}}")
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:")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#000}}}}}
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#000}}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#FFD700}}}|bg={{{nameBG|transparent}}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#FFD700}}}|bg={{{nameBG|transparent}}}}}
{{#if:{{{image|}}}|
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#000}}}|linebg={{{lineBG|#000}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#000}}}; border-bottom:1px solid {{{lineBG|#000}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
 
{{Infobox|section|title={{{section1-title|Specifications}}}|color={{{color2|#FFD700}}}|bg={{{sectionBG|#000}}}|entries=
{{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|}}}||
{{Infobox|section|title={{{section2-title|Availability}}}|color={{{color2|#FFD700}}}|bg={{{sectionBG|#000}}}|entries=
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#FFD700}}}; background:{{{sectionBG|#000}}}" {{!}} {{{section1-title|Specifications}}}
{{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}}}}}
}}
}}
|-
 
{{#if:{{{name|}}}|
{{Infobox|end}}<noinclude>{{clear}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{name-title|Name}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{name}}}
}}
|-
{{#if:{{{type|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{type-title|Type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{type}}}
}}
|-
{{#if:{{{rarity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{rarity-title|Rarity}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{rarity}}}
}}
|-
{{#if:{{{class|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{class-title|Class}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{class}}}
}}
|-
{{#if:{{{minimum level|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{minimum level-title|Minimum level}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{minimum level}}}
}}
|-
{{#if:{{{defense rating|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{defense rating-title|Defense rating}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{defense rating}}}
}}
|-
{{#if:{{{light|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{light-title|Light}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{light}}}
}}
|-
{{#if:{{{intellect|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{intellect-title|Intellect}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{intellect}}}
}}
|-
{{#if:{{{discipline|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{discipline-title|Disicpline}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{discipline}}}
}}
|-
{{#if:{{{strength|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{strength-title|Strength}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{strength}}}
}}
|-
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#FFD700}}}; background:{{{sectionBG|#000}}}" {{!}} {{{section2-title|Availability}}}
}}
|-
{{#if:{{{loot drop|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{loot drop-title|Loot drop?}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{loot drop}}}
}}
|-
{{#if:{{{sources|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{sources-title|Sources}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{sources}}}
}}
|-
{{#if:{{{vendor|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{vendor-title|Vendor}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{vendor}}}
}}
|-
{{#if:{{{price|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{price-title|Price}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0E68C}}}; border-color:{{{lineBG|#000}}}" {{!}}
{{{price}}}
}}
|-
| 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 118: Line 29:
<pre>
<pre>
{{Armor infobox
{{Armor infobox
|name=
|image=
|image=
|name=
|type=
|type=
|rarity=
|rarity=
Line 137: Line 48:


==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 149: Line 60:
|section1-title=
|section1-title=
|section2-title=
|section2-title=
</pre>
==Display parameters==
The following allows you to hide the section header
*hidea (hides Specs section header)
*hideb (hides Availability section header)
<pre>
|hidea=
|hideb=
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>