> For the complete documentation index, see [llms.txt](https://db.coolstone.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://db.coolstone.dev/browser/templates.md).

# Templates

## Make a new Template <a href="#new" id="new"></a>

{% code lineNumbers="true" %}

```javascript
const template = new Template({
id:"",
name:"",
password:""
})
```

{% endcode %}

### Parameters

<table><thead><tr><th>Name</th><th>About</th><th>Type</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>template</td><td>The object to base the new Template on.</td><td>Object</td><td>true</td></tr></tbody></table>

## Use Template <a href="#use" id="use"></a>

{% code lineNumbers="true" %}

```javascript
data.create('tag', template.use('123456',"John","password"))
```

{% endcode %}

### Parameters

The parameters of this function are what will be set to the value of the keys in order.

**Example**: the parameter`John` will be the value of `name`since they are both in the second position.

## Full code example <a href="#example" id="example"></a>

{% code lineNumbers="true" %}

```javascript
const data = new Dubnium('json' /* Templates are JSON only */,false) 

const template = new Template({ 
id:"",
name:"",
password:""
})

data.create('tag', template.use('123456',"John","password"))
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://db.coolstone.dev/browser/templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
