2025 RationalWiki 'Oregon Plan' Fundraiser

There is no RationalWiki without you. We are a small non-profit with no staff—we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity.

Fighting pseudoscience isn't free.
We are 100% user-supported! Help and donate $5, $10, $20 or whatever you can today with PayPal Logo.png!
Donations so far: $7608.77Goal: $10000

Module:Goat

From RationalWiki
Jump to navigation Jump to search

Usage[edit]

{{#invoke:Goat|hello}}


-- This is just a test which produces the same as Template:Goat
local p = {} --p stands for package

function p.hello( frame )
	local choices = {
		[1] = "[[File:Hornygoat.JPG|200px]]",
		[2] = "[[File:Goatride.jpg|200px]]",
		[3] = "[[File:Goat.jpg|200px]]",
	}
	math.randomseed(os.time())
	local str = "<div style='width: 300px; margin: 1em auto; text-align: center; font-size: 30px;'>" .. choices[math.random(3)] .. "<br/><br/>[[Goat|Goat!]]</div>"
	return str
end

return p