Difference between revisions of "Template:Mouse"

From MHWiki
m (another typo)
m ("External" changed to "Image")
(5 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
! colspan="4" style="font-size:150%;" | {{PAGENAME}}
 
! colspan="4" style="font-size:150%;" | {{PAGENAME}}
 
   |-
 
   |-
! colspan="4"  style="border-style: solid; border-width: 2px 2px 2px 2px; font-size:125%;" bgcolor=cornflowerblue | Mouse Group: {{{mgroup|??}}} {{if|{{{subgroup|}}}|({{{subgroup}}})}}
+
! colspan="4"  style="border-style: solid; border-width: 2px 2px 2px 2px; font-size:125%;" bgcolor=cornflowerblue | Mouse Group: {{if|{{{mgroup|}}}|[[{{{mgroup}}}]]|??}} {{if|{{{subgroup|}}}|({{{subgroup}}})}}
 
   |-
 
   |-
 
! colspan="2" width="400" | !! colspan="2" width="400" |
 
! colspan="2" width="400" | !! colspan="2" width="400" |
 
   |-
 
   |-
! colspan="4"  style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 2px;" bgcolor=lightblue | Mouse Statistics  
+
! colspan="4"  style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 2px;" bgcolor=lightblue | Mouse Statistics
 
   |- valign="top"
 
   |- valign="top"
   | nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | [[Points]]:
+
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 2px" | [[Points]]:
   | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0"| {{{maxpoints|??}}}
+
   | nowrap align="right" style="border-style: solid; border-width:  0 1px 2px 0"| {{{maxpoints|??}}}
   | nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px" | [[Weakness]]es:  
+
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 1px" | [[Gold]]:
   | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{traptype|??}}}  
+
   | nowrap align="right" style="border-style: solid; border-width:  0 2px 2px 0"| {{{mingold|??}}}
 +
  |-
 +
! colspan="2" width="400" | !! colspan="2" width="400" |
 
   |-valign="top"  
 
   |-valign="top"  
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 2px" | [[Gold]]:
+
! colspan="4" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 2px;" bgcolor=lightblue | Location & Attraction Info
   | nowrap align="right" style="border-style: solid; border-width:  0 1px 2px 0"| {{{mingold|??}}}
+
  |-valign="top"
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 1px" | [[Cheese|Bait]] Pref:
+
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 2px" | '''Required''' [[Power Type]]s''':'''
   | nowrap align="right" style="border-style: solid; border-width:  0 2px 2px 0"| {{{bait|??}}}
+
   | nowrap align="right" style="border-style: solid; border-width:  0 1px 2px 0"| {{{traptype|??}}}  
 +
   | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 1px"| '''Other Requirements:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 2px 0"|  {{{other|??}}}
 +
  |-valign="top"
 +
  | nowrap  align="left" style="border-style: solid; border-width:  0 0 2px 2px"| [[Cheese]]:
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 2px 0"|  {{{bait|??}}}
 +
  | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 1px" | [[Charm]]:
 +
   | nowrap align="right" style="border-style: solid; border-width:  0 2px 2px 0"| {{{charm|??}}}
 +
  |-valign="top"
 +
  | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 2px" | [[Location]]s:
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 2px 0"| {{{habitat|??}}}
 +
  | nowrap align="left" style="border-style: solid; border-width:  0 0 2px 1px" | [[Loot]]:
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 2px 0"| {{{loot|??}}}
 
   |-
 
   |-
 
! colspan="2" width="400" | !! colspan="2" width="400" |
 
! colspan="2" width="400" | !! colspan="2" width="400" |
 
   |-valign="top"  
 
   |-valign="top"  
! colspan="4" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 2px;" bgcolor=lightblue | Mouse Info
+
! colspan="4" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 2px;" bgcolor=lightblue | Links
 
   |-valign="top"
 
   |-valign="top"
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px"| [[Location]]s:
+
   | nowrap  align="left" style="border-style: solid; border-width: 0px 0 2px 2px"| '''Larry's Loot Lexicon:'''   
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0"| {{{habitat|??}}}
+
   | nowrap align="right" style="border-style: solid; border-width:  0px 1px 2px 0"|  {{if|{{{mhinfo|}}}|2=[{{MHdomain}}/adversaries.php?mouse={{{mhinfo}}} MouseHunt Info Page]|3=??}}
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| [[Loot]]:
+
   | nowrap align="left" style="border-style: solid; border-width:  0px 0 2px 1px"| '''Image:'''  
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{loot|??}}}
+
   | nowrap align="right" style="border-style: solid; border-width:  0px 2px 2px 0"|  {{if|{{{image|}}}|[{{{image}}} Image Link]|??}}
  |-valign="top"
+
   |-
   | nowrap  align="left" style="border-style: solid; border-width: 2px 0 2px 2px"| '''Larry's Loot Lexicon:'''   
 
   | nowrap align="right" style="border-style: solid; border-width:  2px 1px 2px 0"|  {{if|{{{mhinfo|}}}|2=[{{MHdomain}}/adversaries.php?mouse={{{mhinfo}}} MouseHunt Info Page]|3=??}}
 
   | nowrap align="left" style="border-style: solid; border-width:  2px 0 2px 1px"| '''Image:'''  
 
   | nowrap align="right" style="border-style: solid; border-width:  2px 2px 2px 0"|  {{if|{{{image|}}}|[{{{image}}} External Link]|??}}
 
   |-  
 
 
   | colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
 
   | colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
 +
  |-
 +
  | colspan="3" align="center" style="font-size:110%; padding:10px;" |
 +
  | colspan="1" align="right" style="font-size:90%; padding:10px;" | Mouse ID#: {{{id|}}}
 
|}
 
|}
  
Line 43: Line 55:
 
</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}}})]] }}
 +
        }}
 +
        {{if|{{{image|}}}| | [[Category:Missing Image]] }}
 +
        __NOTOC__
 +
}}
  
 
{{-}}
 
{{-}}

Revision as of 02:55, 8 February 2018

Sample

Mouse
Mouse Group: ??
Mouse Statistics
Points: ?? Gold: ??
Location & Attraction Info
Required Power Types: ?? Other Requirements: ??
Cheese: ?? Charm: ??
Locations: ?? Loot: ??
Links
Larry's Loot Lexicon: ?? Image: ??
Mouse ID#:



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.