Template:Poem quote/doc: Difference between revisions
Template:Blockquote/SimpleMOS |
m 1 revision imported |
(No difference)
| |
Latest revision as of 08:40, 3 March 2026
| This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 3,800 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. |
| Use case | Template |
|---|---|
| Actual quotations | {{Blockquote}} |
| ↳ w/ line breaks | {{Poem quote}} |
| Non-quotations | {{Block indent}} |
| Inline non-quotations | {{in5}} |
| Math formula | See here |
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
[edit]| Markup | Renders as |
|---|---|
|
— Tweedledum and Tweedledee, in Lewis Carroll, "The Walrus and The Carpenter", Through the Looking-Glass |
Compare with {{Blockquote}}:
| Markup | Renders as |
|---|---|
|
— 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
[edit]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>
