×
Create a new article
Write your page title here:
We currently have 1 article on Test2 Wiki. Type your article name above or create one of the articles listed here!



    Test2 Wiki

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

    local getArgs = require('Dev:Arguments').getArgs
    
    local m = {}
    
    function m.FormatPrice(f)
    	local priceStr = getArgs(f).Price and getArgs(f).Price:match("[%d,]+") and getArgs(f).Price:gsub(",","") or getArgs(f).Price
    	for price in priceStr:gmatch("%d+") do
    		priceStr = priceStr:gsub(price, '<span class="kip">'..price:reverse():gsub("(%d%d%d)", "%1,"):gsub(",$", ""):reverse().."</span>")
    	end
    	return priceStr
    end
    
    return m
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Alexender • 2 months ago
  • Fjalon • 2 months ago
  • Fjalon • 2 months ago
  • Fjalon • 2 months ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.