Difference between revisions of "Template:Base"

From MHWiki
m (replace '%' for bonuses as it says in the doc)
(use conditionals)
Line 28: Line 28:
 
  |-  
 
  |-  
 
  |  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 36: Line 36:
  
 
</noinclude>
 
</noinclude>
 
+
{{if|{{NAMESPACE}}||[[Category:Bases]]}}
<includeonly>[[Category:Bases]]</includeonly>
 

Revision as of 02:19, 29 October 2011

Sample

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

Image: ??


Usage

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

{{ Base
 | title       = 
 | pointsreq  = 
 | power      = 
 | powerbonus = 
 | attbonus   = 
 | luck       = 
 | chzeffect  = 
 | LimEd  =
 | Craft  =
 | Smash  =
 | 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, Aqua Base would list mhinfo = aqua_base.

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

See more notes in the Manual of Style.