Modul:Anchor: Perbedaan revisi
Add class per edit request
Mediawiki>Farras (.) |
Mediawiki>Pppery (Add class per edit request) |
||
Baris 19: | Baris 19: | ||
local ret = {} | local ret = {} | ||
for _, anchor in ipairs(anchors) do | for _, anchor in ipairs(anchors) do | ||
ret[#ret + 1] = '<span id="' .. anchor .. '"></span>' | ret[#ret + 1] = '<span class="anchor" id="' .. anchor .. '"></span>' | ||
end | end | ||
return table.concat(ret) | return table.concat(ret) |