#macro(figure $card) #foreach($figure in $card.figure_parsed) #figure_embed($figure) #end #end #macro(figure_embed $fig) #if($fig.source == "material-icons") $escape_html($label) #elseif($fig.source == "mdi") #elseif($fig.source == "fa") #elseif($fig.source == "svg") #set($color = "") #if($fig.color) #set($color = "?color=${fig.color}") #end #end #end #macro(figure_style $fig) style=" #if($fig.source == "svg") ## Unsupported with other sources due to being fonts, not images ** #if($fig.autoscale) top:${fig.top}px; right:${fig.right}px; bottom:${fig.bottom}px; left:${fig.left}px; height:calc(100% - ${fig.size}px); #else top:calc(${fig.top}px - ${fig.bottom}px); left:calc(${fig.left}px - ${fig.right}px); height:${fig.scale}%; #end #end transform:rotate(${fig.rotate}deg)" #end #macro(specialFlags $card) #if($card.has_flag("mastery")) ❏ ❏ ❏ ❏ ❏ ❏ ❏ ❏ ❏ ❏ #end #if($card.has_flag("pokehum")) Name: ______________ #end #end #macro(statIcons $text) #foreach($word in $text.split()) #if($word == "BODY") #elseif($word == "TEC") #elseif($word == "MAG") #elseif($word == "ATT") ATT #else $word #end #end #end #macro(handleCostUnit $cost $match)
$escape_html($strip_unit($cost, $match))
$escape_html($match)
#end #macro(effectList $effects) #end Cards #foreach($card in $cards) #set($card_is_item = false) #foreach($flag in ["Consumable", "Title", "Food", "Trinket", "Crafting Material", "Collectible", "Alchemy Material", "Ammo", "Splash", "Thrown", "Draw Card", "Passive", "Melee Weapon", "Arc Weapon", "LoS Weapon"]) #if($card.flags.__contains__($flag)) #set($card_is_item = true) #end #if($card.flags.__contains__($flag.lower())) #set($card_is_item = true) #end #end #if($card_is_item)
#elseif($card.effects)
#else
#end

$escape_html($card.title)

#figure($card)
#if($card.effects && ! $card_is_item) #effectList($card.effects) #end
#if($card.cp)
$escape_html($card.cp)
#elseif($card.gp)
$escape_html($card.gp)
#end #foreach($cost in $card.cost.split(",")) #if($cost.upper().endswith(" ACT")) #handleCostUnit($cost, "ACT") #elseif($cost.upper().endswith(" OVERDRIVE")) #handleCostUnit($cost, "OVERDRIVE") #elseif($cost.upper().endswith(" COMBO")) #handleCostUnit($cost, "COMBO") #elseif($cost.upper().endswith(" DIFFICULTY")) #handleCostUnit($cost, "DIFFICULTY") #else #if($cost.strip())
$escape_html($cost.split())
#end #end #end #if($card.power)
#statIcons($escape_html($card.power))
#end
$escape_html($card.description) #if($card.steps)
    #foreach($item in $card.steps) #if($item)
  1. $escape_html($item)
  2. #end #end
#end #if($card.effects && $card_is_item) #effectList($card.effects) #end #if($card.flags)
- #foreach($flag in $card.flags) #if(!$flag && $foreach.hasNext) -
- #else $escape_html($flag.capitalize())#if($foreach.hasNext), #end #end #end -

#specialFlags($card)
#end
#end #if($was_saved)
The card has been saved
#end #if($was_deleted)
The card has been removed from storage
#end