Difference between revisions of "Template:Base"

From MHWiki
(Sorry, man, but I just can't stand the side border AND the colored heading - just doesn't look right.)
m
(31 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<table cellpadding=20 cellspacing=0 align=right><tr><td>
+
<noinclude>== Sample ==</noinclude>  
<table border=1 width=260 cellpadding=4 cellspacing=0 align=center>
 
<tr>
 
  <td><table border=0 width=100% align=center cellpadding=4>
 
      <tr bgcolor=#9cf>
 
        <th colspan=2 nowrap>{{PAGENAME}}</th>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>Cost:</b></td>
 
        <td>{{{cost}}} [[gold]]</td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Points|Points Required]]:</b></td>
 
        <td>{{{pointsreq}}}</td>
 
      </tr>
 
      <tr>
 
        <td colspan=2><hr size=1></td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Power]]:</b></td>
 
        <td>{{{power}}}</td>
 
      </tr>
 
      <tr>
 
        <td valign=top valign=top nowrap><b>[[Power Bonus]]:</b></td>
 
        <td>{{{powerbonus}}}%</td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Attraction Bonus]]:</b></td>
 
        <td>{{{attbonus}}}%</td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Luck]]:</b></td>
 
        <td>{{{luck}}}</td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>[[Cheese Effect]]:</b></td>
 
        <td>{{{chzeffect}}}</td>
 
      </tr>
 
      <tr>
 
        <td colspan=2><hr size=1></td>
 
      </tr>
 
      <tr>
 
        <td valign=top nowrap><b>Image:</b></td>
 
        <td>[{{{imglink}}} External Link]</td>
 
      </tr>
 
      </table></td>
 
</tr>
 
</table>
 
</td></tr></table>
 
  
<noinclude><br clear=all>
+
{| align="left" cellpadding="5" width="800" style="border:2px solid #330066; border-top:25px solid #330066; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
 +
  |-
 +
! colspan="4" style="font-size:150%;" | {{PAGENAME}}
 +
  |-
 +
! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 1px 2px 2px;"  bgcolor=lightblue | Base Statistics !! colspan="2" width="400" style="border-style: solid; font-size:110%; border-width: 2px 2px 2px 1px;"  bgcolor=lightblue | Base Info
 +
  |-
 +
| 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|??}}} 
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 1px"|  '''[[Title|Title Required]]:'''
 +
| 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|??}}}
 +
|-
 +
| nowrap align="left" style="border-style: solid; border-width:  0 0 0 2px" | '''[[Cheese Effect]]:'''
 +
| 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:'''
 +
| nowrap align="right" style="border-style: solid; border-width:  0 2px 0 0"| {{{Smash|??}}}
 +
  |-
 +
| 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]|{{{altimglink|??}}}}}
 +
  |-
 +
| colspan="4" align="center" style="font-size:110%; padding:10px;" | {{{desc|}}}
 +
|}
  
 +
<noinclude>
 +
<br clear=all>
 
{{Template:Base/docs}}
 
{{Template:Base/docs}}
 +
</noinclude>
  
</noinclude>
+
{{if|{{NAMESPACE}}||[[Category:Bases]]
 +
  {{ifeq|{{{LimEd|}}}|Yes|[[Category:Limited Edition]] [[Category:Bases (Limited Edition)]]}}
 +
  {{ifeq|{{{Craft|}}}|Yes|[[Category:Craftable]] [[Category:Bases (Craftable)]]}}
 +
  {{ifeq|{{{Smash|}}}|Yes|[[Category:Smashable]] [[Category:Bases (Smashable)]]}}
 +
  {{if|{{{imglink|}}}||{{if|{{{altimglink|}}}||[[Category:Missing Image]]}}}}
 +
__NOTOC__}}
  
<includeonly>[[Category:Gameplay]]
+
{{-}}
[[Category:Bases]]</includeonly>
 

Revision as of 15:14, 8 July 2021

Sample

Base
Base Statistics Base Info
Power: ?? Title Required: ??
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.

{{ Base
 | title       = 
 | pointsreq  = 
 | power      = 
 | powerbonus = 
 | attbonus   = 
 | luck       = 
 | chzeffect  = 
 | LimEd  =
 | Craft  =
 | Smash  =
 | 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, Aqua Base would list mhinfo = aqua_base.

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

See more notes in the Manual of Style.