Module:Module test: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
testing
 
No edit summary
 
Line 5: Line 5:
function p.test( what )
function p.test( what )
nigar = mw.text.jsonDecode('[{"codes":"1F600","char":"😀","name":"grinning face","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"},{"codes":"1F603","char":"😃","name":"grinning face with big eyes","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"}]')
nigar = mw.text.jsonDecode('[{"codes":"1F600","char":"😀","name":"grinning face","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"},{"codes":"1F603","char":"😃","name":"grinning face with big eyes","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"}]')
return nigar
return nigar[1]
end
end


return p
return p

Latest revision as of 08:53, 27 August 2020

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

-- for testing stuff

local p = {}

function p.test( what )
	nigar = mw.text.jsonDecode('[{"codes":"1F600","char":"😀","name":"grinning face","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"},{"codes":"1F603","char":"😃","name":"grinning face with big eyes","category":"Smileys & Emotion (face-smiling)","group":"Smileys & Emotion","subgroup":"face-smiling"}]')
	return nigar[1]
end

return p