Difference between revisions of "Template:Mouse"

From MHWiki
(improve appearance with conditional templates, add optional subgroup=name field)
m (fix spacing)
Line 16: Line 16:
 
  |- valign="top"  
 
  |- valign="top"  
 
  ! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | Mouse Group:
 
  ! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | Mouse Group:
  | style="font-size:95%; padding:5px;" | {{ifeq|{{if|{{{mgroup|}}}|{{{mgroup}}}|None}}|None|''None''|[[{{{mgroup}}}]]}}{{if|{{{subgroup|}}}| ({{{subgroup}}})}}
+
  | style="font-size:95%; padding:5px;" | {{ifeq|{{if|{{{mgroup|}}}|{{{mgroup}}}|None}}|None|''None''|[[{{{mgroup}}}]]}} {{if|{{{subgroup|}}}|({{{subgroup}}})}}
 
  |- valign="top"  
 
  |- valign="top"  
 
  ! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | [[Weakness]]es:
 
  ! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | [[Weakness]]es:

Revision as of 20:36, 26 October 2011

Sample

Mouse
Points: ??
Gold: ??
Loot:
Locations: ??
Mouse Group: None
Weaknesses: ??
Bait Pref: None known
More Info: ??
Image: ??



Usage

Simple table template to maintain consistency between mice pages. All fields shown here are required:

{{Mouse
 | mgroup    = 
 | subgroup  = 
 | maxpoints = 
 | mingold   = 
 | traptype  = 
 | other     = 
 | bait      =  
 | charm     = 
 | habitat   = 
 | loot      = 
 | mhinfo    = 
 | image     = 
 | desc      = 
 | id        = 
}}

Additionally, there is an optional parameter:

  • "title" to change the title of the infobox when needed to be modified.

Notes

The traptype attribute refers to the mouse's weaknesses to various power types.

  • If there are trap power type(s) which are Very Effective against the mouse, list those.
  • If there are no Very Effective types, list the Effective types instead.
  • If there are no Very Effective or Effective types, list the Less Effective types.
  • If the Effective types are, in fact, all types except the one-off Parental trap, enter "All types" (this applies to Indigenous Mice, for example).

Many mice have a subgroup. An example of one with a subgroup is Eclipse, which would be listed with:

 | mgroup   = Gauntlet Gladiators
 | subgroup = Tier Eight: The Eclipse

See more notes in the Manual of Style.