Difference between revisions of "Template:Weapon"

From MHWiki
m (change to table header font size)
(Rebuilt table in wiki format)
Line 1: Line 1:
<table cellpadding=20 cellspacing=0 align=right><tr><td>
+
<noinclude>== Sample ==
<table border=1 width=260 cellpadding=4 cellspacing=0 align=center>
+
</noinclude>{| align="right" cellpadding="5" width="260" style="border:2px solid #663300; border-top:25px solid #663300; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
<tr>
+
|-
  <td><table border=0 width=100% align=center cellpadding=4>
+
! colspan="2" style="font-size:150%;" | {{PAGENAME}}
      <tr bgcolor=#fc9>
+
|-
        <th colspan=2 style="font-size:150%;">{{PAGENAME}}</th>
+
| '''Cost:'''
      </tr>
+
| align="right" | {{{cost|??}}} [[gold]]
      <tr>
+
|-
        <td valign=top nowrap><b>Cost:</b></td>
+
| nowrap | '''[[Points|Points Required]]:'''
        <td>{{{cost}}} [[gold]]</td>
+
| align="right" | {{{pointsreq|??}}}
      </tr>
+
|-
      <tr>
+
| '''[[Power]]:'''
        <td valign=top nowrap><b>[[Points|Points Required]]:</b></td>
+
| align="right" | {{{power|??}}}
        <td>{{{pointsreq}}}</td>
+
|-
      </tr>
+
| '''[[Power Type]]:'''
      <tr>
+
| align="right" | {{{powertype|??}}}
        <td colspan=2><hr size=1></td>
+
|-
      </tr>
+
| '''[[Power Bonus]]:'''
      <tr>
+
| align="right" | {{{powerbonus|??}}}
        <td valign=top nowrap><b>[[Power]]:</b></td>
+
|-
        <td>{{{power}}}</td>
+
| nowrap | '''[[Attraction Bonus]]:'''
      </tr>
+
| align="right" | {{{attbonus|??}}}
      <tr>
+
|-
        <td valign=top nowrap><b>[[Power Type]]:</b></td>
+
| '''[[Luck]]:'''
        <td>[[{{{powertype}}}]]</td>
+
| align="right" | {{{luck|??}}}
      </tr>
+
|-
      <tr>
+
| '''[[Cheese Effect]]:'''
        <td valign=top valign=top nowrap><b>[[Power Bonus]]:</b></td>
+
| align="right" | {{{chzeffect|??}}}
        <td>{{{powerbonus}}}%</td>
+
|-
      </tr>
+
colspan=2 | <hr size=1>
      <tr>
+
|-
        <td valign=top nowrap><b>[[Attraction Bonus]]:</b></td>
+
valign=top nowrap | <b>Image:</b>
        <td>{{{attbonus}}}%</td>
+
| [{{{imglink}}} External Link]
      </tr>
+
|-
      <tr>
+
colspan=2 align="center" | <hr size=1>''{{{desc}}}''
        <td valign=top nowrap><b>[[Luck]]:</b></td>
+
|}<noinclude><br clear=all>
        <td>{{{luck}}}</td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Cheese Effect]]:</b></td>
 
        <td>{{{chzeffect}}}</td>
 
      </tr>
 
      <tr>
 
        <td colspan=2><hr size=1></td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>Image:</b></td>
 
        <td>[{{{imglink}}} External Link]</td>
 
      </tr>
 
      <tr>
 
        <td colspan=2 align="center"><hr size=1>''{{{desc}}}''</td>
 
      </tr>
 
      </table></td>
 
</tr>
 
</table>
 
</td></tr></table>
 
 
 
<noinclude><br clear=all>
 
  
 
{{Template:Weapon/docs}}
 
{{Template:Weapon/docs}}

Revision as of 15:06, 4 February 2009

Sample

Weapon
Cost: ?? gold
Points Required: ??
Power: ??
Power Type: ??
Power Bonus: ??
Attraction Bonus: ??
Luck: ??
Cheese Effect: ??

Image: [{{{imglink}}} External Link]

{{{desc}}}


Usage

Simple table template to maintain consistency between Traps pages. All fields are required.

{{ Weapon
| cost       = 
| titlereq   = 
| power      = 
| powertype  = 
| powerbonus = 
| attbonus   = 
| luck       = 
| chzeffect  = 
| LimEd      =
| Craft      =
| Smash      =
| Skin       =
| mhinfo     =
| imglink    = 
| desc       = 
}}

Notes

Use numbers only for Bonus fields; the % is added automatically by the template. If there is no stat for a given field, use 0 (zero) in its place.

For the mhinfo field, list only the portion of the Larry's Loot Lexicon link after the item_type= in the link. For example, 2010 Blastoff Trap would list mhinfo = 2010_blastoff_trap_weapon.

The description is to be copied from the official MouseHunt page.

Set Skin = Yes if there is at least one skin; this does not show up in the infobox, but does affect automatic categorization.

See more notes in the Manual of Style.