Nonograms Katana Wiki

Are you new to wikis?
Do you have trouble navigating the wiki?
Check this page.

READ MORE

Nonograms Katana Wiki

This module can be used to test various things in Lua. Preferably the code should be deleted after the testing is done, in order to indicate that the testing is done.

See also: Module:Test/doc

Code[]


--This module can be used for testing various things.
-- When testing in console, if parameters work on pages use this:
-- =p.info ( {args={5}} )

local p = {}

p.nonograms = [[\n
PART 27: (last update 31/05/2024  04:46 am)<br>
[#178075:12 Gigantamax Butterfree]
[#119651:Just eat and level up (gangminhyeog)]
[#164639:SkullRose]
[#197727:Dustios]

]]

function p.info ()
	local temp = ''
	local nono = require('Module:Data/MP_nonograms_(easy_other)')
	
	for i = 1, #nono do
		temp = temp .. '\t{\n'
		temp = temp .. '\t\tlink            = "' .. nono[i].link:gsub( '"', '\\"' ) .. '",\n'
		temp = temp .. '\t\tauthor          = "' .. nono[i].author .. '",\n'
		temp = temp .. '\t\tcolor           = "' .. nono[i].color .. '",\n'
		temp = temp .. '\t\teasy_pattern    = "' .. nono[i].easy_pattern .. '",\n'
		temp = temp .. '\t\tlarge_patches   = "' .. nono[i].large_patches .. '",\n'
		temp = temp .. '\t\teasy_start      = "' .. nono[i].easy_start .. '",\n'
		temp = temp .. '\t\tcolor_spotting  = "' .. nono[i].color_spotting .. '",\n'
		temp = temp .. '\t\tfew_colors      = "' .. nono[i].few_colors .. '",\n'
		temp = temp .. '\t\tgenerally_easy  = "' .. nono[i].generally_easy .. '",\n'
		temp = temp .. '\t\tsize            = "' .. nono[i].size .. '",\n'
		temp = temp .. '\t\tdifficulty      = "' .. nono[i].difficulty .. '",\n'
		temp = temp .. '\t\tmp              = "' .. nono[i].mp .. '",\n'
		temp = temp .. '\t\tsolving_time    = {\n\t\t\t\t\t\t\t"",\n\t\t\t\t\t\t  },\n'
		temp = temp .. '\t},\n'
	end
	
	return temp
end

function p.excel()
	local temp = '=SWITCH(C2'
	
	for i = 5, 128 do
		temp = temp .. ",'Enemy names'!$B$" .. i .. ",'Enemy names'!$D$" .. i
	end
	
	for i = 5, 54 do
		temp = temp .. ",'Enemy names'!$G$" .. i .. ",'Enemy names'!$I$" .. i
	end
	
	for i = 5, 20 do
		temp = temp .. ",'Enemy names'!$K$" .. i .. ",'Enemy names'!$P$" .. i
	end
	
	return temp..",0)"
end

return p