Module:Infobox AFDO: Difference between revisions
Trying to make it so that “fifth” doesn’t show up when “sharp dual fifth” and “flat dual fifth” show up, because then it is being shown twice which is redundant. I will check the afdo pages immediately to see if it has broken them, and will undo immediately if it has Tags: Mobile edit Mobile web edit Advanced mobile edit |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 2: | Line 2: | ||
local u = require("Module:Utils") | local u = require("Module:Utils") | ||
local infobox = require("Module:Infobox") | local infobox = require("Module:Infobox") | ||
local yesno = require("Module:Yesno") | |||
function p.infobox_AFDO(frame) | function p.infobox_AFDO(frame) | ||
-- debug mode will disable the categories | -- debug mode will disable the categories | ||
local debug_mode = frame.args["debug"] | local debug_mode = yesno(frame.args["debug"]) | ||
local categories = "" | local categories = "" | ||
| Line 48: | Line 49: | ||
end | end | ||
if (special_properties ~= "") then | |||
table.insert(infobox_data, {"Special properties", special_properties}) | table.insert(infobox_data, {"Special properties", special_properties}) | ||
end | end | ||
| Line 59: | Line 60: | ||
) | ) | ||
return frame:preprocess(debug_mode == true and "<pre>" .. result .. "</pre>" or result .. categories) | |||
end | end | ||
return p | return p | ||