Module:Creatures/doc: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 August 2025

  • curprev 00:5300:53, 29 August 2025 Imahero talk contribs 542 bytes +542 Created page with "This module is meant to be loaded by other modules. For example: <syntaxhighlight lang=lua> local p = {} function p.test(frame) return creatureTest() end function creatureTest(items) local items = loadData("Creatures") local result = "" for k, v in pairs(items) do result = result .. k .. "'s attack is " .. v["attack"] .. ", " end result = result:sub(1, -3) return result end function loadData(name) if mw.title.new(name, 828).exists then return mw.loadData("..."