Difference between revisions of "Template:Mouse"
From MHWiki
(make mouse group a link) |
(category check fix (__NOTOC__ put at the wrong curly brace). Comments and indentation) |
||
Line 43: | Line 43: | ||
</noinclude> | </noinclude> | ||
− | {{if|{{NAMESPACE}}||{{if|{{{mgroup|}}}|[[Category:Mice]][[Category:{{{mgroup}}}]] | + | <!-- On article namespace, add categories and remove TOC --> |
− | {{if|{{{subgroup|}}}|[[Category:{{{mgroup}}} ({{{subgroup}}})]]}}} | + | {{if| {{NAMESPACE}} |
− | __NOTOC__ | + | | <!-- Not article namespace, do not do anything --> |
+ | | | ||
+ | {{if| {{{mgroup|}}} | ||
+ | | [[Category:Mice]] [[Category:{{{mgroup}}}]] | ||
+ | <!-- Nested condition, check subgroup if mgroup is present --> | ||
+ | {{if| {{{subgroup|}}} | [[Category:{{{mgroup}}} ({{{subgroup}}})]] }} | ||
+ | }} | ||
+ | __NOTOC__ | ||
+ | }} | ||
{{-}} | {{-}} |
Revision as of 18:20, 28 June 2014
Sample
Mouse | |||
---|---|---|---|
Mouse Group: ?? | |||
Mouse Statistics | |||
Points: | ?? | Weaknesses: | ?? |
Gold: | ?? | Bait Pref: | ?? |
Mouse Info | |||
Locations: | ?? | Loot: | ?? |
Larry's Loot Lexicon: | ?? | 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.