Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/AngryBiceps
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {}; p.nahodneFakty = function(frame) local pocetFaktov = 4 zaciatok = [[<div style="float: right; margin:0.5em 0.5em 0.5em 1.5em; border: 1px solid #c2dfff; padding:1px; margin-bottom:5px; background-color: #f5faff;">]] local fakty = { "Text1", "Text2", "Text3", "Text4", "Text5", "Text6", "Text7", "Text8",} local faktyObrazok = { "Text1", "Text2", "Text3", "Text4", } local obrazok = { "[[File:TEPLAREN-lowres-1008.jpg|150px|Jurkovičova Tepláreň]]", "[[File:TEPLAREN-lowres-1008.jpg|150px|Jurkovičova Tepláreň]]", "[[File:TEPLAREN-lowres-1008.jpg|150px|Jurkovičova Tepláreň]]", "[[File:TEPLAREN-lowres-1008.jpg|150px|Jurkovičova Tepláreň]]",} math.randomseed(os.time()) local vystupFakty = {} for p = pocetFaktov, 1, -1 do i=#fakty local j = math.random(i) fakty[i], fakty[j] = fakty[j], fakty[i] table.insert(vystupFakty, fakty[i]) end return zaciatok, obrazok[1] .. "</div>", dump(vystupFakty) end function dump(o) if type(o) == 'table' then local s = '<br>' for k,v in pairs(o) do s = s .. '<br>' .. (v) end return s else return tostring(o) end end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Sandbox/AngryBiceps/doc
(
edit
)