Template:Poem quote/doc: Difference between revisions

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
" unnamed voice in author's head" makes for a confusing example; add an actual poem, which is delivered by a fictional character in a novel
 
m 1 revision imported
 
(No difference)

Latest revision as of 10:11, August 21, 2020

A template for quoting poems, song lyrics, and other things that have frequent line breaks and other things that would generally be ignored in standard wiki formatting. Based on {{Quote}}; see there for further usage details.

Example

Markup Renders as
{{Poemquote
|text=<!-- or: 1= -->The sun was shining on the sea,
Shining with all his might:
He did his very best to make
The billows smooth and bright--
And this was odd, because it was
The middle of the night.
|char=Tweedledum and Tweedledee 
|sign= Lewis Carroll 
|source=<!-- or 4= -->Through the Looking-Glass
|title=<!-- or: 3= -->The Walrus and The Carpenter
|style=<!-- standard CSS style goes here -->
}}

The sun was shining on the sea,
Shining with all his might:
He did his very best to make
The billows smooth and bright--
And this was odd, because it was
The middle of the night.

— <span class="templatequote-character">Tweedledum and Tweedledee</span>, in Lewis Carroll, The Walrus and The Carpenter, Through the Looking-Glass

Compare with {{Quote}}:

Markup Renders as
{{Quote
|text=<!-- or: 1= -->The sun was shining on the sea,
Shining with all his might:
He did his very best to make
The billows smooth and bright--
And this was odd, because it was
The middle of the night.
|char=Tweedledum and Tweedledee 
|sign= Lewis Carroll 
|source=<!-- or 4= -->Through the Looking-Glass
|title=<!-- or: 3= -->The Walrus and The Carpenter
|style=<!-- standard CSS style goes here -->
}}

The sun was shining on the sea,

Shining with all his might: He did his very best to make The billows smooth and bright-- And this was odd, because it was

The middle of the night.

— <span class="templatequote-character">Tweedledum and Tweedledee</span>, in Lewis Carroll, The Walrus and The Carpenter, Through the Looking-Glass

Note that while the version above using {{Quote}} may appear to work in some browsers, it does not do so consistently in all of them. Use <poem>...</poem> – or a template like {{Poemquote}} that implements it – around material that requires that whitespace formatting be preserved as in the original, such as poems and interlinear glosses. Due to limitations of how MediaWiki parses wikimarkup and HTML, attempts to do this by just inserting blank lines and extra spaces will not work. This is true of all block elements. (Technical note: Although {{Poemquote}} uses the Tag:#poem markup rather than using <poem>, it is functionally the same.)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Poem quote

Adds a block quotation.

Template parameters

ParameterDescriptionTypeStatus
texttext 1 quote

The text to quote

Contentrequired
charchar

The character being quoted

Example
Alice
Contentsuggested
signsign 2 cite author

The person being quoted

Example
Lewis Carroll
Contentsuggested
titletitle 3

The title of the poem being quoted

Example
Jabberwocky
Contentsuggested
sourcesource 4

A source for the quote

Example
Through the Looking-Glass, and What Alice Found There
Contentsuggested
stylestyle

Standard CSS style

Stringoptional


See also