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

нет описания правки
(Новая страница: «local p = {} -- массив со всеми сплешами. сплеш может быть строкой или функцией возращающую строку local splash_texts = { "kraskaska was here", "powered by mediawiki", "こんにちは", function() return os.date("%Y").." is the year of Linux desktop!" end, "create your own european union" } function p.get_splash() local splash = splash_texts[math.random(1, #splash_texts)] if t...»)
 
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
local p = {}
local p = {}
 
math.randomseed( os.clock() )
-- массив со всеми сплешами. сплеш может быть строкой или функцией возращающую строку
-- массив со всеми сплешами. сплеш может быть строкой или функцией возращающую строку
local splash_texts = {
local splash_texts = {
"kraskaska was here",
--"kraskaska was here",
"powered by mediawiki",
--"powered by mediawiki",
"こんにちは",
--"こんにちは",
function()
--function()
return os.date("%Y").." is the year of Linux desktop!"
-- return os.date("%Y").." is the year of Linux desktop!"
end,
--end,
"create your own european union"
"create your own european union"
}
}