Template:QuoteHUP/e
This template uses TemplateStyles: |
This template defines the two unique styles of quotes used in File:History of the University of Pennsylvania - Montgomery (1900).djvu. There are standard block quotes (the default setting for the template) which have left and right margins equal to zero, 92% font size, and a line height of 1.2em.
The reason for this template is so that Wikisource places paragraph tags in the correct place. Block quotes get their own paragraph tags and inline quotes do not.
Usage
[edit]- Start: {{QuoteHUP/s}}
- End: {{QuoteHUP/e}}
The default is a block quote. The optional first parameter, when set to q, changes the block quote to an inline quote (the q tag in HTML). However, this book has long inline quotes on new lines, but within the same paragraph so this template does exactly that. The second optional parameter, s, for the first template is for when the first parameter is set to q, allowing the inline quote to start a new paragraph, rather than be embedded in the middle of it. There is a second optional parameter for the closing template that, when set to c, will let the paragraph continue after a line break. This is for the paragraphs that have long quote inside of them.
Note regarding block quotes
[edit]<p>and
</p>(paragraph tags) before and after the paragraph, respectively. This is a requirement in the HTML specification.
Examples
[edit]Standard block quote
[edit]Code:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. {{QuoteHUP/s}} This is a regular block quote. {{QuoteHUP/e}} This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Produces:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
This is a regular block quote.
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Long quote, starting a paragraph
[edit]Code:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. {{QuoteHUP/s|q|s}}This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. {{QuoteHUP/e|q|c}}This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Produces:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph. This is a long quote that starts a new paragraph.
This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph.
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Long quote, ending a paragraph
[edit]Code:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text, {{QuoteHUP/s|q}}but this is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote.{{QuoteHUP/e|q}} This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Produces:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text leading into a long quote. This is text, but this is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote.
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Long quote, in the middle of a paragraph
[edit]Code:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text, {{QuoteHUP/s|q}}but this is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. {{QuoteHUP/e|q|c}}This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Produces:
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text leading into a long quote that will continue after the quote. This is paragraph text, but this is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote. This is a long quote.
This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph. This is a continuation of the paragraph.
This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text. This is plain text.
Centered text
[edit]Code:
{{QuoteHUP/s|class=center}} <poem>Here lies interred the Body of {{sc|Mr Theophilus Grew.}} He distinguished himself in Life by many exemplary Virtues and many valuable Qualifications. He was very deeply learned in Astronomy and the Mathematics whereby he rendered himself a most useful Member of Society He served as Professor of those noble sciences in the College of this City. He discharged the trust with honor and integrity.</poem> {{QuoteHUP/e}}
Produces:
Here lies interred
the Body of
Mr Theophilus Grew.
He distinguished himself in Life by
many exemplary Virtues
and many valuable Qualifications.
He was very deeply learned
in Astronomy and the Mathematics
whereby he rendered himself
a most useful Member of Society
He served as Professor of
those noble sciences
in the College of this City.
He discharged the trust with
honor and integrity.
Block-centered text
[edit]Code:
{{QuoteHUP/s|class=block-center}} Once more I seek the cypress shade,<br /> To weave a garland for the dead,<br /> {{gap|1em}}Alone, dejected, wan!<br /> Shall Willing quit this mortal strife,<br /> And not a verse show him, in life<br /> {{gap|1em}}And death—{{sc|an honest Man}}? {{QuoteHUP/e}}
Produces:
Once more I seek the cypress shade,
To weave a garland for the dead,
Alone, dejected, wan!
Shall Willing quit this mortal strife,
And not a verse show him, in life
And death—an honest Man?