Template Variables
Variables are placeholders in your template text that Teamarr replaces with real data when generating EPG. They use curly-brace syntax:Syntax
Wrap any variable name in curly braces and place it anywhere in a title, subtitle, description, or artwork URL field:{Team_Name} will appear literally rather than being substituted.
Suffix system
Team templates support suffixes to reference games other than the current one:| Suffix | What it refers to | Example |
|---|---|---|
| (none) | The current game | {opponent} |
.next | The next upcoming game | {opponent.next} |
.last | The most recently completed game | {opponent.last} |
Suffixes are only available in team templates. Event templates exist for a single game, so
.next and .last have no meaning there and are not supported.- base — no suffix (current game)
- .next — next game
- .last — last game
Team templates vs event templates
- Team templates
- Event templates
Team templates power channels that exist 24/7 for a specific team (e.g., “Detroit Lions”).
- Content is shown from the team’s perspective
- Supports
.nextand.lastsuffixes - Includes filler content (pregame, postgame, idle) using the same variable syntax
- Variables like
{team_name},{team_record},{streak}are relative to the tracked team
The 17 variable categories
| Category | What it covers | Example variables |
|---|---|---|
| Identity | Team names, abbreviations, league, sport | {team_name}, {opponent}, {matchup}, {league} |
| Date & Time | Game scheduling and relative day labels | {game_date}, {game_time}, {relative_day}, {days_until} |
| Venue | Stadium name and location | {venue}, {venue_city}, {venue_full} |
| Home/Away | Positional team references and home/away context | {home_team}, {away_team}, {is_home}, {vs_at} |
| Records | Win-loss records for team and opponent | {team_record}, {opponent_record}, {home_record} |
| Streaks | Current winning and losing streaks | {streak}, {win_streak}, {opponent_streak} |
| Scores | Game scores and result details | {score}, {final_score}, {score_diff}, {winner} |
| Outcome | Win/loss indicators and overtime | {result}, {result_text}, {overtime_text} |
| Standings | Playoff seed and games back | {playoff_seed}, {games_back}, {opponent_playoff_seed} |
| Statistics | Points per game averages | {team_ppg}, {team_papg}, {opponent_ppg} |
| Playoffs | Season type indicators | {season_type}, {is_playoff}, {is_regular_season} |
| Odds | Betting lines when available | {odds_spread}, {odds_moneyline}, {odds_over_under} |
| Broadcast | TV and streaming networks | {broadcast_network}, {broadcast_simple}, {is_national_broadcast} |
| Rankings | College rankings (NCAAF, NCAAM, NCAAW) | {team_rank}, {team_rank_display}, {is_ranked_matchup} |
| Conference | Conference and division for pro and college leagues | {pro_conference}, {pro_division}, {college_conference} |
| Soccer | Competition context for teams that play in multiple leagues | {soccer_match_league}, {soccer_primary_league} |
| Combat Sports | UFC/MMA event-specific variables | {event_title}, {fighter1}, {card_segment_display} |
Usage examples
The examples below show a template string and the rendered output.- Team template — pregame
- Event template — pregame
- Postgame filler
- UFC event template
Template:Rendered output (Detroit Lions channel):