Модуль:Loc/Marking: различия между версиями
Pok (обсуждение | вклад) мНет описания правки Метка: ручная отмена |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 129: | Строка 129: | ||
local indent = mw.ustring.len(leading or "") | local indent = mw.ustring.len(leading or "") | ||
local level = math.floor(indent / 2) | local level = math.floor(indent / 2) | ||
local stars = string.rep(' | local stars = string.rep('#', 1 + level) | ||
processed = stars .. (rest ~= "" and (" " .. rest) or "") | processed = stars .. (rest ~= "" and (" " .. rest) or "") | ||
table.insert(out_lines, processed) | table.insert(out_lines, processed) | ||