Template:Enemy: Difference between revisions

m Cleanup
major expansion update
Line 1: Line 1:
{| width=290px style="font-family: verdana; padding: 6px; margin: 0 0 1em 1em; font-size: 10px; background-color: #ffffff; color:black; border:1px solid #8888aa;float:{{#if: {{{float|}}} | {{{float}}} | right }};"
{| width=290px style="font-family: verdana; padding: 6px; margin: 0 0 1em 1em; font-size: 10px; background-color: #ffffff; color:black; border:1px solid #8888aa; {{#if: {{{float|}}} | float:{{{float}}}; clear:{{{float}}} | float:right; clear:right; }}"
|-
|-
| style="border: 1px black solid;" align=center colspan=2|{{{image}}}
| style="border: 1px black solid; text-align:center;" colspan="2" | {{{image}}}
|- style=background:#ccccff
|- style="background-color:#CCCCFF;"
| align=center colspan=2 style=background:green;|<font color=white size="2">'''{{{name}}}'''</font>
| colspan="2" style="background-color:green; color:white; text-align:center; font-size:120%;" |'''{{{name}}}'''
|-  
|-  
| style=background:green; white-space:nowrap width:110px|<font color=white>Game Appearance</font>
| style="background-color:green; white-space:nowrap; width:110px; color:white;"| Game Appearance
| style="border: 1px black solid;"|{{{game}}}{{#if: {{{romanji|}}} | <nowiki />
| style="border: 1px black solid;" | {{{game}}}
{{!}}-
 
{{!}} style=background:green; white-space:nowrap width:110px {{!}} <font color=white>Romanji</font>
<!-- Begin if statements for optional parameters -->
{{#if: {{{romanji|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Romanji
{{!}} style="border: 1px black solid;" {{!}} {{{romanji}}} }}
{{!}} style="border: 1px black solid;" {{!}} {{{romanji}}} }}
|-
| style=background:green; white-space:nowrap width:110px|<font color=white>HP</font>
| style="border: 1px black solid;"|{{{hp}}}
|-
|-
| style=background:green; white-space:nowrap|<font color=white>Exp. Gained</font>
| style="background-color:green; white-space:nowrap; width:110px; color:white;" | HP
| style="border: 1px black solid;"|{{{experience}}}
{{#if: {{{hp|}}} |  
|-  
{{!}} style="border: 1px black solid;" {{!}} {{{hp}}} |
|style=background:green; white-space:nowrap|<font color=white>Gold Gained</font>
{{!}} style="border: 1px black solid;" {{!}} ??? }}
| style="border: 1px black solid;"|{{{gold}}}{{#if: {{{droppedItems|}}} | <nowiki />
{{#if: {{{mp|}}} | {{!}}-
{{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} MP
{{!}} style=background:green; white-space:nowrap width:110px {{!}} <font color=white>Dropped Items</font>
{{!}} style="border: 1px black solid;" {{!}} {{{mp}}} }}
{{!}} style="border: 1px black solid;" {{!}} {{{droppedItems}}} }}{{#if: {{{skills|}}} | <nowiki />
{{#if: {{{attack|}}} | {{!}}-
{{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Attack
{{!}} style=background:green; white-space:nowrap width:110px {{!}} <font color=white>Skills</font>
{{!}} style="border: 1px black solid;" {{!}} {{{attack}}} }}
{{!}} style="border: 1px black solid;" {{!}} {{{skills}}} }}{{#if: {{{spells|}}} | <nowiki />
{{#if: {{{defense|}}} | {{!}}-
{{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Defense
{{!}} style=background:green; white-space:nowrap width:110px {{!}} <font color=white>Spells</font>
{{!}} style="border: 1px black solid;" {{!}} {{{defense}}} }}
{{!}} style="border: 1px black solid;" {{!}} {{{spells}}} }}{{#if: {{{description|}}} | <nowiki />
{{#if: {{{agility|}}} | {{!}}-
{{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Agility
{{!}} style=background:green; white-space:nowrap width:110px {{!}} <font color=white>Description</font>
{{!}} style="border: 1px black solid;" {{!}} {{{agility}}} }}
{{#if: {{{experience|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Experience
{{!}} style="border: 1px black solid;" {{!}} {{{experience}}} }}
{{#if: {{{gold|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Gold
{{!}} style="border: 1px black solid;" {{!}} {{{gold}}} }}
{{#if: {{{droppedItem|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Dropped Item
{{!}} style="border: 1px black solid;" {{!}} {{{droppedItem}}} }}
{{#if: {{{skills|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Skills
{{!}} style="border: 1px black solid;" {{!}} {{{skills}}} }}
{{#if: {{{spells|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Spells
{{!}} style="border: 1px black solid;" {{!}} {{{spells}}} }}
{{#if: {{{family|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Family
{{!}} style="border: 1px black solid;" {{!}} {{{family}}} }}
{{#if: {{{bestiaryNumber|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Bestiary #
{{!}} style="border: 1px black solid;" {{!}} {{{bestiaryNumber}}} }}
{{#if: {{{captureRate|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Capture Rate
{{!}} style="border: 1px black solid;" {{!}} {{{captureRate}}} }}
{{#if: {{{description|}}} | {{!}}-
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Description
{{!}} style="border: 1px black solid;" {{!}} {{{description}}} }}
{{!}} style="border: 1px black solid;" {{!}} {{{description}}} }}
|-
{{#if: {{{locations|}}} | {{!}}-
|style=background:green; white-space:nowrap|<font color=white>Location</font>
{{!}} style="background-color:green; white-space:nowrap; width:110px; color:white;" {{!}} Locations
| style="border: 1px black solid;"|{{{location}}}
{{!}} style="border: 1px black solid;" {{!}} {{{locations}}} }}
|}<noinclude>
 
 
|}
<noinclude>
{| style="float: bottom;"
{| style="float: bottom;"
|
|
Line 45: Line 73:
|romanji=
|romanji=
|hp=
|hp=
|mp=
|attack=
|defense=
|agility=
|experience=
|experience=
|gold=
|gold=
|droppedItems=
|droppedItem=
|skills=
|skills=
|spells=
|spells=
|family=
|bestiaryNumber=
|captureRate=
|description=
|description=
|location=
|locations=
|}}
|}}
</pre>
</pre>
Line 57: Line 92:
The float parameter corresponds to the CSS float property which should be 'left', 'right', or 'none'.  The default is 'right'.
The float parameter corresponds to the CSS float property which should be 'left', 'right', or 'none'.  The default is 'right'.


Note that romanji, droppedItems, skills, and spells will be hidden if not passed a value.
Note image, name, and game appearance are the only 'required' fields.
</noinclude>
</noinclude>