Module:ScriptItem2: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Manual revert
Line 760: Line 760:
local entries = p.getIndexedArgs(frame, data2[1])
local entries = p.getIndexedArgs(frame, data2[1])
for i2, entry in ipairs(entries) do
for i2, entry in ipairs(entries) do
local entry2 = "'''Example "..exampleIndex.." - "..data2[2]..":'''<br>"..p.loadTemplate(frame, 'CodeSyntax', {entry,id='example_'..exampleIndex})
local entry = "'''Example "..exampleIndex.." - "..data2[2]..":'''<br>"..p.loadTemplate(frame, 'CodeSyntax', {entry,id='example_'..exampleIndex})
table.insert(examples, entry2)
table.insert(examples, entry)
exampleIndex = exampleIndex + 1
exampleIndex = exampleIndex + 1
end
end
6,834

edits