Line 103: |
Line 103: |
| return format_lua(lua) | | return format_lua(lua) |
| end | | end |
− | else
| |
− | return key
| |
| end | | end |
| end | | end |
Line 203: |
Line 201: |
| end | | end |
| else | | else |
− | return arg | + | return args.format == "table" and ("|" .. arg .. "\n") or arg |
| end | | end |
| end | | end |
Line 255: |
Line 253: |
| mw.log( | | mw.log( |
| Calc.format(nil, { | | Calc.format(nil, { |
− | "!Nagato/Kai Ni:_hp = 1", | + | format = "table", |
− | --"!_level = 99", | + | "!Nagato/Kai Ni", |
− | --"!_accuracy = 10", | + | "!_level ~ 99", |
− | --"!!Destroyer Ro-Class", | + | "!_accuracy ~ 10", |
− | "?hp" | + | "!!Destroyer Ro-Class", |
| + | "?link", |
| + | "?level", |
| + | "??link", |
| + | "?test", |
| + | "Some text..." |
| }) | | }) |
| ) | | ) |