User contributions for Uraxys
From Idle Clans wiki
24 May 2024
- 11:0711:07, 24 May 2024 diff hist +154 Template:Gold/doc No edit summary current
- 11:0511:05, 24 May 2024 diff hist −167 Module:NumberFormatter No edit summary current
- 11:0411:04, 24 May 2024 diff hist +436 Module:NumberFormatter No edit summary
- 10:5310:53, 24 May 2024 diff hist +78 Template:Gold No edit summary
- 10:3010:30, 24 May 2024 diff hist +117 N User:Uraxys Created page with "Huh, nothing to see here, just testing. Here here, trading an example for {{gold|20000}}! get it before it runs out!"
- 10:2810:28, 24 May 2024 diff hist +369 N Template:Gold/doc Created page with "==Usage== <code><nowiki>{{Gold|<number>}}</nowiki></code> The first parameter must be a number, if it isn't or is empty, then an error message will be displayed. ==Example== {| class="wikitable" style="text-align:center" ! Input ! Output |- |<code><nowiki>{{Gold|64}}</nowiki></code> |{{Gold|1000}} |- |<code><nowiki>{{Gold|200000}}</nowiki></code> |{{Gold|200000}} |}"
- 10:2010:20, 24 May 2024 diff hist +210 N Template:Gold Created page with "<onlyinclude><includeonly>{{#if: {{{1|}}} | 20px|link=Gold {{#invoke:NumberFormatter|formatNumber|{{{1}}}}} | Error: No value specified in gold template. }}</includeonly></onlyinclude>{{/doc}}"
- 10:0010:00, 24 May 2024 diff hist +594 N Module:NumberFormatter Created page with "local p = {} ---Formats a number by adding thousand separators. ---Example: 20000 -> 20,000 function p.formatNumber(frame) local num = tonumber(frame.args[1]) -- Make sure we're working with a number. if not num then return "Error: '" .. frame.args[1] .. "' is not a number." end -- Format the number. local formatted = tostring(num) while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if k..."