---
description: Every downloadable example template in one place — the base template, data-binding and layout examples, the upcoming-items and daily-schedule galleries with previews, the three JavaScript lifecycle examples and two complete event scoped templates — with what each one demonstrates and the page that explains it.
---

# Example templates

Every ZIP here uploads as-is through the [template library](template_library.md), so the
quickest way to learn a technique is to upload the example, assign it to a test room, and
read its files in the [Template Editor](template_editor_analysis.md). The examples bind the
system fields (`room`, `title`, the time helpers); where one also shows a demo-only custom
field such as `presenter_name`, replace it with your own JSON value or remove it.

## Starting point

| Download | What it is |
| --- | --- |
| [Base Template](../assets/templates/Base_Template.zip) | The empty template every other one starts from: required files, black body, the `.your-content` working area — see [Getting started with templates](getting_started.md#the-base-template) |

## Data binding and layout

| Download | What it shows | Page |
| --- | --- | --- |
| [Basic JSON Values](../assets/templates/Basic%20JSON%20Values.zip) | `data-field` for plain values and for an array with a row template | [Displaying JSON values](basic/json_value_configuration.md) |
| [Conditional JSON Values](../assets/templates/Conditional%20JSON%20Values.zip) | `data-condition` keeping only speakers with a given role | [Displaying JSON values](basic/json_value_configuration.md#conditional-rendering) |
| [Template with Background Image](../assets/templates/Template%20with%20Background%20Image%20Example.zip) | A full-screen background image on `.your-content` | [Background and banner images](basic/layout_assets_configuration.md) |
| [Template with Top and Bottom Banner Images](../assets/templates/Template%20with%20Top%20and%20Bottom%20Banner%20Images.zip) | Fixed-height banner strips above and below the content | [Background and banner images](basic/layout_assets_configuration.md#top-and-bottom-banners) |

## Upcoming items

Six templates built on the [upcoming items container](advanced/upcoming_items_templates.md).
Templates 1 and 2 list the next three items of the whole schedule (`data-upcoming-scope="all"`),
3 to 5 the next three of today; 6 is a **gap template** that lists tomorrow's sessions after
the last one of the day and keeps them on screen across midnight
([Show tomorrow's schedule in the last gap](advanced/tomorrow_in_last_gap.md)).

<div class="grid cards" markdown>

-   ![Current and Upcoming Items - Template 1](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-1.png)

    [Template 1](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%201.zip) — next three, whole schedule

-   ![Current and Upcoming Items - Template 2](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-2.png)

    [Template 2](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%202.zip) — next three, whole schedule

-   ![Current and Upcoming Items - Template 3](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-3.png)

    [Template 3](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%203.zip) — next three today

-   ![Current and Upcoming Items - Template 4](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-4.png)

    [Template 4](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%204.zip) — next three today

-   ![Current and Upcoming Items - Template 5](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-5.png)

    [Template 5](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%205.zip) — next three today

-   ![Current and Upcoming Items - Template 6](../assets/templates/Upcoming%20Items%20Templates/current-and-upcoming-items-template-6.png)

    [Template 6](../assets/templates/Upcoming%20Items%20Templates/Current%20and%20Upcoming%20Items%20-%20Template%206.zip) — tomorrow's schedule in the last gap

</div>

## Daily schedule

Four templates built on the [daily schedule container](advanced/daily_schedule_templates.md),
from a plain list to a timeline with the active session highlighted.

<div class="grid cards" markdown>

-   ![Daily Schedule - Template 1](../assets/templates/Daily%20Schedule%20Templates/dialy-schedule-template-1.jpg)

    [Template 1](../assets/templates/Daily%20Schedule%20Templates/Daily%20Schedule%20-%20Template%201.zip)

-   ![Daily Schedule - Template 2](../assets/templates/Daily%20Schedule%20Templates/dialy-schedule-template-2.jpg)

    [Template 2](../assets/templates/Daily%20Schedule%20Templates/Daily%20Schedule%20-%20Template%202.zip)

-   ![Daily Schedule - Template 3](../assets/templates/Daily%20Schedule%20Templates/dialy-schedule-template-3.jpg)

    [Template 3](../assets/templates/Daily%20Schedule%20Templates/Daily%20Schedule%20-%20Template%203.zip)

-   ![Daily Schedule - Template 4](../assets/templates/Daily%20Schedule%20Templates/dialy-schedule-template-4.jpg)

    [Template 4](../assets/templates/Daily%20Schedule%20Templates/Daily%20Schedule%20-%20Template%204.zip)

</div>

## JavaScript

Three small templates that demonstrate the lifecycle API end to end; each is described on
[Template JavaScript best practices](advanced/template-js-best-practices.md#example-templates).

| Download | What it shows | Page |
| --- | --- | --- |
| [Time-Based Layout Override](../assets/templates/Time-Based%20Layout%20Override.zip) | A coffee-break layout during a fixed time window, polled with `ctx.setInterval` | [Time-based layout override](advanced/template_time_override.md) |
| [Live Clock and Session Countdown](../assets/templates/Live%20Clock%20and%20Session%20Countdown.zip) | A ticking clock and a countdown to the session's end, reading a bound field with a `MutationObserver` | [JavaScript patterns and pitfalls](advanced/template_js_patterns.md#reading-bound-fields) |
| [Rotating Announcements Banner](../assets/templates/Rotating%20Announcements%20Banner.zip) | A banner cycling through announcements with `ctx.state` and `ctx.setTimeout` | [Looping templates](advanced/looping_templates.md) for the CSS-only version |

## Event scoped

Two complete, commented [event scoped templates](advanced/event_scoped_templates.md) for a
virtual room. Both read every room through `data-event-timeline`, keep only the items whose
`type` is `Arsenal`, and split the `track_1 === 'Arsenal Lab'` rows out as a highlight —
replace those two field names and values with the ones your source sends. The source data
they expect is the item JSON of any API or Excel event that carries such a `type` and
`track_1` field; a room with no matching items simply contributes no rows.

| Download | What it shows | Page |
| --- | --- | --- |
| [Event Scoped - Filtered Arsenal Overview](../assets/templates/Event%20Scoped%20Templates/Event%20Scoped%20-%20Filtered%20Arsenal%20Overview.zip) | Landscape: one highlighted Arsenal Lab row, the other Arsenal sessions as a list, a room summary and a session count maintained by a lifecycle-safe script that re-syncs on `preseria-content-updated` | [Filtering rows](advanced/event_scoped_templates.md#filtering-rows) |
| [Event Scoped - Filtered Arsenal Portrait Grouped](../assets/templates/Event%20Scoped%20Templates/Event%20Scoped%20-%20Filtered%20Arsenal%20Portrait%20Grouped.zip) | Portrait (1080 × 1920): the same filter, with the non-Lab sessions regrouped by shared time range in `script.js` from a hidden source list, and empty-state notes per section | [JavaScript in event scoped templates](advanced/event_scoped_templates.md#javascript-in-event-scoped-templates) |

## Related

- [Getting started with templates](getting_started.md)
- [Template library](template_library.md)
