Модуль: MP: различия между версиями 🔗
Материал из VEDA Wiki
Sphynkx (обсуждение | вклад) Нет описания правки |
Sphynkx (обсуждение | вклад) Нет описания правки |
||
Строка 3: | Строка 3: | ||
function p.mpf( frame ) | function p.mpf( frame ) | ||
local t = {} | |||
for i in mw.site.namespaces[{id=0, hasSubpages=true}] do | |||
table.insert(t, i..'XX') | |||
end | |||
return table.sort(t) | return table.sort(t) | ||
end | end |
Версия от 00:20, 18 октября 2024
Для документации этого модуля может быть создана страница Модуль:MP/doc
local p = {}
function p.mpf( frame )
local t = {}
for i in mw.site.namespaces[{id=0, hasSubpages=true}] do
table.insert(t, i..'XX')
end
return table.sort(t)
end
function p.mpf2( frame )
-- thankx https://warframe.fandom.com/es/wiki/M%C3%B3dulo:DependencyGraph
return mw.getCurrentFrame():preprocess([=[<DynamicPageList>
category =
namespace =
ordermethod = sortkey
order = ascending
redirects = include
offset = 2
</DynamicPageList>]=])
end
return p