Template:Quote box/testcases
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
This is the template test cases page for the sandbox of Template:Quote box. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: <templatestyles src="Hlist/styles.css"></templatestyles> |
This page shows a number of different test cases for using Quote Box.
Quote Box with Standard Class
Quote, Author, & Source with Default parameters
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameters: Title
{{Quote box | title = Fear of Death | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameters: font size and color of the text and title
{{Quote box | title = Fear of Death | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | fontsize = 70% | bgcolor = #eee | title_bg = #ccf | title_fnt = #008 }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameters: border, width and alignment of the box
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | align = left | width = 65% | border = 3px }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | align = center | width = 35% | border = 7px }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameters: text alignment of the quote and source
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | width = 50% | qalign = center | salign = right }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | width = 50% | qalign = right | salign = center }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameters: math text
{{Quote box | quote = Thus: {{block indent|1= <math>E=mc^2</math> }} | source = —<small>[[Albert Einstein]]</small> }} {{Lorem ipsum}}
{{Quote box}}
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Quote Box with Custom Generic CSS Class
Beware of compatibility issues: some classes require specific options not used or be set to particular value.
Custom Class: Letterhead
The letterhead custom class requires:
- No border:
| border = none
- Blank & Right-aligned Title:
| title = | title_bg = none | tstyle = text-align: right;
- Right-aligned Quote with transparent or existing background:
| qalign = right | bgcolor = none
- Extra line space after Author or Source:
<br /><br />
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. <br /><br /> | class = letterhead | border = none | title = | title_bg = none | tstyle = text-align: right; | qalign = right }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Custom Class: Collapsing Text
Collapsing sectional text using of {{hidden begin}}
and {{hidden end}}
When using non-default text style, same text style should be specified also to {{hidden begin}}
template
{{Quote box | quote = Cowards die many times before their deaths{{hidden begin|ta2=center}}The valiant never taste of death but once. {{hidden end}} | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | qalign = center }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Custom Styles: Rounded and Shadowed Box
Custom Rounded Shadowed Box using of | style =
to specify a generic CSS style parameter to supersede any duplicates in the preceding parameters.
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | style = border-radius:8px; }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Quote box | quote = Of all the wonders that I have heard, It seems to me most strange that men should fear; Seeing death, a necessary end, Will come when it will come. | author = Julius Caesar | source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act II, Scene 2. | style = box-shadow:4px 4px 6px #A0A0A0; }} {{Lorem ipsum}}
{{Quote box}}
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Julius Caesar, William Shakespeare, Julius Caesar, Act II, Scene 2.
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Test case with source but blank author
{{Quote box|align=right|author=|bgcolor=#f6f7f0|quote=Songs in the future. No reverb. Close and direct. Dense with easy words. Don't rely on hanging emotions or drawn-out notes. Engage the mind's chewing teeth. Say everything as it is. No metaphors. Resist big-picture reflections.|salign=right|source=An example of Elverum's notes.|title=|tstyle=font-weight:normal;font-size:100%;|width=380px}}
{{Quote box}} | {{Quote box/sandbox}} |
---|---|
<templatestyles src="Template:Quote_box/styles.css" />
Songs in the future. No reverb. Close and direct. Dense with easy words. Don't rely on hanging emotions or drawn-out notes. Engage the mind's chewing teeth. Say everything as it is. No metaphors. Resist big-picture reflections.
|
<templatestyles src="Template:Quote_box/sandbox/styles.css" />
Songs in the future. No reverb. Close and direct. Dense with easy words. Don't rely on hanging emotions or drawn-out notes. Engage the mind's chewing teeth. Say everything as it is. No metaphors. Resist big-picture reflections.
|