${
typeof tz?.number === 'number'
? html`${formatInteger(locale, tz.number)}
`
: nothing
}
${this.t('Mayan day sign')}
${tz?.daySignName ?? ''}
${
tz?.daySignClassic
? html`${this.t('Classic spelling')}${tz.daySignClassic}`
: nothing
}
${
tz?.daySignKiche
? html`${this.t('Highland spelling')}${tz.daySignKiche}`
: nothing
}
${
d.date
? html`${this.t('Date')}${formatDate(locale, d.date)}`
: nothing
}
${this.renderTrecena(locale, tz?.trecena)}
${chart ? this.renderHaabFact(locale, chart.haab) : nothing}
${
chart?.longCount?.formatted
? html`${this.t('Long Count')}${chart.longCount.formatted}`
: nothing
}
${
chart?.calendarRound
? html`${this.t('Calendar Round')}${chart.calendarRound}`
: nothing
}
${
chart?.yearBearer?.daySignName
? html`${this.t('Year Bearer')}${formatInteger(locale, chart.yearBearer.number)} ${chart.yearBearer.daySignName}`
: nothing
}
${
chart?.lordOfNight?.label
? html`${this.t('Lord of the Night')}${chart.lordOfNight.label}`
: nothing
}
${
band
? html`${this.t('Character of the number')}${this.t(band)}`
: nothing
}
${
// The constant is a request enum, so the published field-label payload
// already names it in the reader's language. The identifier is what a
// caller stores and what a printed table is checked against, so it
// rides in the title and is what an unlabelled language prints.
d.conventions?.correlation
? html`${this.t('Correlation')}${displayOption(locale, 'correlation', d.conventions.correlation, d.conventions.correlation)}`
: nothing
}
${
reading?.keynote && !this.hideReadings
? html`${reading.keynote}
`
: nothing
}
${this.renderLists(reading)}
${this.renderInterpretation(this.sections(chart, reading), 'mayan-day')}
${this.renderCross(locale, chart?.cross)}
${
chart?.summary && !this.hideReadings
? html`${chart.summary}
`
: nothing
}
`;
}
/** The thirteen day period the day sits in, and where in it. */
private renderTrecena(
locale: string | undefined,
trecena: Tzolkin['trecena'] | undefined,
) {
if (!trecena) return nothing;
return html`