DIV_CLASS_ROW

Модуль: MP: различия между версиями 🔗


Материал из VEDA Wiki
Перейти к: навигация, поиск
Нет описания правки
Метка: ручная отмена
Нет описания правки
Строка 10: Строка 10:
function p.mpf2( frame )
function p.mpf2( frame )
-- thankx https://warframe.fandom.com/es/wiki/M%C3%B3dulo:DependencyGraph
-- thankx https://warframe.fandom.com/es/wiki/M%C3%B3dulo:DependencyGraph
   local t= mw.getCurrentFrame():preprocess([=[<DynamicPageList>
local t ={}
   local m= mw.getCurrentFrame():preprocess([=[<DynamicPageList>
category            =
category            =
namespace =
namespace =
Строка 17: Строка 18:
redirects = include
redirects = include
offset    = 2
offset    = 2
</DynamicPageList>]=])
</DynamicPageList>]=])
mw.log(t)


   return t[1]
  for i in m do
    table.insert(t, i..'XXX')
  end
   return table.concat(t, '!!')
end
end




return p
return p

Версия от 01:02, 18 октября 2024

Для документации этого модуля может быть создана страница Модуль:MP/doc

local p = {}


function p.mpf( frame )
--  return ' is a [[' .. mw.site.namespaces[3000].name .. ':stub|stub]]. You can help ' .. mw.site.siteName .. ' by ['
  return #mw.site.namespaces[3000]
end


function p.mpf2( frame )
-- thankx https://warframe.fandom.com/es/wiki/M%C3%B3dulo:DependencyGraph
local t ={}
  local m= mw.getCurrentFrame():preprocess([=[<DynamicPageList>
category             =
namespace =
ordermethod = sortkey
order                = ascending
redirects = include
offset    = 2
</DynamicPageList>]=])

  for i in m do
    table.insert(t, i..'XXX')
  end
  return table.concat(t, '!!')
end


return p