Template:ClassMatrix: Difference between revisions
No edit summary |
No edit summary |
||
Line 39: | Line 39: | ||
}} | }} | ||
{{#def:MATRIX|{{#lua: | |||
local input = stdin:match("%S+"); | |||
local xaxis = string.match(input, "%S+&&(%w+)&&%S+"); | |||
local yaxis = string.match(input, "%S+&&%w+&&(%S+)"); | |||
local all = string.match(input, "(%S+)&&%w+&&%S+"); | |||
print (xaxis); | |||
|{{#var:ALL}}&&{{#var:X-AXIS}&&{{#var:Y-AXIS}} | |||
}} | |||
}} | |||
<!--- | |||
{{#var:X-AXIS}} | {{#var:X-AXIS}} | ||
<BR> | <BR> | ||
{{#var:Y-AXIS}} | {{#var:Y-AXIS}} | ||
---> | |||
{| class=wikitable | {| class=wikitable | ||
|- | |- | ||
! | |||
{{#repeat:ClassMatrix/CreateHeader|1|{{#var:Y-AXIS}}}} | {{#repeat:ClassMatrix/CreateHeader|1|{{#var:Y-AXIS}}}} | ||
|- | |- | ||
|} | |} |
Revision as of 07:21, 18 December 2008
{{#def:MATRIX|{{#lua:
local input = stdin:match("%S+"); local xaxis = string.match(input, "%S+&&(%w+)&&%S+"); local yaxis = string.match(input, "%S+&&%w+&&(%S+)"); local all = string.match(input, "(%S+)&&%w+&&%S+"); print (xaxis);
|&& }}
{{#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 () | () | ()) |
---|