Template:Style P-Epigraph custom
This style is to design paragraph in text. To highligt just several symbols use templates for symbol styles.
An epigraph before main text, set as in printed books: the quotation is justified in a narrow block, the first line of every paragraph is indented, the signature is placed right under the quotation, at its right edge. Everything else is switched by named parameters, so one template covers prose and verse, both sides of the page and all four kinds of signature. The older {{Style P-Epigraph}} is kept unchanged for the pages that already use it; this one is a separate template, so nothing that exists is affected.
Modifications:
- block: 400px wide by default, pressed to the right side of the page
- quotation: text-align: justify, text-indent: 2em, hyphens: auto, font-size: 90% — smaller than the main text
- signature: text-align: right at the edge of the quotation, font-style: italic by default
- every line of this is switched by a parameter, see the table below
To copy:
{{Style P-Epigraph custom||}}
Parameters
| Parameter | Values | Default | What it does |
|---|---|---|---|
| 1 | text | — | the quotation |
| 2 | text | — | the signature. May be left out |
signature |
italic, caps, plain, caps italic |
italic |
how the signature is set |
place |
right, center, left |
right |
where the block sits on the page |
verse |
yes |
— | verse instead of prose. A new line is made by a simple new line, an empty line makes a break between stanzas; no indent; the block is only as wide as the longest line |
width |
400px, 39%, auto |
400px (auto for verse) |
width of the block. auto makes it as wide as the text itself
|
align |
justify, left, right, center |
justify (left for verse) |
how the lines are aligned inside the block. With verse, center centres every line of the poem
|
indent |
2em, 0 |
2em (0 for verse) |
indent of the first line of every paragraph |
signshift |
2em, 0 |
0 (2em for verse) |
how far the signature stands out to the right of the quotation. In printed books the signature under verse is set a little to the right of the verse itself, so for verse the block is inset by this amount and the signature is pulled back to the edge of the text |
In prose the paragraphs of the quotation are separated by an empty line. In verse a new line is made by a simple new line, and an empty line separates the stanzas. In both cases the template must start at the beginning of a line.
This template needs one rule in MediaWiki:Common.css, next to the existing exceptions for
.poem p and .gallerytext p, otherwise align and
indent have no effect:
.epigraph p,
.poem-aligned p {
text-indent: inherit;
text-align: inherit;
}
Examples
Prose, everything by default
{{Style P-Epigraph custom|Gently to hear, kindly to judge, our play.|Shakespeare, ''Henry V''}}
Gently to hear, kindly to judge, our play.
Signature in small capitals
{{Style P-Epigraph custom|There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy.|Shakespeare, ''Hamlet''|signature=caps}}
There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy.
Author and work on two lines, block centered
{{Style P-Epigraph custom|The fault, dear Brutus, is not in our stars, but in ourselves, that we are underlings.|Shakespeare<br>''Julius Caesar''|signature=caps|place=center}}
The fault, dear Brutus, is not in our stars, but in ourselves, that we are underlings.
Julius Caesar
Prose in two paragraphs
{{Style P-Epigraph custom|Read not to contradict and confute; nor to believe and take for granted; but to weigh and consider.
Some books are to be tasted, others to be swallowed, and some few to be chewed and digested.|Francis Bacon, ''Of Studies''|signature=caps}}
Read not to contradict and confute; nor to believe and take for granted; but to weigh and consider.
Some books are to be tasted, others to be swallowed, and some few to be chewed and digested.
Verse, two stanzas
{{Style P-Epigraph custom|Let me not to the marriage of true minds
Admit impediments. Love is not love
Which alters when it alteration finds,
Or bends with the remover to remove.
O no! it is an ever-fixed mark
That looks on tempests and is never shaken;
It is the star to every wand’ring bark,
Whose worth’s unknown, although his height be taken.|Shakespeare, ''Sonnet 116''|verse=yes|signature=caps}}
Let me not to the marriage of true minds
Admit impediments. Love is not love
Which alters when it alteration finds,
Or bends with the remover to remove.
O no! it is an ever-fixed mark
That looks on tempests and is never shaken;
It is the star to every wand’ring bark,
Whose worth’s unknown, although his height be taken.
Verse with every line centred
{{Style P-Epigraph custom|Know then thyself, presume not God to scan;
The proper study of mankind is man.|Alexander Pope, ''An Essay on Man''|verse=yes|align=center|signature=caps}}
Know then thyself, presume not God to scan;
The proper study of mankind is man.
Without a signature
{{Style P-Epigraph custom|We are such stuff as dreams are made on, and our little life is rounded with a sleep.}}
We are such stuff as dreams are made on, and our little life is rounded with a sleep.