From Arms of God Wiki

bot: per-category shim over Module:Core (render-time)
Tag: Replaced
bot: documentation pass — editor-facing docs (data descriptions, module comments, template usage, Help rewrite)
 
Line 1: Line 1:
-- Module:Achievements — per-category shim (Arms of God).
-- Module:Achievements — the Achievements category module.
-- All computation lives in Module:Core (render-time derivation from the
--
-- source Data:Achievements.json); this module only binds the category name.
-- WHAT IT DOES
--  Renders Achievements infoboxes, body sections, cross-references and the
--   category index. This module is intentionally tiny: it only binds
--   the category name and forwards to Module:Core, which computes
--   everything from the source Data:Achievements.json at render time (see
--  that Data page's own `description` for the record fields, and
--  Help:Wiki Editing for the architecture guide). To change HOW
--  Achievements pages render, edit Module:Core; to change the DATA, edit
--  Data:Achievements.json.
local Core = require('Module:Core')
local Core = require('Module:Core')
local p = {}
local p = {}

Latest revision as of 16:04, 10 June 2026

Renders Achievements records from Data:Achievements.json on index and detail pages.

Bot-published: the module and its Data: page are regenerated on re-publish. Restyle via the per-section templates rather than editing page wikitext.


-- Module:Achievements — the Achievements category module.
--
-- WHAT IT DOES
--   Renders Achievements infoboxes, body sections, cross-references and the
--   category index. This module is intentionally tiny: it only binds
--   the category name and forwards to Module:Core, which computes
--   everything from the source Data:Achievements.json at render time (see
--   that Data page's own `description` for the record fields, and
--   Help:Wiki Editing for the architecture guide). To change HOW
--   Achievements pages render, edit Module:Core; to change the DATA, edit
--   Data:Achievements.json.
local Core = require('Module:Core')
local p = {}
local CAT = 'Achievements'

-- {{#invoke:Achievements|infobox|id=<slug-or-id>}}
function p.infobox(frame) return Core.infoboxEntry(CAT, frame) end

-- {{#invoke:Achievements|body|id=<slug-or-id>[|section=<name>]}}
function p.body(frame) return Core.bodyEntry(CAT, frame) end

-- {{#invoke:Achievements|crossRefs|id=<slug-or-id>}}
function p.crossRefs(frame)
  return require('Module:CrossRef').entry(CAT, frame)
end

-- {{#invoke:Achievements|index}} — the category index table
function p.index(frame) return Core.indexEntry(CAT, frame) end

-- {{#invoke:Achievements|render|id=<slug-or-id>}} — combined fallback
function p.render(frame) return Core.renderEntry(CAT, frame) end

return p