Module:Recipe: Difference between revisions

let's see how much this breaks.
Fixed ingredient amount rendering inside card-body instead of card-container. Adjusted card-text -> card-label to match Module:Card
Line 429: Line 429:


   if tostring(ingredient.amount or '') ~= '' then
   if tostring(ingredient.amount or '') ~= '' then
     cardBody:tag('span')
     container:tag('span')
       :addClass('card-text')
       :addClass('card-label')
       :wikitext(tostring(ingredient.amount or '1'))
       :wikitext(tostring(ingredient.amount or '1'))
       :done()
       :done()