Difference between revisions of "Template:Weapon"

From MHWiki
(remove default italics for description)
m (Update template)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>== Sample ==
+
<noinclude>== Sample ==</noinclude>
</noinclude>{| align="right" cellpadding="5" width="260" style="border:2px solid #226622; border-top:25px solid #226622; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
+
{| align="left" cellpadding="5" width="800" style="border:2px solid darkgreen; border-top:25px solid darkgreen; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
|-
+
  |-
! colspan="2" style="font-size:150%;" | {{PAGENAME}}
+
! colspan="4" style="font-size:150%;" | {{PAGENAME}}
  |-
+
  |-
  | '''Cost:'''
+
! colspan="4" style="border-style: solid; border-width: 2px 2px 0 2px;" bgcolor=lime style="border-style: solid; border-width: 2px 2px 0 2px; font-size:125%;" | '''Power Type:''' {{if|{{{powertype|}}}|[[{{{powertype}}}]]|??}}
  | align="right" | {{{cost|??}}} [[gold]]
+
  |-
  |-
+
! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 1px 2px 2px;" bgcolor=lightgreen | Weapon Statistics !! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 1px;" bgcolor=lightgreen | Weapon Info
  | nowrap | '''[[Points|Points Required]]:'''
+
  |-
  | align="right" | {{{pointsreq|??}}}
+
| nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''[[Power]]:'''
  |-  
+
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{power|??}}}
  | '''[[Power]]:'''
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''[[Rank]] requirement:'''
  | align="right" | {{{power|??}}}
+
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{titlereq|??}}}
 +
  |-  
 +
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Power Bonus]]:'''
 +
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{powerbonus|??}}}%
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''Cost:'''
 +
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"|  {{{cost|??}}}
 +
  |-
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Attraction Bonus]]:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{attbonus|??}}}%
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''Limited Edition:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{LimEd|??}}}
 +
  |-
 +
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Luck]]:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{luck|??}}}
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Crafted:'''
 +
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{Craft|??}}}
 
  |-
 
  |-
  | '''[[Power Type]]:'''
+
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''[[Cheese Effect]]:'''
| align="right" | {{{powertype|??}}}
+
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{chzeffect|??}}}  
|-
+
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Smashable:'''
  | '''[[Power Bonus]]:'''
+
  | nowrap align="right" style="border-style: solid; border-width0 2px 0 0"| {{{Smash|??}}}
  | align="right" | {{{powerbonus|??}}}%
+
  |-
|-
+
  | nowrap align="left" style="border-style: solid; border-width: 2px 0 2px 2px" | '''Larry's Loot Lexicon:'''
  | nowrap | '''[[Attraction Bonus]]:'''
+
| nowrap align="right" style="border-style: solid; border-width:  2px 1px 2px 0" | {{if|{{{mhinfo|}}}|2=[{{MHdomain}}/item.php?item_type={{{mhinfo}}} MouseHunt Info Page]|3=??}}
| align="right" | {{{attbonus|??}}}%
+
  | 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|{{{imglink|}}}|[{{{imglink}}} External Link]|{{{altimglink|??}}}}}
| '''[[Luck]]:'''
+
  |-  
  | align="right" | {{{luck|??}}}
+
  | colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
|-
+
|}
| '''[[Cheese Effect]]:'''
 
  | align="right" | {{{chzeffect|??}}}
 
|-  
 
  | colspan=2 | <hr size=1>
 
|- valign="top"
 
| colspan="2" |
 
  {| cellpadding="0" width="260" style="border:0px; border-top:0px; border-spacing:0; margin-left:0px; margin-bottom:0px; padding:0px;"
 
  |-
 
  | '''More Info:'''
 
  | align="right" nowrap | {{if|{{{mhinfo|}}}|2=[{{MHdomain}}/item.php?item_type={{{mhinfo}}} MouseHunt Info Page]|3=??}}
 
  |}
 
  |-  
 
  |  valign=top nowrap | '''Image:'''
 
  | align="right" nowrap | {{if|{{{imglink|}}}|[{{{imglink}}} External Link]|??}}
 
|-  
 
| colspan="2" align="center" style="font-size:95%; padding:10px;" | <hr><nowiki></nowiki>{{{desc|}}}
 
|}<noinclude><br clear=all>
 
  
 +
<noinclude>
 +
<br clear=all>
 
{{Template:Weapon/docs}}
 
{{Template:Weapon/docs}}
 +
</noinclude>
  
</noinclude>
 
 
{{if|{{NAMESPACE}}||[[Category:{{{powertype}}} Weapons]]
 
{{if|{{NAMESPACE}}||[[Category:{{{powertype}}} Weapons]]
[[Category:Weapons]]}}
+
[[Category:Weapons]]
 +
  {{ifeq|{{{LimEd|}}}|Yes|[[Category:Limited Edition]] [[Category:Weapons (Limited Edition)]]}}
 +
  {{ifeq|{{{Craft|}}}|Yes|[[Category:Craftable]] [[Category:Weapons (Craftable)]]}}
 +
  {{ifeq|{{{Smash|}}}|Yes|[[Category:Smashable]] [[Category:Weapons (Smashable)]]}}
 +
  {{ifeq|{{{Skin|}}}|Yes|[[Category:Weapons (Skinned)]]}}
 +
  {{if|{{{imglink|}}}| |[[Category:Missing Image]]}}
 +
__NOTOC__}}
 +
 
 +
{{-}}

Latest revision as of 03:38, 29 February 2024

Sample

Weapon
Power Type: ??
Weapon Statistics Weapon Info
Power: ?? Rank requirement: ??
Power Bonus: ??% Cost: ??
Attraction Bonus: ??% Limited Edition: ??
Luck: ?? Crafted: ??
Cheese Effect: ?? Smashable: ??
Larry's Loot Lexicon: ?? Image: ??



Usage

Simple table template to maintain consistency between Traps pages. All fields are required.

{{ Weapon
| cost       = 
| titlereq   = 
| power      = 
| powertype  = 
| powerbonus = 
| attbonus   = 
| luck       = 
| chzeffect  = 
| LimEd      =
| Craft      =
| Smash      =
| Skin       =
| mhinfo     =
| imglink    = 
| desc       = 
}}

Notes

Use numbers only for Bonus fields; the % is added automatically by the template. If there is no stat for a given field, use 0 (zero) in its place.

For the mhinfo field, list only the portion of the Larry's Loot Lexicon link after the item_type= in the link. For example, 2010 Blastoff Trap would list mhinfo = 2010_blastoff_trap_weapon.

The description is to be copied from the official MouseHunt page.

Set Skin = Yes if there is at least one skin; this does not show up in the infobox, but does affect automatic categorization.

See more notes in the Manual of Style.