Jump to content
Wikipedia The Free Encyclopedia

Template:Poem quote

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
Warning This template is used on approximately 3,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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 {{Blockquote }}; see there for further usage details.

Example

Markup Renders as
{{Poem 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.

— Tweedledum and Tweedledee, in Lewis Carroll, "The Walrus and The Carpenter", Through the Looking-Glass

Compare with {{Blockquote }}:

Markup Renders as
{{Blockquote
|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.

— Tweedledum and Tweedledee, in Lewis Carroll, "The Walrus and The Carpenter", Through the Looking-Glass

Note that while the version above using {{Blockquote }} may appear to work in some browsers, it does not do so consistently in all of them. Use <poem>...</poem> – or a template like {{Poem quote}} 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 {{Poem quote }} 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. See a monthly parameter usage report for Template:Poem quote in articles based on its TemplateData.

TemplateData for Poem quote

Adds a block quotation.

Template parameters[Edit template data ]

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

Template  Use / description 
Block quotations General purpose
{{Blockquote }} Our standard block quotation template: unbordered page-wide quotation with optional smaller-sized attribution
{{Break lines }} Transforms line breaks into <br /> tags. It is very similar to the {{poem }} template, except that it does not invoke the <poem> MediaWiki extension.
{{Numbered verses }} Quote poems showing the verse numbers
{{Poem }} {{Blockquote }} variant for use with poems, song lyrics, and other things that would otherwise require the use of <poem> tags or frequent formatting elements (such as <br />); requires substitution
{{Poem quote }} {{Blockquote }} variant for use with poems, song lyrics, and other things that would otherwise require the use of <poem> tags or frequent formatting elements (such as <br />); does not require substitution
{{Poetically break lines }} (shortcut: {{pbl }}) Designed to format poetry simply and reliably; it differs from {{Poem quote }} in two significant ways: it does not add spacing around the poem that sets it apart as "block quote", and it automatically provides hanging indentation when lines are so long that they wrap
{{Translated blockquote }} Displays original language above and translated text below
{{Text and translation }} Displays original language and translated text, one beside the other
{{Verse translation }} Displays original language verse (defaults to italics) and translated verse (roman) side-by-side
{{Verse transliteration-translation }} Like {{Verse translation }}, but with a transliteration separate from the original version
{{Quote inline }}(shortcut: {{qi }}) Inline quotation
{{Cquote }} "centered quote" – Page-wide quote, between large quotation marks
{{Rquote }} "reduced quote" – Quote between large quotation marks in a reduced floating area
{{Quote frame }} Page-wide bordered quote
{{Quote box }} Quote floated in a reduced bordered box
{{Tweet }} For quoting directly from tweets. Automatically generates {{Cite tweet}} citation, or a custom reference can be provided.
   
Talk page quoting Not for use in articles nor the project space at all
{{Talk quote inline }}(shortcut: {{tq }},{{tqq }}, {{tqi }}, or {{tqqi }}) Inline quotation for use on talk pages
{{Not talk quote inline }}(shortcut: {{!tq }},{{!tqq }}, {{!tqi }}, or {{!tqqi }}) Inline quotation for what someone didn't say but could have, or perhaps should have, said.
{{Talk quote block }}(shortcut: {{tqb }}, {{tq2 }}) Block-style quotation for use on talk pages
{{Talk quote block minimalist }}(shortcut: {{tqbm }}) Minimalist version of above
   
Alternative For indenting non-quotations
{{Block indent }} To indent an entire block of content (uses <div> and CSS margins)
{{Divbox }} To frame messages or the example output of an article or template
The above documentation is transcluded from Template:Poem quote/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /