From Arms of God Wiki
Renders Crux records from Data:Crux.json on index and detail pages.
infobox— infobox for one record (used via Template:Crux infobox)index— sortable index table on Cruxbody/crossRefs— per-section renderers invoked from 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:Crux — per-category shim (Arms of God).
-- All computation lives in Module:Core (render-time derivation from the
-- source Data:Crux.json); this module only binds the category name.
local Core = require('Module:Core')
local p = {}
local CAT = 'Crux'
-- {{#invoke:Crux|infobox|id=<slug-or-id>}}
function p.infobox(frame) return Core.infoboxEntry(CAT, frame) end
-- {{#invoke:Crux|body|id=<slug-or-id>[|section=<name>]}}
function p.body(frame) return Core.bodyEntry(CAT, frame) end
-- {{#invoke:Crux|crossRefs|id=<slug-or-id>}}
function p.crossRefs(frame)
return require('Module:CrossRef').entry(CAT, frame)
end
-- {{#invoke:Crux|index}} — the category index table
function p.index(frame) return Core.indexEntry(CAT, frame) end
-- {{#invoke:Crux|render|id=<slug-or-id>}} — combined fallback
function p.render(frame) return Core.renderEntry(CAT, frame) end
return p