Template:Quote: Difference between revisions
From Space Station 14 Wiki
No edit summary |
fix inline param |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Quote/styles.css"></templatestyles><!-- | <includeonly><templatestyles src="Template:Quote/styles.css"></templatestyles><!-- | ||
--><div class="quote"><!-- start quote wrapper | |||
--><div class="quote" style="{{#ifeq: {{yesno|{{{inline|}}}}}|yes|display: inline-block;}}"><!-- start quote wrapper | |||
--><div class="marks-wrapper"><!-- start marks wrapper | --><div class="marks-wrapper"><!-- start marks wrapper | ||
--><div class="block"><!-- start quote block | --><div class="block"><!-- start quote block | ||
Line 56: | Line 57: | ||
"example": "William Shakespeare (playwright)", | "example": "William Shakespeare (playwright)", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"suggested": true | |||
}, | |||
"inline": { | |||
"label": "Inline", | |||
"description": "Whether to render the quote block as an inline element.", | |||
"type": "boolean", | |||
"autovalue": "0", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 64: | Line 72: | ||
"2", | "2", | ||
"authorpage", | "authorpage", | ||
"title" | "title", | ||
"inline" | |||
], | ], | ||
"format": "block" | "format": "block" |
Latest revision as of 04:54, 11 April 2025
Uses template styles
This template uses template styles found in:
External template
This template originates from an external source:
Examples
Code | Result |
---|---|
{{Quote|text=Now is the winter of our discontent made glorious summer by this sun of York}} |
Now is the winter of our discontent made glorious summer by this sun of York |
{{Quote |title=Opening lines of ''Richard III'' |text=Now is the winter of our discontent made glorious summer by this sun of York}} |
Opening lines of Richard III Now is the winter of our discontent made glorious summer by this sun of York |
{{Quote |title=Opening lines of ''Richard III'' |author=William Shakespeare |text=Now is the winter of our discontent made glorious summer by this sun of York}} |
Opening lines of Richard III Now is the winter of our discontent made glorious summer by this sun of York |
{{Quote |title=Opening lines of ''Richard III'' |author=William Shakespeare |authorpage=wikipedia:William Shakespeare |text=Now is the winter of our discontent made glorious summer by this sun of York}} |
Opening lines of Richard III Now is the winter of our discontent made glorious summer by this sun of York |
{{Quote |author=William Shakespeare |authorpage=wikipedia:William Shakespeare |text=Now is the winter of our discontent made glorious summer by this sun of York}} |
Now is the winter of our discontent made glorious summer by this sun of York |
This template creates a styled block element for quotes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quoted Text | 1 text | The quoted text to be displayed.
| String | required |
Quote's Author | 2 author | The author of the displayed quote.
| Line | suggested |
Author's Page | authorpage | If the quote's author has a page on the Wiki, put the page name here.
| Page name | suggested |
Title | title | If the quote has a title, put it here.
| Line | optional |
Inline | inline | Whether to render the quote block as an inline element.
| Boolean | suggested |