Template:LinedQuote/doc

From WikiEducator
Jump to: navigation, search

A template for quotes.

Usage

The markup on the left produces the quote on the right

Richard Bach, Illusions
"Learning is finding out what you already know. Doing is demonstrating that you know it. Teaching is reminding others that they know just as well as you. You are all learners, doers, and teachers."
{{LinedQuote
|theme=blues
|width=35
|align=right
|theQuote=
"Learning is finding out what you already know. 
Doing is demonstrating that you know it.
Teaching is reminding others that they know just 
as well as you. You are all learners, doers, and teachers."
|author=Richard Bach
|source=Illusions
}}

Parameters

theme - a colour scheme for the pattern indicated with a theme name (see 'Themes' below)
width - an integer indicating the width as a percentage of screen space available
align - right, left, or center (default is left)
theQuote - the text of the quote, no quotes and no formatting predefined
author - name of the author. If not specified the word "unknown" will be displayed
source - an optional parameter indicating the source.

Themes

The theme parameter is the name of a theme defined in template {{Box-theme}}. Available themes are illustrated here.

Always check that the selected theme works (e.g. white text on a white background is no good).

To create a new theme edit template {{Box-theme}}. Last time I checked this template was protected (let me know if you want a new theme to be included or create a separate theme template).

See Also

Tests

No align, no width, no theme, no author, no source:

author unknown
This is the lined quote

To Do

  • Consider a general style parameter or two.