יחידה:תבנית מידע: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 162: | שורה 162: | ||
function _infobox() | function _infobox() | ||
removeEmptyHeaders() | removeEmptyHeaders() | ||
root = mw.html.create('table') | root = mw.html.create('table') | ||
root:addClass('infobox'):css('width', '22em') | root:addClass('infobox'):css('width', '22em') | ||
| שורה 173: | שורה 174: | ||
end | end | ||
renderEditLinks() | renderEditLinks() | ||
return tostring(root) | |||
local res='<pre>' | |||
for k,v in pairs(templateStructure) do | |||
res = res..'\n|*'..k..'* - '..(v.label or '')..'='..(v.data or '') | |||
end | |||
res=res..'</pre>' | |||
return res | |||
--return tostring(root) | |||
end | end | ||