Template:Scroll data/flavor/doc

Purpose
This template displays the flavor text of a scroll according to its data subpage.

This allows all references to scroll data in any page to be updated by a single edit to the data subpage.

Flavor texts consist in two parts: the quote, which is the main part of the text, and the reference (often fictional), which is optional and written after a dash.

Usage
In order to work, this template requires that a data subpage is properly defined for the scroll it is referring to (see Template:Scroll data documentation).

This template is mainly to be used in the said scroll's page, where one would write the flavor text. However, it can also be included in other pages provided the  parameter is defined (see below example).

The default behavior of this template is to display the flavor text as it is on scrolls in-game. This means it is in italics, and when there is both a quote and a reference, the former is in quotes (characters) and the latter is written on a new line, preceded by a dash. However, this can be altered by flags (see Anonymous parameters).

Blank template
To use this template, you can copy and paste the following code to the scroll page you want to use it on.

Other uses blank templates
To use this template, you can copy and paste one of the following codes to the scroll page you want to use it on.

Anonymous parameters
Anonymous parameters of this template are used as flags which alter the default behavior of the template (see Usage). This means that each anonymous parameter (without name and equals sign before the value) can be one of the fixed values detailed in the below table.

All flags are optional and they can be written in any order. They can also be mixed with named parameters.

Note that only the first anonymous parameter is checked for flags.

Regular example
Below example shows what the template would output if used on Catapult of Goo page (and without any flags).

Result:

Flag examples
Below table shows effects of each flag. As for previous example, results show what would be displayed if used on Catapult of Goo page.

Example with a specific data page
Below example refers to Catapult of Goo data but works in any page.

Result:

Related templates

 * Scroll data
 * Scroll data/abilities
 * Scroll data/attack
 * Scroll data/cost
 * Scroll data/countdown
 * Scroll data/health
 * Scroll data/name
 * Scroll data/rarity
 * Scroll data/resource
 * Scroll data/subtypes
 * Scroll data/talents
 * Scroll data/type