Template:ClassMatrix: Difference between revisions
No edit summary |
No edit summary |
||
| Line 53: | Line 53: | ||
end | end | ||
end | end | ||
local strFst = string.sub({{{1}}}, 1, {{#expr:{{{2}}}-1}} ); | |||
---local strNxt = string.sub({{{1}}}, {{#expr:{{{3}}}+1}}, {{#expr:{{{4}}}-1}}); | ---local strNxt = string.sub({{{1}}}, {{#expr:{{{3}}}+1}}, {{#expr:{{{4}}}-1}}); | ||
---local strLst = string.sub({{{1}}}, {{#expr:{{{5}}}+1}}, string.len({{{1}}})); | ---local strLst = string.sub({{{1}}}, {{#expr:{{{5}}}+1}}, string.len({{{1}}})); | ||
| Line 61: | Line 61: | ||
if (M[x][y] == nil) | if (M[x][y] == nil) | ||
then str = str .. " 0 dummy"; | then str = str .. " 0 dummy"; | ||
else str = str .. " " .. M[x][y] .. " | else str = str .. " " .. M[x][y] .. " " ... strFst; | ||
end | end | ||
end | end | ||
Revision as of 22:39, 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 | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| for x,v in string.gmatch(xaxis, "(%S+) (%S+)") do | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| for y,v in string.gmatch(yaxis, "(%S+) (%S+)") do | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| {{{1}}} | ||||||||||||||||
| end | ||||||||||||||||
| end | ||||||||||||||||
| print(str); | ||||||||||||||||
| end | ||||||||||||||||
| ' | ||||||||||||||||
| ' | ||||||||||||||||
| '''' |