Jump to content

Template:Poem quote/doc: Difference between revisions

From Noumenapedia
→Example: fix {{Markup}}
 
m 1 revision imported
 
(No difference)

Latest revision as of 10:05, 9 September 2026

__EXPECTED_UNCONNECTED_PAGE__

Block indentation templates
Use case Template
Long quotations {{Blockquote}}
With line breaks ⏎ {{Poem quote}}
Non-quotations {{Block indent}}
{{Indent 5}} (inline)
Math formulae See <math> blocks

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
<syntaxhighlight lang="wikitext" style="" class="markup-markup"> {{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 --> }}</syntaxhighlight>

<poem>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.</poem>

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

Compare with {{Blockquote}}:

Markup Renders as
<syntaxhighlight lang="wikitext" style="" class="markup-markup"> {{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 --> }}</syntaxhighlight>

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

<templatedata> { "description": "Adds a block quotation.", "params": { "text": { "label": "text", "description": "The text to quote", "type": "content", "required": true, "aliases": [ "1", "quote" ] }, "char": { "label": "char", "description": "The character being quoted", "type": "content", "required": false, "example": "Alice", "suggested": true }, "sign": { "label": "sign", "description": "The person being quoted", "type": "content", "required": false, "aliases": [ "2", "cite", "author" ], "example": "Lewis Carroll ", "suggested": true }, "title": { "label": "title", "description": "The title of the poem being quoted", "type": "content", "required": false, "aliases": [ "3" ], "example": "Jabberwocky", "suggested": true }, "source": { "label": "source", "description": "A source for the quote", "type": "content", "required": false, "aliases": [ "4" ], "example": "Through the Looking-Glass, and What Alice Found There", "suggested": true }, "style": { "label": "style", "description": "Standard CSS style", "type": "string", "required": false } } } </templatedata>

See also