Template:Quote fancy: Difference between revisions
(Linked to Quote background) |
(Link to Quote race) |
||
Line 37: | Line 37: | ||
* {{t link|Quote character}}: Display character quotes with automatic handling of the character portrait. | * {{t link|Quote character}}: Display character quotes with automatic handling of the character portrait. | ||
* {{t link|Quote class}}: Display the quote corresponding to a class/subclass. Intended for use on class/subclass pages. | * {{t link|Quote class}}: Display the quote corresponding to a class/subclass. Intended for use on class/subclass pages. | ||
* {{t link|Quote race}}: Display the quote corresponding to a race. Intended for use on both playable and non-playable race pages. | |||
* {{t link|Quote background}}: Display the quote corresponding to a background. Intended for use on background pages. | * {{t link|Quote background}}: Display the quote corresponding to a background. Intended for use on background pages. | ||
Revision as of 22:41, 22 July 2024
Display a fancily formatted quote with an (optional) accompanying image. This is a parent template used as a basis for other more specific quote templates. These are:
- {{Quote character}}: Display character quotes with automatic handling of the character portrait.
- {{Quote class}}: Display the quote corresponding to a class/subclass. Intended for use on class/subclass pages.
- {{Quote race}}: Display the quote corresponding to a race. Intended for use on both playable and non-playable race pages.
- {{Quote background}}: Display the quote corresponding to a background. Intended for use on background pages.
Refer to {{Image frame}} for the template used to render the image.
This template has an associated stylesheet at Template:Quote fancy/style.css.
Examples
This is the default appearance for a quote with an image.
Markup{{Quote fancy | quote = The operations of these huge steel juggernauts are powered by engines of churning hellfire. | image = Portrait Steel Watcher.png | link = Adamantine Golem }}Renders as
This example demonstrates some of the optional style parameters that can be adjusted.
Markup{{Quote fancy | quote = These levitating eyes transmit all that they see to the one who created them. | image = Portrait Scrying Eye.png | author = In-game racial description of [[Scrying Eye]]s | link = Scrying Eye | height = 60 | font-size = 120% | align = center }}Renders as
For quotes of this style, see {{Quote class}}.
Markup{{Quote fancy | quote = The strong embrace the wild that hides inside - keen instincts, primal physicality, and most of all, an unbridled, unquenchable rage. | image = Class Barbarian Badge Icon.png | image-position = right | height = 160 | font-size = 120% | link = Barbarian | align = center }}Renders as
For quotes of this style, see {{Quote character}}.
Markup{{Quote fancy | quote = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | image = Portrait Gale.png | link = Gale | author = [[Gale]], casting Knuth's Magnificent Kerning | height = 60 | font-size = 100% | align = center | image-border-shape = diamond | image-border-width = 4 | image-border-color = black }}Renders as
Template data
Display a quote with an accompanying image which are aligned with each other
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quote | quote | The quote | String | required |
Image | image | Add an image to go along with the quote.
| File | suggested |
Link | link | Clicking the image will link to the specified page instead of the image file.
| Page name | suggested |
Author | author | The author or context of the quote | String | optional |
Font size | font-size | Size of the font used for the quote.
| String | optional |
Alignment | align | Horizontal alignment of the quote.
| String | optional |
Image position | image-position | Position of the image relative to the quote.
| String | optional |
Image border width | image-border-width | Width in pixels of the border around the image. Set to 0 to completely disable this.
| Number | optional |
Image border shape | image-border-shape | Shape of the border frame which crops the image. This can be an arbitrary CSS clip-path or a predefined value. Refer to [[Template:Image frame]] for details. The default value of basic disables this.
| String | optional |
Image border color | image-border-color | Color of the image border. This can be a CSS color descriptor.
| String | optional |
Height | height | The height of the image in pixels.
| String | optional |