# Template data

**URL:** <https://casparcgforum.org/t/template-data/6059>\
**Category:** FAQ\
**Tags:** template\
**Created:** [September 14, 2023, 9:12am UTC](https://casparcgforum.org/t/template-data/6059 "2023-09-14T09:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMJITHA](https://casparcgforum.org/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@AMJITHA](https://casparcgforum.org/u/AMJITHA)\
**Post date:** [September 14, 2023, 9:12am UTC](https://casparcgforum.org/t/template-data/6059/1 "2023-09-14T09:12:50Z")

</div>

Hello.  
while playing imported template in Caspercg client ,What should Iwill give as Key and value.From where I get these Template data?

---

<div class="post-metadata">

**Author:** ![andyw](https://casparcgforum.org/letter_avatar_proxy/v4/letter/a/f05b48/32.png) [@andyw](https://casparcgforum.org/u/andyw)\
**Post date:** [September 16, 2023, 11:57am UTC](https://casparcgforum.org/t/template-data/6059/2 "2023-09-16T11:57:47Z")

</div>

The names of the keys used in a template are defined by the person or persons who wrote the template code, so there is not a direct answer to your question.

Many templates use keys named f0, f1, f2 etc because the SVT standard client can auto generate those names by a click on the + in the inspector. Key names can be _any_ string - “author”, “presenter”, “homescore”.

A simple test for your template is to use **f0** with value **Line 1 text** , **f1** with value **Line 2 text** etc and see if anything appears on the CasparCG output when the template is played.

Otherwise you need to open the HTML template code in a text editor and read the code to see if the author has documented the key names. If not, you need to examine the `update()` function to see how data sent from a client is placed in the final display element, and this will reveal the key names. You my find the key name is used as the **id** of the HTML \<DIV\>, for example the first token may be in a div called f0 as illustrated below:

```auto
<DIV id="f0" class="main-name-display"></DIV>

```

There is a description of templates starting at page 9 in my “Introduction to CaspaCG” documentation available [here](https://github.com/amwtech/CasparCG_Documentation) on Github. There is also an example lower third template code in Appendix H on page 135.

The repository that has the PDF document also has two very simple templates, both use key names f0 and f1 and the usage is described in the templates folder README.MD.

---

<div class="post-metadata">

**Author:** ![AMJITHA](https://casparcgforum.org/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@AMJITHA](https://casparcgforum.org/u/AMJITHA)\
**Post date:** [September 18, 2023, 7:41am UTC](https://casparcgforum.org/t/template-data/6059/3 "2023-09-18T07:41:38Z")

</div>

Thank you very much for your reply.
