Difference between revisions of "Template:Weapon"

From MHWiki
m (Usage: added spaces to make copy/paste easier for users)
m (Update template)
 
(50 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<table cellpadding=20 cellspacing=0 align=right><tr><td>
+
<noinclude>== Sample ==</noinclude>
<table border=0 width=260 cellpadding=5 cellspacing=0 align=center>
+
{| 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;"
<tr bgcolor=#cccccc>
+
  |-
  <td align=center nowrap><h2>{{{name}}}</h2></td>
+
! colspan="4" style="font-size:150%;" | {{PAGENAME}}
</tr>
+
  |-
<tr bgcolor=#cccccc>
+
! 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}}}]]|??}}
  <td><table border=0 width=100% align=center>
+
  |-
      <tr>
+
! 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
        <td nowrap><b>Cost:</b></td>
+
  |-
        <td>{{{cost}}}</td>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Power]]:'''
      </tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{power|??}}}
      <tr>
+
| nowrap align="left" style="border-style: solid; border-width: 0 0 0 1px"|  '''[[Rank]] requirement:'''
        <td nowrap><b>Points Required:</b></td>
+
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{titlereq|??}}}
        <td>{{{pointsreq}}}</td>
+
  |-
      </tr>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Power Bonus]]:'''
      <tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{powerbonus|??}}}%  
        <td colspan=2><hr size=1></td>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''Cost:'''
      </tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"|  {{{cost|??}}}
      <tr>
+
  |-
        <td nowrap><b>Power:</b></td>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Attraction Bonus]]:'''
        <td>{{{power}}}</td>
+
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{attbonus|??}}}%  
      </tr>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''Limited Edition:'''
      <tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{LimEd|??}}}
        <td nowrap><b>Power Type:</b></td>
+
  |-
        <td>[[{{{powertype}}}]]</td>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Luck]]:'''
      </tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{luck|??}}}  
      <tr>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Crafted:'''
        <td nowrap><b>Power Bonus:</b></td>
+
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{Craft|??}}}
        <td>{{{powerbonus}}}%</td>
+
|-
      </tr>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Cheese Effect]]:'''
      <tr>
+
| nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{chzeffect|??}}}
        <td nowrap><b>Attraction Bonus:</b></td>
+
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Smashable:'''
        <td>{{{attbonus}}}%</td>
+
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{Smash|??}}}
      </tr>
+
  |-
      <tr>
+
| nowrap align="left" style="border-style: solid; border-width:  2px 0 2px 2px" | '''Larry's Loot Lexicon:'''
        <td nowrap><b>Luck:</b></td>
+
| 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=??}}
        <td>{{{luck}}}</td>
+
| nowrap align="left" style="border-style: solid; border-width:  2px 0 2px 1px"| '''Image:'''
      </tr>
+
| nowrap align="right" style="border-style: solid; border-width:  2px 2px 2px 0"| {{if|{{{imglink|}}}|[{{{imglink}}} External Link]|{{{altimglink|??}}}}}
      <tr>
+
  |-
        <td nowrap><b>Cheese Effect:</b></td>
+
  | colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
        <td>{{{chzeffect}}}</td>
+
|}
      </tr>
 
      <tr>
 
        <td colspan=2><hr size=1></td>
 
      </tr>
 
      <tr>
 
        <td nowrap><b>Image:</b></td>
 
        <td>[{{{imglink}}} External Link]</td>
 
      </tr>
 
      </table></td>
 
</tr>
 
</table>
 
</td></tr></table>
 
  
<noinclude><br clear=all>
+
<noinclude>
 
+
<br clear=all>
== Usage ==
+
{{Template:Weapon/docs}}
Simple table template to maintain consistency between [[Trap]] pages. All fields are required.
+
</noinclude>
 
 
<pre>{{ Trap
 
| name      =
 
| cost      =
 
| pointsreq  =
 
| power      =
 
| powertype  =
 
| powerbonus =
 
| attbonus  =
 
| luck      =
 
| chzeffect  =
 
| imglink    =
 
}}</pre>
 
  
== Notes ==
+
{{if|{{NAMESPACE}}||[[Category:{{{powertype}}} Weapons]]
Use numbers only for Bonus fields; the % is added automatically by the template.
+
[[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__}}
  
</noinclude>
+
{{-}}

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.