Catégorie | ModÚle | Formulaire |
---|---|---|
Text | Text | Text |
Author | Author | Author |
Collection | Collection | Collection |
Keywords | Keywords | Keywords |
Subpage | Subpage | Subpage |
ModĂšle | Formulaire |
---|---|
BrowseTexts | BrowseTexts |
BrowseAuthors | BrowseAuthors |
BrowseLetters | BrowseLetters |
Template:GalleryAuthorsPreviewSmall
Special pages :
Module:NextText
RĂ©vision datĂ©e du 27 octobre 2019 Ă 00:36 par Wikirouge (discussion | contributions) (Page crĂ©Ă©e avec « local p = {} --local p = {} -- p est lâabrĂ©gĂ© de paquet function p.Next( frame ) local title = frame.args[1] if string.match(title, ".+%([0-9]+%)") ~= nil then lo... »)
La documentation pour ce module peut ĂȘtre crĂ©Ă©e Ă Module:NextText/doc
local p = {} --local p = {} -- p est lâabrĂ©gĂ© de paquet
function p.Next( frame )
local title = frame.args[1]
if string.match(title, ".+%([0-9]+%)") ~= nil then
local _, _, a, b = string.find(title, "(.+%()([0-9]+)")
b = tostring(tonumber(b)+1)
return a..b..")"
end
end
function p.Previous( frame )
local title = frame.args[1]
if string.match(title, ".+%([0-9]+%)") ~= nil then
local _, _, a, b = string.find(title, "(.+%()([0-9]+)")
if tonumber(b) >= 1 then
b = tostring(tonumber(b)-1)
return a..b..")"
end
end
end
return p