Difference between revisions of "Template:Weapon"

From MHWiki
m (+line break)
(use conditionals)
Line 31: Line 31:
 
  |-  
 
  |-  
 
  |  valign=top nowrap | <b>Image:</b>
 
  |  valign=top nowrap | <b>Image:</b>
  | align="right" nowrap | [{{{imglink}}} External Link]
+
  | align="right" nowrap | {{if|{{{imglink|}}}|[{{{imglink}}} External Link]|??}}
 
  |-  
 
  |-  
  | colspan=2 align="center" | <hr size=1>''{{{desc}}}''
+
  | colspan="2" align="center" style="font-style:italic; font-size:95%; padding:10px;" | <hr>{{{desc|}}}
 
  |}<noinclude><br clear=all>
 
  |}<noinclude><br clear=all>
  
Line 39: Line 39:
  
 
</noinclude>
 
</noinclude>
 
+
{{if|{{NAMESPACE}}||[[Category:{{{powertype}}} Weapons]]
<includeonly>[[Category:{{{powertype}}} Weapons]]
+
[[Category:Weapons]]}}
[[Category:Weapons]]</includeonly>
 

Revision as of 02:05, 29 October 2011

Sample

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

Image: ??


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.