Jump to content

Template:Quote box: Difference between revisions

From Consumer Rights Wiki
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
  <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black">
  <div class="quote-box" style="margin: {{{margin|1em}}} {{{align|auto}}}; width: {{{width|80%}}}; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9; color: black">
     <blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}}} <small>'''{{{source|}}}'''</small>
     <blockquote style="margin: 0;">{{{quote|}}}</blockquote>{{#if:{{{source|}}}| <small>'''- {{{source|}}}'''}}</small>
  </div>
  </div>
</includeonly>
</includeonly>
Line 23: Line 23:
|width=100px
|width=100px
|align=left
|align=left
|quote=Example of an important quote}}
|quote=Example of an important quote
|source=Clinton the CAT}}
</nowiki>
</nowiki>
</pre>
</pre>
Line 30: Line 31:
|width=100px
|width=100px
|align=left
|align=left
|quote=Example of an important quote}}
|quote=Example of an important quote
|source=Clinton the CAT}}
[[Category:Styling templates]]
[[Category:Styling templates]]
== Template Data ==
== Template Data ==
Line 60: Line 62:
},
},
         "source": {
         "source": {
"description": "The name of the source & [[Template:Cite web|reference]] to include in the box",
"description": "The name of the source & reference to include in the box",
"required": false
"required": false
}
}

Latest revision as of 23:23, 9 October 2025


Add this to the source editor


{{Quote box
|quote=Example of an important quote}}

to create a box with a quote like this:

Example of an important quote


You can adjust the other parameters like this:


{{Quote box
|margin=2.5em
|width=100px
|align=left
|quote=Example of an important quote
|source=Clinton the CAT}}

Example of an important quote

- Clinton the CAT

Template Data

[edit source]

This creates a box containing a blockquote accoring to the parameters or defaults

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
marginmargin

Margin to leave around the box.

Suggested values
1em, 10px etc
Unknownoptional
alignalign

Alignment of the box

Suggested values
left,right,center etc.
Default
auto
Unknownoptional
widthwidth

Width of the box

Default
80%
Example
100px, 40%, etc
Unknownoptional
quotequote

The quote to include in the box

Unknownrequired
sourcesource

The name of the source & reference to include in the box

Unknownoptional