Модуль:FetchData7: відмінності між версіями

126 байтів додано ,  У понеділок о 19:50
нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 28: Рядок 28:
      
      
     local sections = {}
     local sections = {}
   
    table.insert(sections, {
        display = "Біографія",
        anchor = "top"
    })
      
      
     for line in mw.ustring.gmatch(content, "[^\n]+") do
     for line in mw.ustring.gmatch(content, "[^\n]+") do
Рядок 62: Рядок 67:
         end
         end
          
          
         table.insert(html_parts, '<div class="l-box-item' .. last_class .. '">[[#' .. section.anchor .. '|' .. section.display .. ']]</div>')
         table.insert(html_parts, '<div class="l-box-item' .. last_class .. '" data-target="' .. section.anchor .. '"><span>' .. section.display .. '</span></div>')
     end
     end