יחידה:Sister project links: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 161: | שורה 161: | ||
end | end | ||
local i = 2 | local i = 2 | ||
local additionalArg = mw.ustring.format('%s %i', proj['arg'], i) | |||
local t = projectsTemplate[proj['template']] | while args[additionalArg] do | ||
t['pageName'] = args[ | local t = mw.clone( projectsTemplate[proj['template']] ) | ||
t['pageDisplay'] = args['שם ' | t['pageName'] = args[additionalArg] | ||
t['pageDisplay'] = args[mw.ustring.format('שם %s %i', proj['arg'], i)] or t['pageName'] | |||
table.insert(projectLinks, t) | table.insert(projectLinks, t) | ||
i=i+1 | i=i+1 | ||
additionalArg = mw.ustring.format('%s %i', proj['arg'], i) | |||
end | end | ||
end | end | ||