# Format Templates

## Templates

`format.citetitle`

- Format a citetitle element

`format.quote.outer`

- Format a quote element

`format.quote.inner`

- Format a nested quote element

`format.appendix.label`

- Format the label for a appendix element

`format.chapter.label`

- Format the label for a chapter element

`format.example.label`

- Format the label for a example element

`format.figure.label`

- Format the label for a figure element

`format.manvolnum`

- Format a manvolnum element

`format.part.label`

- Format the label for a part element

`format.refentry.label`

- Format the label for a refentry element

`format.section.label`

- Format the label for a section element

`format.table.label`

- Format the label for a table element

`format.example.number`

- Format the number for a example element

`format.example.number.flat`

- Format the number for a example element in a flat document

`format.figure.number`

- Format the number for a figure element

`format.figure.number.flat`

- Format the number for a figure element in a flat document

`format.part.number`

- Format the number for a part element

`format.table.number`

- Format the number for a table element

`format.table.number.flat`

- Format the number for a table element in a flat document

`format.tooltip.glossentry`

- Format the tooltip for a link to a glossentry

`format.tooltip.mailto`

- Format the tooltip for a link to a mailto URI.

format.citetitle

Format a `citetitle` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `citetitle` element to format

`role`

- The role of the label, extracted from the `pubwork` attribute

### Description

This template used for formatting the `citetitle` element in DocBook. The `citetitle` element has a `pubwork` attribute that can be set to one of the following values: `article`, `bbs`, `book`, `cdrom`, `chapter`, `dvd`, `emailmessage`, `gopher`, `journal`, `manuscript`, `newsposting`, `part`, `refentry`, `section`, `series`, `set`, `webpage`, `wiki`. This template allows multiple role format strings, using the value of `pubwork` as the role. Translators can use this to customize the appearance of a cited title based on the type of document being cited. The default formatting is as follows:

    <msg:msgstr role="article">“%t{node}”</msg:msgstr>
    <msg:msgstr><i>%t{node}</i></msg:msgstr>

This puts the title of an article citation in quotes. For all other types of works, the title is simply italicized.

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`node`

- A template argument which processes the contents of the `citetitle` element.

format.quote.outer

Format a `quote` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `quote` element to format

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`node`

- A template argument which processes the contents of the `quote` element.

format.quote.inner

Format a nested `quote` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `quote` element to format

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`node`

- A template argument which processes the contents of the `quote` element.

format.appendix.label

Format the label for a `appendix` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `appendix` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.chapter.label

Format the label for a `chapter` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `chapter` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.example.label

Format the label for a `example` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `example` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.figure.label

Format the label for a `figure` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `figure` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.manvolnum

Format a `manvolnum` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `manvolnum` element to format

format.part.label

Format the label for a `part` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `part` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.refentry.label

Format the label for a `refentry` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `refentry` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`title`

- A template argument which extracts the title of the element.

format.section.label

Format the label for a `section` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `section` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.table.label

Format the label for a `table` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The `table` element to format

`role`

- The role of the label

### Arguments

This is a format template constructed by `format2xsl`. The following arguments are available for translators:

`number`

- A template argument which extracts the number portion of the label.

`title`

- A template argument which extracts the title of the element.

format.example.number

Format the number for a `example` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.example.number.flat

Format the number for a `example` element in a flat document

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.figure.number

Format the number for a `figure` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.figure.number.flat

Format the number for a `figure` element in a flat document

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.part.number

Format the number for a `part` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.table.number

Format the number for a `table` element

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.table.number.flat

Format the number for a `table` element in a flat document

### Parameters

`lang`

- The language to use for formatting

`node`

- The element for which to generate a number

format.tooltip.glossentry

Format the tooltip for a link to a `glossentry`

### Parameters

`lang`

- The language to use for formatting

`node`

- The `glossentry` element

format.tooltip.mailto

Format the tooltip for a link to a `mailto` URI.

### Parameters

`lang`

- The language to use for formatting

`node`

- The source node

`address`

- The email address