Template:Dquote

From WikiEducator
Jump to: navigation, search


<templatedata> { "description": "Div Quote", "params": {

               "text": {
                       "label": "Theme",
                       "description": "style family (e.g. WikiEducator, OP, Line, Blue, etc.)",
                       "aliases": [],
                       "default": "WikiEducator",
                       "type": "string"
               },
               "type": {
                       "label": "Type",
                       "description": "type of pedagogical template (e.g. Activity, Objectives, Discussion, etc.)",
                       "aliases": [],
                       "default": "",
                       "type": "string",
                       "required": true
               },

"title": { "label": "Title", "description": "title, if other than the iDevice type", "aliases": [], "default": "", "type": "string" }, "TOCdepth": { "label": "TOC Depth", "description": "depth in the table of contents", "aliases": [], "default": "", "type": "number" },

               "body": {
                       "label": "Body",
                       "description": "Content area",
                       "aliases": [],
                       "default": "",
                       "type": "string"
               },
               "feedback": {
                       "label": "Feedback",
                       "description": "",
                       "aliases": [],
                       "default": "",
                       "type": "string"
               },
               "discussion": {
                       "label": "Discussion",
                       "description": "",
                       "aliases": [],
                       "default": "",
                       "type": "string"
               },
               "tip": {
                       "label": "Tip",
                       "description": "",
                       "aliases": [],
                       "default": "",
                       "type": "string"
               },
               "classes": {
                       "label": "Classes",
                       "description": "additional HTML classes to apply to iDevice (advanced use only)",
                       "aliases": [],
                       "type": "string"
               },
               "id": {
                       "label": "id",
                       "description": "HTML id to assign to iDevice (advanced use)",
                       "aliases": [],
                       "type": "string"
               }

} } </templatedata>

[edit]

Documentation

Purpose

An alternative template to Cquote to provide a fancy (with graphical double quotes) pull-out quote, but modelled on a more 'adaptive layout'-friendly <div> rather than a <table>.

Syntax

  1. {{dquote|quote text}}
  2. {{dquote|quote text|author=author or speaker}}
  3. {{dquote|quote text|author=author or speaker|source=title of article, speech, book, etc.}}

Parameters

Parameter 1
text of the quote; use <br /> between paragraphs.
Required
Note: if the quote text contains one or more "=" (equal signs), then the template must be called as {{dquote|1=quote text}} (see Restrictions on parameter values for additional discussion and methods)
quotewidth
The size of the quotation marks; default=35px; options=10px, 30px, 40px, 50px, 60px.
author
Name of the person that wrote or spoke the text being quoted. Can include wiki syntax.
source
Source of the quote (publication title, speech, etc.). Can include wiki syntax.
bgcolor
The color of the background--see Help:Colors for options.
wide
When set to "yes", the quote expands to the entire width of the page. Useful for small quotes, but may clash with other floating objects, such as infoboxes.

Simple example

{{dquote|quote text}}
"
To be, or not to be.
"


Sourced example

{{dquote
|text=Life is like riding a bicycle. To keep your balance you must keep moving.
|author=[[Albert Einstein]]
|source=in a letter to his son<ref>Walter Isaacson, ''Einstein: His Life and Universe'' (2007), p. 367.</ref>
}}


"
Life is like riding a bicycle. To keep your balance you must keep moving.
"
 
Albert Einstein, in a letter to his son[1]


  1. Walter Isaacson, Einstein: His Life and Universe (2007), p. 367.

Example with background color

{{dquote
|Life itself is a quotation.
|author=Jorge Luis Borges
|bgcolor=#FFC
}}


"
Life itself is a quotation.
"
 
—Jorge Luis Borges


Other examples

{{dquote|1=F=ma|author=[[Isaac Newton]]}}

(the 1= is necessary as quote text contains an equal sign)

"
F=ma
"
 


{{dquote|1=Thus:
:<math>E=mc^2</math>|author=[[Albert Einstein]]}}

(quote text contains an equal sign and math syntax)

"
Thus:
[math]E=mc^2[/math]
"
 


See also

Acknowledgements

Template and documentation adapted from Wikipedia, Template:Dquote.