Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Page layout facilities > Templates > Writing templates
 
Writing templates
Templates are text files that contain template XML tags, optionally with other standard HTML tags, and that have a .htm filename extension. Template XML tags are easy to recognize because they all start with “mr”.
You can create a basic template using programs such as Notepad or Wordpad. Enter the template XML tags that define the items that you want to appear on the interview page, and then save the file with a .htm extension.
If the template contains non-English characters such as letters with umlauts, you must save the template in UTF-8 or Unicode format, otherwise these characters displayed as ? (question marks).
For example, the following template produces the same page layout as the default template:
<html>
<head></head>
<body>
<mrBannerText/>
<br/>
<mrData/>
<br/>
<mrNavBar/>
</body>
</html>
<mrBannerText/>
Specifies the position of information texts.
<mrData/>
Specifies the position of the question and its response list.
<mrNavBar/>
Specifies the position of the navigation buttons.
You can add HTML formatting tags to insert font, point size, and color changes and to define the exact position of the components on the page. For example:
<html>
<head></head>
<body>
<center>
<b>
<font color="blue" size="4"
                face="Arial"><mrPageTitle/></font>
</b>
</center>
...
</body>
</html>
This displays the page title in large, bold, blue text in the center of the first line on the page.
See also
Template XML schema
Debugging template errors
Example templates
Tips for writing templates
Using forms
Questions, responses, and error messages
Banners (information texts)
Page titles
Navigation buttons
Progress bars
Sub-templates
Referring to external files
Custom controls
Clickable response texts
Adding CSS class names to the rendered HTML
Multiple-language and right-to-left (RTL) or bidirectional (bidi) templates
Templates