|
Global templates are available in all spaces in your Confluence site.
To add a global template:
The 'Create Template' screen will appear. Add content as described below.
This illustration shows the template editor with an image, some text, styling, and variables.

This screenshot shows the form displayed when someone creates a page based on the template containing the above variables. (See Creating a Page using a Template.)

Add a name for your template.
Enter text into the body of the template, and use the editor toolbar to apply styles, layout and formatting. You can add links and macros. In general, you can use the Confluence editor in the same way as on a page. In addition, you can add variables which will produce a form for data collection when someone adds a page based on the template.
Below are some points of special interest in templates.
Choose Labels to add one or more labels to the template. These labels will be included in all pages created using this template.
You can add variables to your template, to act as form fields. When someone creates a page based on the template, Confluence will display a text entry box for each field. The user can enter data into each field, and the data is inserted onto the new page.
Every variable must have a unique name. If you add the same variable more than once in the same template, Confluence will make sure that they have the same value when the user saves the page. This is useful if you need the same information in more than one place in the page.
変数をテンプレートに挿入する方法
Speeding up variable entry with autocomplete: Type $ and the variable name, then press Enter, to add a new variable or to select an existing variable from a list of suggestions. The suggestions are drawn from variables already defined in this template.
These are the types of variable available:
| 変数タイプ | 説明 |
Text | Creates a single-line text input field. Screenshot: A template variable called
|
複数行テキスト | Creates a text box that allows more than one line of text. By default, the text area is 5 rows depth and 100 characters wide. You can change the size by typing over the digits in the variable property panel. Screenshot: A multi-line variable and its property panel
|
一覧 | Creates a dropdown list. You must specify the values that will appear in the dropdown list. The values:
Screenshot: A list variable and its property panel
|
Instructional text allows you to add placeholder content to a template. This text is only visible in the editor and disappears when the author of the page begins typing.
To insert instructional text into a template:
You can also change the placeholder type from 'text' to 'user mention', which launches the mentions auto-complete when the author of the page begins to type. Select the instructional text and choose User Mention.
Screenshot: Instructional text in a template.

The template description displays in the 'Create' dialog and is useful for explaining the purpose of a template to users.
テンプレートに説明を追加する方法

If you would like to convert an existing page to a template, you can copy the content from the page and paste it into the template editor. There is no automated way of doing this.
Please note the section above about images and other attachments in templates.