DIV_CLASS_ROW

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


Материал из VEDA Wiki
Перейти к: навигация, поиск
Нет описания правки
Нет описания правки
Строка 30: Строка 30:


function p.mpf3( frame )
function p.mpf3( frame )
   return "MPF3".. frame:callParserFunction{name = "#dpl:", args = {
   return "MPF3".. frame:callParserFunction{name = "#tag:DynamicPageList", [=[
                       namespace  = Tech,
                       namespace  = Tech
                       shownamespace=false,
                       shownamespace=false
                       ordermethod = sortkey,
                       ordermethod = sortkey
                       order      = ascending,
                       order      = ascending
                       redirects  = include,
                       redirects  = include
                       mode        = none
                       mode        = none
                   } }
                   ]=]}
end
end



Версия от 03:34, 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   = Tech
shownamespace=false
ordermethod = sortkey
order       = ascending
redirects   = include
mode        = none
</DynamicPageList>]=])

  for i in string.gmatch(m, "[^Л]+") do
    table.insert(t, i..'XXX')
  end
local mm = frame:preprocess(m)
mm= mm:gsub("T","X")
  return mm
end

function p.mpf3( frame )
  return "MPF3".. frame:callParserFunction{name = "#tag:DynamicPageList", [=[
                      namespace   = Tech
                      shownamespace=false
                      ordermethod = sortkey
                      order       = ascending
                      redirects   = include
                      mode        = none
                   ]=]}
end








return p