Editing Module:Infobox Recipe
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 109: | Line 109: | ||
-- display XP and duration totals for multi-step process |
-- display XP and duration totals for multi-step process |
||
args. |
args.displayXP = tonumber(args.exp) and searchResult.xp and searchResult.xp + tonumber(args.exp) |
||
args.displayDuration = tonumber(args.duration) and searchResult.duration and searchResult.duration + tonumber(args.duration) |
args.displayDuration = tonumber(args.duration) and searchResult.duration and searchResult.duration + tonumber(args.duration) |
||
Line 115: | Line 115: | ||
rawMaterials = argsMaterials |
rawMaterials = argsMaterials |
||
end |
end |
||
--If it is a passive recipe, will want to display the per-hour values for XP and materials used |
--If it is a passive recipe, will want to display the per-hour values for XP and materials used |
||
Line 242: | Line 243: | ||
:IF(showFullRecipe) |
:IF(showFullRecipe) |
||
:wikitext(' (') |
:wikitext(' (') |
||
:wikitext(hc(args. |
:wikitext(hc(args.displayXP) and (formatNum(tonumber(args.displayXP))) or ("'''?'''")) |
||
:wikitext(' total)') |
:wikitext(' total)') |
||
:END() |
:END() |