Módulo:Book: diferenças entre revisões

[edição verificada][edição verificada]
Conteúdo apagado Conteúdo adicionado
-- Predefinição:EXISTBASEPAGENAME local getExistingBasePageName = function ( page ) ...
m if not page or page == '' then page = mw.title.getCurrentTitle().text end
Linha 31:
-- [[Predefinição:EXISTBASEPAGENAME]]
local getExistingBasePageName = function ( page )
localif text =not page or mw.title.getCurrentTitle().textpage == '' then
local parts page = mw.texttitle.splitgetCurrentTitle( ).text, '/', true )
end
local parts = mw.text.split( page, '/', true )
for i = #parts-1, 1, -1 do
local base = table.concat( parts, '/', 1, i )