Template:Quote: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 40: Line 40:
--></includeonly><noinclude>
--></includeonly><noinclude>
== Description ==
== Description ==
This template allows you to insert a quote on a page either as a block element or in-line with text.
This template allows you to insert a quote on a page either as a block element or inline element.


== Usage ==
== Usage ==
:'''Note:''' Splitting quotes in multiple lines is preferred but not required.
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: Tag Only</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Block Element</span><br><span style="font-weight: normal;">This method will insert the quote as a block element. Meaning no text will surround it when used.</span>
|-
|-
! width=25%|You Type
! width=25%|You Type
Line 59: Line 60:
}}
}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: Tag Only</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Inline Quote</span><br><span style="font-weight: normal;">To insert a quote as a block element (have text wrap around it), pass both <code>align=</code> and <code>width=</code>.<br><code>align=</code> can be passed with either <code>left</code> or <code>right</code>.<br><code>width=</code> can be either a set pixel amount (e.g., <code>250px</code>), or a percentage (e.g., <code>35%</code>)</span>
|-
|-
! width=25%|You Type
! width=25%|You Type
Line 78: Line 79:
}} Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis.Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas.
}} Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis.Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas.
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Example: Tag Only</span><br><span style="font-weight: normal;">[Brief Explanation here]</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Quote Reference</span><br><span style="font-weight: normal;">To include a footnote, pass <code>ref=</code>, with either the {{t|ref}}, {{t|Emma ref}}, or {{t|book ref}} templates.</span>
|-
|-
! width=25%|You Type
! width=25%|You Type
Line 86: Line 87:
|A thing someone said.
|A thing someone said.
|Who Said It
|Who Said It
|ref={{ref|text=A reference to the origin.}}
|ref={{ref|text=A reference to the quote's origin.}}
}}</pre>
}}</pre>
| style="background-color: white;" |{{quote
| style="background-color: white;" |{{quote
|A thing someone said.
|A thing someone said.
|Who Said It
|Who Said It
|ref={{ref|text=A reference to the origin.}}
|ref={{ref|text=A reference to the quote's origin.}}
}}
}}


Line 97: Line 98:
<references />
<references />
|}
|}
Splitting quotes in multiple lines is preferred but not required:


== Articles Using Template ==
== Articles Using Template ==

Revision as of 23:13, 18 April 2025

Description

This template allows you to insert a quote on a page either as a block element or inline element.

Usage

Note: Splitting quotes in multiple lines is preferred but not required.
Block Element
This method will insert the quote as a block element. Meaning no text will surround it when used.
You Type You Get
{{quote
|A thing someone said.
|Who Said It
}}
〝

A thing someone said. 〞

—Who Said It
Inline Quote
To insert a quote as a block element (have text wrap around it), pass both align= and width=.
align= can be passed with either left or right.
width= can be either a set pixel amount (e.g., 250px), or a percentage (e.g., 35%)
You Type You Get
{{quote
|A thing someone said. 
|Who Said It
|align=right
|width=250px
}}
Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis.Tempus leo eu aenean sed diam urna tempor.
〝

A thing someone said. 〞

—Who Said It
Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos. Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis.Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas.
Quote Reference
To include a footnote, pass ref=, with either the {{ref}}, {{Emma ref}}, or {{book ref}} templates.
You Type You Get
{{quote
|A thing someone said.
|Who Said It
|ref={{ref|text=A reference to the quote's origin.}}
}}
〝

A thing someone said. 〞

—Who Said It[1]

Notes

  1. ^ A reference to the quote's origin.

Articles Using Template