Module:Infobox ZPI: Difference between revisions

From Xenharmonic Wiki
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.Infobox(frame)
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

Module documentation[view] [edit] [history] [purge]
This module should not be invoked directly; use its corresponding template instead: Template:Infobox ZPI.
Module:Infobox ZPI is a draft module. It is incomplete and may not be in active development. If possible, editors are encouraged to help with its development. In the meantime, editors should avoid using this module across the Xenharmonic Wiki, except for testing.

This module generates an infobox providing information about a given zeta peak index (ZPI).

Introspection summary for Module:Infobox ZPI 
Functions provided (1)
Line Function Params
4 infobox_zpi (invokable) (frame)
Lua modules required (1)
Variable Module Functions used
yesno Module:Yesno yesno

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