10.754
redigeringer
Lasse (diskussion | bidrag) No edit summary |
Lasse (diskussion | bidrag) No edit summary |
||
| Linje 230: | Linje 230: | ||
local stykbeskrivelse = stykke | local stykbeskrivelse = stykke | ||
if (string.match(stykke, ",") ) then | if (string.match(stykke, ",") ) then | ||
local text = '' | local text = '' | ||
for k in mw.text.gsplit( stykke, ',', plain ) do | for k in mw.text.gsplit( stykke, ',', plain ) do | ||
-- check k contains chars (ikke tomt efter sidste komma) | |||
text = text .. ' 1 ' | text = text .. ' 1 ' | ||
end | end | ||
return stykke .. 'stykke har , ' .. text | -- return stykke .. 'stykke har , ' .. text | ||
end | end | ||