Difference between revisions of "Template:Mouse"
From MHWiki
(improve appearance with conditional templates, add optional subgroup=name field) |
|||
Line 1: | Line 1: | ||
− | {| align="right" width="300" style="border: 2px solid #339; border-top:15px solid #339; border-spacing:0; margin-left:20px; margin-bottom:20px;" | + | <noinclude>== Sample == |
+ | </noinclude>{| align="right" width="300" style="border: 2px solid #339; border-top:15px solid #339; border-spacing:0; margin-left:20px; margin-bottom:20px;" | ||
! style="background-color:#b8c8ff; font-size:140%; padding:6px;" colspan="2" | {{{title|{{PAGENAME}}}}} | ! style="background-color:#b8c8ff; font-size:140%; padding:6px;" colspan="2" | {{{title|{{PAGENAME}}}}} | ||
|- valign="top" | |- valign="top" | ||
Line 15: | 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;" | [[{{{mgroup}}}]] | + | | 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: | ||
Line 24: | Line 25: | ||
|- valign="top" | |- valign="top" | ||
! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | More Info: | ! width="40%" align="right" nowrap style="font-size:95%; padding:5px;" | More Info: | ||
− | | style="font-size:95%; padding:5px;" nowrap | [{{{mhinfo}}} MouseHunt Info Page] | + | | style="font-size:95%; padding:5px;" nowrap | {{if|{{{mhinfo|}}}|[{{{mhinfo}}} MouseHunt Info Page]|??}} |
|- valign="top" | |- valign="top" | ||
! width="40%" align="right" style="font-size:95%; padding:5px;" | Image: | ! width="40%" align="right" style="font-size:95%; padding:5px;" | Image: | ||
− | | style="font-size:95%; padding:5px;" | [{{{image}}} External Link] | + | | style="font-size:95%; padding:5px;" | {{if|{{{image|}}}|[{{{image}}} External Link]|??}} |
|- | |- | ||
| colspan="2" align="center" style="font-style:italic; font-size:95%; padding:10px;" | <hr>{{{desc|}}} | | colspan="2" align="center" style="font-style:italic; font-size:95%; padding:10px;" | <hr>{{{desc|}}} | ||
Line 39: | Line 40: | ||
</noinclude> | </noinclude> | ||
− | + | {{if|{{NAMESPACE}}||{{ifeq|{{if|{{{mgroup|}}}|{{{mgroup}}}|None}}|None||[[Category:{{{mgroup}}}]] | |
+ | {{if|{{{subgroup|}}}|[[Category:{{{mgroup}}} ({{{subgroup}}})]]}}}}}} |
Revision as of 20:33, 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.