Difference between revisions of "Template:Charm"

From MHWiki
(Editing category name, to be constant with other pages)
m (Removed "gold")
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>== Sample ==
+
<noinclude>== Sample ==</noinclude>
</noinclude>{| align="right" cellpadding="5" width="260" style="border:2px solid #990000; border-top:25px solid #990000; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
+
{| align="left" cellpadding="5" width="800" style="border:2px solid #702554; border-top:25px solid #702554; 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 2px 2px; font-size:125%;" bgcolor=#92527a | {{if|{{{subgroup2|}}}|Categories:|Category:}} {{{subgroup1|}}}{{if|{{{subgroup2|}}}|, {{{subgroup2}}}}}{{if|{{{subgroup3|}}}|, {{{subgroup3}}}}}{{if|{{{subgroup4|}}}|, {{{subgroup4}}}}}
| align="right" | {{{cost|??}}} [[gold]]
+
  |-
|-
+
! colspan="2" width="400" | !! colspan="2" width="400" |
  | '''[[Power]]:'''
+
  |-
| align="right" | {{{power|??}}}
+
! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 1px 2px 2px;" bgcolor=#b57fa1 | Charm Statistics !! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 1px;" bgcolor=#b57fa1 | Charm Info
|-
+
  |-
  | '''[[Power Bonus]]:'''
+
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''[[Power]]:'''
| align="right" | {{{powerbonus|??}}}%
+
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{power|??}}}
  |-
+
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 1px"| '''Cost:'''  
| nowrap | '''[[Attraction Bonus]]:'''
+
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{cost|??}}}  
| align="right" | {{{attbonus|??}}}%
+
  |-  
  |-
+
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''[[Power Bonus]]:'''
  | '''[[Luck]]:'''
+
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{powerbonus|??}}}%  
| align="right" | {{{luck|??}}}
+
  | 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|??}}}
  | '''[[Cheese Effect]]:'''
+
    |-
| align="right" | {{{chzeffect|??}}}
+
  | 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|??}}}%  
  | '''Consumption Upon:'''
+
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Crafted:'''
| align="right" | {{{consumed|??}}}
+
  | nowrap align="right" style="border-style: solid; border-width: 0 2px 0 0"| {{{Craft|??}}}
  |-  
+
  |-
  | colspan=2 | <hr size=1>
+
  | 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|??}}}  
  |  valign=top nowrap | <b>Image:</b>
+
  | nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"| '''Smashable:'''
| align="right" nowrap | [{{{imglink}}} External Link]
+
  | nowrap align="right" style="border-style: solid; border-width: 0 2px 0 0"| {{{Smash|??}}}
|-  
+
  |-
| colspan=2 align="center" | <hr size=1>''{{{desc}}}''
+
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''[[Cheese Effect]]:'''
|}<noinclude><br clear=all>
+
  | 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"| '''Tradeable:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{Trade|??}}}
 +
  |-
 +
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 2px" | '''Consumed Upon:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 1px 0 0" | {{{consumed|??}}}
 +
  | nowrap align="left" style="border-style: solid; border-width: 0 0 0 1px"| '''Giveable:'''
 +
  | nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"|  {{{Give|??}}}
 +
  |-
 +
  | 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}}/item.php?item_type={{{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|{{{imglink|}}}|[{{{imglink}}} External Link]|??}}
 +
  |-  
 +
  | colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
 +
|}
  
 +
<noinclude>
 +
<br clear=all>
 
{{Template:Charm/docs}}
 
{{Template:Charm/docs}}
 +
</noinclude>
  
</noinclude>
+
{{if|{{NAMESPACE}}||[[Category:Charms]]
 +
  {{ifeq|{{{LimEd|}}}|Yes|[[Category:Limited Edition]] [[Category:Charms (Limited Edition)]]}}
 +
  {{ifeq|{{{Craft|}}}|Yes|[[Category:Craftable]] [[Category:Charms (Craftable)]]}}
 +
  {{ifeq|{{{Smash|}}}|Yes|[[Category:Smashable]] [[Category:Charms (Smashable)]]}}
 +
  {{ifeq|{{{Trade|}}}|Yes|[[Category:Tradable]] [[Category:Charms (Tradable)]]}}
 +
  {{ifeq|{{{Give|}}}|Yes|[[Category:Giveable]] [[Category:Charms (Giveable)]]}}
 +
  {{if|{{{imglink|}}}| |[[Category:Missing Image]]}}
 +
  {{if|{{{subgroup1|}}}|[[Category:Charms ({{{subgroup1}}})]]}}
 +
  {{if|{{{subgroup2|}}}|[[Category:Charms ({{{subgroup2}}})]]}}
 +
  {{if|{{{subgroup3|}}}|[[Category:Charms ({{{subgroup3}}})]]}}
 +
  {{if|{{{subgroup4|}}}|[[Category:Charms ({{{subgroup4}}})]]}}
 +
__NOTOC__}}
  
<includeonly>[[Category:Charms]]</includeonly>
+
{{-}}

Latest revision as of 21:23, 27 December 2015

Sample

Charm
Category:
Charm Statistics Charm Info
Power: ?? Cost: ??
Power Bonus: ??% Limited Edition: ??
Attraction Bonus: ??% Crafted: ??
Luck: ?? Smashable: ??
Cheese Effect: ?? Tradeable: ??
Consumed Upon: ?? Giveable: ??
Larry's Loot Lexicon: ?? Image: ??



Usage

Simple table template to maintain consistency between Charms pages. Most fields are required, although subgroup2, subgroup3, and subgroup4 can be omitted as appropriate.

{{ Charm
 | cost       = 
 | power      = 
 | powerbonus = 
 | attbonus   = 
 | luck       = 
 | chzeffect  = 
 | consumed   = 
 | LimEd = 
 | Craft = 
 | Smash = 
 | Trade = 
 | Give = 
 | subgroup1 =
 | subgroup2 =
 | subgroup3 =
 | subgroup4 =
 | 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, Amplifier Charm would list mhinfo = amplifier_trinket.

Learning which subgroup (or groups) a charm belongs to can be done for a charm you currently own, by using the charm selector from the Camp page; or by reading the html source of Larry's Loot Lexicon for the charm and searching for "tags".

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

See more notes in the Manual of Style.