<?xml version="1.0" encoding="UTF-8"?>
<template name="Player stat" category="Sports" description="Player name, number and a headline stat." anim="slide" from="left" animMs="480">
  <field id="num" label="Jersey #" default="10"/>
  <field id="name" label="Player" default="A. RODRIGUEZ"/>
  <field id="stat" label="Stat line" default="28 PTS · 11 REB · 7 AST"/>
  <field id="accent" label="Team colour" type="color" default="#16a34a"/>

  <rect x="110" y="820" w="112" h="120" radius="12" fill="{accent}"/>
  <text x="166" y="880" align="center" valign="middle" size="68" weight="900" color="#ffffff">{num}</text>
  <rect x="222" y="820" h="66" fill="rgba(12,15,20,0.94)" fit="name" pad="30" min="420"/>
  <text id="name" x="252" y="820" h="66" valign="middle" size="38" weight="800" color="#ffffff" uppercase="true" maxWidth="900">{name}</text>
  <rect x="222" y="886" h="54" fill="{accent}" fit="stat" pad="30" if="stat"/>
  <text id="stat" x="252" y="886" h="54" valign="middle" size="28" weight="800" color="#ffffff" font="mono" maxWidth="900" if="stat">{stat}</text>
</template>
