Template:Element: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
m (Fix margin again)
m (Fix ending tags for table headers)
Line 1: Line 1:
<table class="wikitable" style="float: right; clear: both; width: 22em; font-size: 88%; margin: 0 0 1em 1em">
<table class="wikitable" style="float: right; clear: both; width: 22em; font-size: 88%; margin: 0 0 1em 1em">
<tr><th colspan=2>'''{{PAGENAME}}'''</td></tr>
<tr><th colspan=2>'''{{PAGENAME}}'''</th></tr>
{{#if: {{{picture|}}} | <tr><td colspan=2 style="text-align: center"><div>{{{picture}}}</div>{{{caption|}}}</td></tr> }}
{{#if: {{{picture|}}} | <tr><td colspan=2 style="text-align: center"><div>{{{picture}}}</div>{{{caption|}}}</td></tr> }}
{{#if: {{{zzt-oop name|}}} | <tr><td>'''ZZT-OOP name'''</td><td>{{{zzt-oop name}}}</td></tr> }}
{{#if: {{{zzt-oop name|}}} | <tr><td>'''ZZT-OOP name'''</td><td>{{{zzt-oop name}}}</td></tr> }}
Line 8: Line 8:
{{#if: {{{category|}}} | <tr><td>'''Category'''</td><td>{{{category}}}</td></tr> }}
{{#if: {{{category|}}} | <tr><td>'''Category'''</td><td>{{{category}}}</td></tr> }}
{{#ifeq: {{{stats|}}} | yes |
{{#ifeq: {{{stats|}}} | yes |
     <tr><th colspan=2>'''Stats'''</td></tr>
     <tr><th colspan=2>'''Stats'''</th></tr>
     {{#if: {{{x-y step|}}} | <tr><td>'''X/Y-step'''</td><td>{{{x-y step}}}</td></tr> }}
     {{#if: {{{x-y step|}}} | <tr><td>'''X/Y-step'''</td><td>{{{x-y step}}}</td></tr> }}
     <tr><td>'''Default cycle'''</td><td>{{{cycle}}}</td></tr>
     <tr><td>'''Default cycle'''</td><td>{{{cycle}}}</td></tr>
Line 21: Line 21:
     <tr><td>'''Stats?'''</td><td>{{{stats}}}</td>
     <tr><td>'''Stats?'''</td><td>{{{stats}}}</td>
}}
}}
<tr><th colspan=2>'''Other traits'''</td></tr>
<tr><th colspan=2>'''Other traits'''</th></tr>
{{#if: {{{score|}}} | <tr><td>'''Score when shot'''</td><td>{{{score}}}</td></tr> }}
{{#if: {{{score|}}} | <tr><td>'''Score when shot'''</td><td>{{{score}}}</td></tr> }}
<tr><td>'''Effect on movement'''</td><td>{{{effect on movement}}}</td></tr>
<tr><td>'''Effect on movement'''</td><td>{{{effect on movement}}}</td></tr>

Revision as of 06:52, 10 June 2020



Element
Internal ID{{{id}}}
Character{{{char}}}
Stats?{{{stats}}}
Other traits
Effect on movement{{{effect on movement}}}
Uses ZZT-OOP color names?{{{uses zzt-oop color}}}

An infobox for ZZT elements.

Top section:

  • picture: Representative image, e.g., [[File:some-element.png]] or [[File:some-element.png|thumb]]
  • caption: Caption for the picture: "Some-element in its natural habitat"
  • zzt-oop name: Name used in ZZT-OOP for #put, #change, etc
  • id: Element's internal ID
  • char: Description of the element's character(s)
  • color: Default color, if the element has one
  • category: Item/Creature/Terrain (not all elements have this)

Stat parameters:

  • stats: yes/no. Must be set to "yes" in order to show stats section.
  • x-y step: X/Y step
  • cycle: The default cycle value for this element
  • p1, p2, p3: Descriptions of how the general-purpose stat fields are used (Intelligence, Deviance, etc)
  • leader, follower: Descriptions of special-purpose centipede fields
  • current instruction: Objects only: program counter/negative bind index
  • data: How the stat's data section is used (scroll text, object program)

Other traits:

  • destructible: Whether element can be destroyed by bullets/bombs
  • effect on movement: One or more of: floor, pushable, squishable, wall
  • uses zzt-oop color: Uses ZZT-OOP color names? yes (Color on black), white on dark color, or default only
  • score: Points given when shot
  • visible in dark: Whether it shows up on dark boards without illumination