Difference between revisions of "User:Bencmq/sandbox"

From MHWiki
 
Line 43: Line 43:
 
</noinclude>
 
</noinclude>
  
{{if| {{NAMESPACE}} | |
+
<!-- On article namespace, add categories and remove TOC -->
    {{if| {{{mgroup|}}} | [[Category:Mice]] [[Category:{{{mgroup}}}]]
+
{{if| {{NAMESPACE}}
 
+
    | <!-- Not article namespace, do not do anything -->
    {{if| {{{subgroup|}}} | [[Category:{{{mgroup}}} ({{{subgroup}}})]] }}
+
    |
    }}
+
        {{if| {{{mgroup|}}}
    __NOTOC__
+
            | [[Category:Mice]] [[Category:{{{mgroup}}}]]
 +
                <!-- Nested condition,  check subgroup if mgroup is present -->
 +
                {{if| {{{subgroup|}}} | [[Category:{{{mgroup}}} ({{{subgroup}}})]] }}
 +
        }}
 +
        __NOTOC__
 
}}
 
}}
 
  
 
{{-}}
 
{{-}}

Latest revision as of 18:19, 28 June 2014

Sample

Bencmq/sandbox
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.