Module:Miscellaneous

-- local p = {}

local skinData = mw.loadData('Module:SkinData/data') local lib      = require('Module:Feature') -- local FN       = require('Module:Filename') -- local IL       = require('Module:ImageLink') -- local userError = require('Dev:User error')

function p.test(frame) local args; if frame.args == nil then args = lib.arguments(frame) else args = lib.arguments(frame.args) end local titleobject = mw.title.new(args[1]):getContent

local championtable = {} for x in pairs(skinData) do       table.insert(championtable, x)    end table.sort(championtable) local s = '' local search = "Ornn" for _, championname in pairs(championtable) do       local count  = 0 local result = "" local i     = 1 while i < #titleobject do           result = string.find(titleobject, championname, i)            if result == nil and count == 0 then result = "not found" break elseif result == nil then break else count = count + 1 i    = tonumber(result) + 1 end end s = s .. championname .. ": " .. count .. "\n" end return s end return p

-- --