Module:Infobox ZPI: Difference between revisions
Jump to navigation
Jump to search
Contribution (talk | contribs) Created page with "local p = {} function p.Infobox(frame) local args = frame:getParent().args local result = "'''''Infobox ZPI'''''\n" result = result .. "Nom: " .. (args.nom or "No..." |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
local yesno = require("Module:Yesno") | |||
local p = {} | local p = {} | ||
function p. | function p.infobox_zpi(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local debugg = yesno(frame.args["debug"]) | |||
local result = "'''''Infobox ZPI'''''\n" | local result = "'''''Infobox ZPI'''''\n" | ||
result = result .. "Nom: " .. (args.nom or "Non spécifié") .. "\n" | result = result .. "Nom: " .. (args.nom or "Non spécifié") .. "\n" | ||
-- Ajoutez d'autres champs ici | -- Ajoutez d'autres champs ici | ||
return result | return frame:preprocess(debugg == true and "<pre>" .. result .. "</pre>" or result) | ||
end | end | ||
return p | return p | ||
Latest revision as of 14:25, 27 February 2025
- This module should not be invoked directly; use its corresponding template instead: Template:Infobox ZPI.
This module generates an infobox providing information about a given zeta peak index (ZPI).
| Introspection summary for Module:Infobox ZPI | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||
No function descriptions were provided. The Lua code may have further information.
local yesno = require("Module:Yesno")
local p = {}
function p.infobox_zpi(frame)
local args = frame:getParent().args
local debugg = yesno(frame.args["debug"])
local result = "'''''Infobox ZPI'''''\n"
result = result .. "Nom: " .. (args.nom or "Non spécifié") .. "\n"
-- Ajoutez d'autres champs ici
return frame:preprocess(debugg == true and "<pre>" .. result .. "</pre>" or result)
end
return p