Template:Map/Glycerophospholipid/Expression: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{#def:max|{{#lua: print(math.max({{{1|1}}},{{{2|2}}},{{{3|3}}},{{{4|4}}},{{{5|5}}},{{{6|6}}},{{{7|7}}}))
|}}}}
<table cellpadding="0" cellspacing="1">
<table cellpadding="0" cellspacing="1">
<tr><td colspan="7">max={{#var:max}}</td></tr>
  <tr>
  <tr>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #ff0000; width: 4px; height: 5px">
   <table cellpadding="0" cellspacing="0" style="background-color: #ff0000; width: 4px; height: {{#expr:20*{{{1|1}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #aa0000; width: 4px; height: 20px">
   <table cellpadding="0" cellspacing="0" style="background-color: #aa0000; width: 4px; height: {{#expr:20*{{{2|2}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #888800; width: 4px; height: 15px">
   <table cellpadding="0" cellspacing="0" style="background-color: #888800; width: 4px; height: {{#expr:20*{{{3|3}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #00ff00; width: 4px; height: 3px">
   <table cellpadding="0" cellspacing="0" style="background-color: #00ff00; width: 4px; height: {{#expr:20*{{{4|4}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #008888; width: 4px; height: 20px">
   <table cellpadding="0" cellspacing="0" style="background-color: #008888; width: 4px; height: {{#expr:20*{{{5|5}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #0000aa; width: 4px; height: 0px">
   <table cellpadding="0" cellspacing="0" style="background-color: #0000aa; width: 4px; height: {{#expr:20*{{{6|6}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>
   </td>
   </td>
   <td valign="bottom">
   <td valign="bottom">
   <table cellpadding="0" cellspacing="0" style="background-color: #0000ff; width: 4px; height: 14px">
   <table cellpadding="0" cellspacing="0" style="background-color: #0000ff; width: 4px; height: {{#expr:20*{{{7|7}}}/{{#var:max}}}}px">
     <tr><td> </td></tr>
     <tr><td> </td></tr>
   </table>
   </table>

Revision as of 14:31, 29 June 2009

max={{#lua: print(math.max(1,2,3,4,5,6,7)) |}}
  <table cellpadding="0" cellspacing="0" style="background-color: #ff0000; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #aa0000; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #888800; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #00ff00; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #008888; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #0000aa; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">
  <table cellpadding="0" cellspacing="0" style="background-color: #0000ff; width: 4px; height: Expression error: Unrecognized punctuation character "{".px">

0 5 10 27 (days)