Callup from an article...
Code:
[template]framesROW|atk=Chertan Aladlar|cmd=:A:|lvl=:H:|dmg=0|imp=14|grd=-4|hit=0|cnt=4|scr=(?)|nts=[/template]
Contents of Template:framesROW
Code:
[table]
|-
| class="alt2" style="white-space:nowrap" | <small>{{{atk}}}</small>
| class="alt2" style="white-space:nowrap" | <small>{{{cmd}}}</small>
| class="alt2" style="white-space:nowrap" | <small>{{{lvl}}}</small>
| class="alt2" style="white-space:nowrap" | <small>{{{imp}}}</small>
| class="alt2" style="white-space:nowrap" | <small>{{{dmg}}}</small>
| style="color:#000000; background-color:#[if={{{grd}}}==0]CCFFCC[else /][if={{{grd}}}>0]CCCCFF[else /][if={{{grd}}}<0]FFCCCC[else /]FFFFCC[/if]" | <small>{{{grd}}}</small>
| style="color:#000000; background-color:#[if={{{hit}}}==0]CCFFCC[else /][if={{{hit}}}>0]CCCCFF[else /][if={{{hit}}}<0]FFCCCC[else /]FFFFCC[/if]" | <small>{{{hit}}}</small>
| style="color:#000000; background-color:#[if={{{cnt}}}==0]CCFFCC[else /][if={{{cnt}}}>0]CCCCFF[else /][if={{{cnt}}}<0]FFCCCC[else /]FFFFCC[/if]" | <small>{{{cnt}}}</small>
| class="alt2" | <small>{{{scr}}}</small>
| class="alt2" align="right" | <small>[if="{{{nts}}}"]{{{nts}}}[else /]-[/if]</small>
[/table]
You can see several errors if you run this template...
1. dmg=0 - the 0 won't show up, it will just return an empty table cell.
2. grd=-4 - instead of it returning "FFCCCC", it will instead return "[if=-4==0]CCFFCC[else /][if=-4&gt". This same error will come up in with both the hit and cnt fields.
3. change hit=0 to hit=KND - it will assume KND is > 0, instead of it running to the final else.
Bookmarks