You may also check out our sister site SoyPlace.


As you might already know, archive.today (also known as archive.is, archive.ph and a variety of other mirror domains) is being investigated by the FBI and might be taken down soon. Please rearchive any archive.today link you find on SNCApedia on Megalodon.jp, then add said Megalodon.jp links to the articles. Faggot (talk) 23:14, 6 November 2025 (UTC)


The site might go down sometimes, Gold is doing some stuff. Faggot (talk) 21:59, 9 December 2025 (UTC)

Module:Yesno

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search

Documentation for this module may be created at Module:Yesno/doc

-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.

return function (val, default)
	-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
	-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
	-- following line.
	val = type(val) == 'string' and val:lower() or val
	if val == nil then
		return nil
	elseif val == true 
		or val == 'yes'
		or val == 'y'
		or val == 'true'
		or val == 't'
		or val == 'on'
		or tonumber(val) == 1
	then
		return true
	elseif val == false
		or val == 'no'
		or val == 'n'
		or val == 'false'
		or val == 'f'
		or val == 'off'
		or tonumber(val) == 0
	then
		return false
	else
		return default
	end
end