Module:Prototype page: Difference between revisions
Jump to navigation
Jump to search
(Ported Template:Prototype page to use hardcoded list instead of SMW properties) |
(Come on) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
function p.main(frame) | function p.main(frame) | ||
local | local lua_type = frame.args[1] | ||
return string.format("[%s %s]", data[lua_type], lua_type) | |||
return string.format(" | |||
end | end | ||
return p | return p |
Latest revision as of 13:32, 25 October 2024
Lua method used by Template:Prototype page.
Edit this documentation on Module:Prototype page/doc.
Display a link to the prototype documentation page of a prototype based on the lua prototype name given as the first parameter. Uses the mapping of prototype name to prototype doc page from Module:Prototype page/data.