Template:ClassMatrix: Difference between revisions
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
}} | }} | ||
{{#def:MATR| | |||
{{#lua: | {{#lua: | ||
local input = stdin:match(".+"); | local input = stdin:match(".+"); | ||
| Line 63: | Line 64: | ||
|{{#var:X-AXIS}}&&{{#var:Y-AXIS}}&&{{#var:ALL}} | |{{#var:X-AXIS}}&&{{#var:Y-AXIS}}&&{{#var:ALL}} | ||
}} | |||
}} | }} | ||
{| class=wikitable | {| class=wikitable | ||
| Line 74: | Line 72: | ||
! | ! | ||
{{#repeat:ClassMatrix/CreateHeader|1|{{#var:Y-AXIS}}}} | {{#repeat:ClassMatrix/CreateHeader|1|{{#var:Y-AXIS}}}} | ||
| | {{#repeat:ClassMatrix/CreateRows|1|{{#var:MATR}}}} | ||
|} | |} | ||
Revision as of 20:17, 18 December 2008
| {{#lua:}}! ({{{1}}} () | {{{1}}} () | for (id in stdin:gmatch("%w+") do) | {{{1}}} () | {{{1}}} () | {{{1}}} () | {{{1}}} () | end () | end () | table.sort(T); () | {{{1}}} () | {{{1}}} () | print(k (.. " " .. H[k]);) | end () | () | ()) | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{#lua:}}|- | {{{1}}} | |||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| for id in string.gmatch(all,"(%S+)") do | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| end | ||||||||||||||||
| end | ||||||||||||||||
| for x,v in string.gmatch(xaxis, "(%S+) (%S+)") do | ||||||||||||||||
| for y,v in string.gmatch(yaxis, "(%S+) (%S+)") do | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| then print("0 "); | ||||||||||||||||
| else print(M[x][y] .. " "); | ||||||||||||||||
| end | ||||||||||||||||
| end | ||||||||||||||||
| print("\n"); | ||||||||||||||||
| end | ||||||||||||||||
| ' | ||||||||||||||||
| ' | ||||||||||||||||
| '''' |