Difference between revisions of "Template:Item"

From NEStalgia
Jump to: navigation, search
(Right aligned template and changed the font to something less ugly.)
(Removed the extra style and implemented alternating rows.)
Line 1: Line 1:
<table align="right" cellspacing="0" cellpadding="0" style="border: 1px solid #000000;"><tr><td>
+
{| width="400px" style="background: #f9f9f9; border-collapse:collapse; border: 1px solid darkgray; text-align: left;"
<table cellspacing="0" cellpadding="0" style="border: 2px solid #969696;"><tr><td>
 
{| width="400px" cellspacing="2" cellpadding="1" style="border: 2px solid #000000; text-align: center; font-size:15px; font-family:'Courier New', Courier, monospace;"
 
 
|-
 
|-
| colspan=2 style="background: #0F1964; color: white; padding: 0 20px; line-height: 1em; font-size: 25px; font-weight: bolder;" | {{#if: {{{Icon|}}} | [[image:{{{Icon}}}]] }} {{BASEPAGENAME}}
+
! colspan="2" style="padding-bottom:10px;"| <center>{{#if:{{{Icon|}}}| [[image:{{{Icon}}}]] }} <font size=2>'''{{BASEPAGENAME}}'''</font></center>
|-
+
{{Alternating rows table section|os=background:#f0f0f0;
| style="padding-left: 10px; padding-right: 10px; text-align: left;" | '''Level:''' || style="padding-left: 10px; padding-right: 10px;" | {{{Level}}}
+
| {{!}} '''Level:''' {{!!}} {{{Level}}}
|-
+
|{{#if:{{{Sold|}}}| {{!}} '''Sold:''' {{!!}} {{{Sold}}} }}
{{#if: {{{Sold|}}} | {{1}} style="padding-left: 10px; padding-right: 10px; text-align: left;" {{1}} '''Sold:''' {{1}}{{1}} style="padding-left: 10px; padding-right: 10px;" {{1}} {{{Sold}}} }}
+
|{{#if:{{{Cost|}}}| {{!}} '''Cost:''' {{!!}} {{{Cost}}} }}
|-
+
|{{#if:{{{Quest|}}}| {{!}} '''Quest:''' {{!!}} {{{Quest}}} }}
{{#if: {{{Cost|}}} | {{1}} style="padding-left: 10px; padding-right: 10px; text-align: left;" {{1}} '''Cost:''' {{1}}{{1}} style="padding-left: 10px; padding-right: 10px;" {{1}} {{{Cost}}} }}
+
|{{#if:{{{Drops|}}}| {{!}} '''Drops:''' {{!!}} {{{Drops}}} }}
|-
+
| {{!}} '''Target:''' {{!!}} {{{Target}}}
{{#if: {{{Quest|}}} | {{1}} style="padding-left: 10px; padding-right: 10px; text-align: left;" {{1}} '''Quest:''' {{1}}{{1}} style="padding-left: 10px; padding-right: 10px;" {{1}} {{{Quest}}} }}
+
| {{!}} '''Type:''' {{!!}} {{{Type}}}
|-
+
|{{#if:{{{Charges|}}}| {{!}} '''Charges:''' {{!!}} {{{Charges}}} }}
{{#if: {{{Drops|}}} | {{1}} style="padding-left: 10px; padding-right: 10px; text-align: left;" {{1}} '''Drops:''' {{1}}{{1}} style="padding-left: 10px; padding-right: 10px;" {{1}} {{{Drops}}} }}
+
}}
|-
 
| style="padding-left: 10px; padding-right: 10px; text-align: left;" | '''Target:''' || style="padding-left: 10px; padding-right: 10px;" | {{{Target}}}
 
|-
 
| style="padding-left: 10px; padding-right: 10px; text-align: left;" | '''Type:''' || style="padding-left: 10px; padding-right: 10px;" | {{{Type}}}
 
|-
 
{{#if: {{{Charges|}}} | {{1}} style="padding-left: 10px; padding-right: 10px; text-align: left;" {{1}} '''Charges:''' {{1}}{{1}} style="padding-left: 10px; padding-right: 10px;" {{1}} {{{Charges}}} }}
 
|-
 
{{#if: {{{Description|}}} | {{1}} colspan=2 style="background: #DDDDEE; padding-left: 20px; padding-right: 20px; text-align: center;" {{1}} '''Description''' }}
 
|-
 
{{#if: {{{Description|}}} | {{1}} colspan=2 style="padding-left: 10px; padding-right: 10px; text-align: justify;" {{1}} {{{Description}}} }}
 
|-
 
| colspan=2 style="background: #DDDDEE; padding-left: 20px; padding-right: 20px; text-align: center;" | '''Effect'''
 
|-
 
| colspan=2 style="padding-left: 10px; padding-right: 10px; text-align: justify;" | {{{Effect}}}
 
 
|}
 
|}
</td></tr></table>
 
</td></tr></table>
 
  
 
<noinclude>
 
<noinclude>
Line 45: Line 27:
 
|Type                  =  
 
|Type                  =  
 
|Charges                =  
 
|Charges                =  
|Description            =
 
|Effect                =
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 15:08, 24 May 2012

Item
Level: {{{Level}}}
Target: {{{Target}}}
Type: {{{Type}}}


{{Item
|Icon                   = 
|Level                  = 
|Sold                   = 
|Cost                   = 
|Quest                  = 
|Drops                  = 
|Target                 = 
|Type                   = 
|Charges                = 
}}