User contributions for Annwan

A user with 1,009 edits. Account created on 12 June 2024.
Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

5 September 2025

  • 13:2713:27, 5 September 2025 diff hist +589 N Module:UŊMAO Created page with "local def, _a do local u = require("Module:Utils") def, _a = u.def, u._a end local _m = {} _m.resource_table = function(frame) local out = [=[<table class="wikitable sortable"><tr><th>Code</th><th>Resource</th><th>Value (in slablets)</th><th>Traded at the Slab Exchange</th></tr>]=] local resources = require("Module:Data/UŊMAO/Resources") for _, v in ipairs(resources) do out = out .. "<tr><td>" .. v.code .. "</td><td>" .. v.name .. "</td><td>" .. v.value ...."
  • 08:4608:46, 5 September 2025 diff hist +1,022 N Module:Data/UŊMAO/Resources Created page with "local def, _a do local u = require("Module:Utils") def, _a = u.def, u._a end local _m = { {code = "XCC", name = "Diamond", value = 32/36, sxg = true}, {code = "XNE", name = "Netherite Ingot", value = 32, sxg = true}, {code = "XPS", name = "Petrified Oak Slab", value = 32, sxg = true}, {code = "XAU", name = "Raw Gold", value = 0.1, sxg = false}, {code = "XEM", name = "Deepslate Emerald Ore", value = 296/3, sxg = false}, {..."
  • 08:3508:35, 5 September 2025 diff hist +799 N Module:Utils/doc Created page with "Utility functions to help creating modules <code>def(value, default)</code> :Returns <code>value</code> if it is not <code>nil</code> or <code>""</code>, and <code>default</code>otherwise <code>_a(arg)</code> :Extracts the argument from the common ways mediawiki passes arguments to modules: :* if <code>arg</code> is not a table, it is returned as is (Called from Lua like a function) :* if <code>arg</code> is a table and that table has a <code>args</code> field, <code>ar..."
  • 08:2408:24, 5 September 2025 diff hist +453 N Module:Utils Created page with "local _m = {} --- Return a if not `nil` or the empty string, or b otherwise _m._def = function(a, b) return (a ~= nil and a ~= "") and a or b end --- Extracts the argument from all the reasonable ways an argument may have been passed _m._a = function (x) if type(x) ~= "table" then return x end -- Did we get a frame if type(x.args) == "table" then return x.args[1] end -- Also support passing the argument in a table return x[1] end return _m"

4 September 2025

2 September 2025

1 September 2025

31 August 2025

23 August 2025

20 August 2025

17 August 2025

13 August 2025

4 August 2025

11 July 2025

7 July 2025

6 July 2025

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)