FANDOM


local Level = {}
local getArgs = getArgs or require( 'Module:Arguments' ).getArgs
 
local function makePropRow( text, field, search )
    local row = mw.html.create( 'div' ):wikitext( text )
    local isMatch = field:find( search ) ~= nil
 
    if not isMatch then row:addClass( 'text-muted' ) end
 
    return row:done()
end
 
function Level.prop( frame )
    local args = getArgs( frame )
    local field = args['입력']
    local ret = ''
 
    if not field then return '' end
 
    local i = 1
 
    while ( args['이름' .. i] and args['찾기' .. i] ) do
        local text = args['이름' .. i]
        local search = args['찾기' .. i]
        local row = makePropRow( text, field, search )
        ret = ret .. tostring( row )
        i = i + 1
    end
 
    return ret
end
 
return Level

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on FANDOM

Random Wiki