Template:Quote: Difference between revisions
From Space Station 14 Wiki
Created page with "<includeonly><!-- --><div class="quote"><!-- start quote wrapper --><div class="marks-wrapper"><!-- start marks wrapper --><div class="block"><!-- start quote block -->{{#if:{{{title|}}}|<div class="title">{{{title}}}</div>|}}<!-- -->{{#if:{{{text|{{{1|}}}}}}|<div class="text">{{{text|{{{1|}}}}}}</div>|}}<!-- --></div><!-- end quote block --></div><!-- end marks wrapper -->{{#if:{{{author|{{{2|}}}}}}|<div class="author">― {{#if:{..." |
fix inline param |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <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 17: | Line 18: | ||
-->[[Category:Pages with quotes]]</includeonly><noinclude> | -->[[Category:Pages with quotes]]</includeonly><noinclude> | ||
{{Documentation|bb= | {{Documentation|bb= | ||
{{uses template styles}} | |||
{{external template|https://defaultloadout.wiki.gg/wiki/Template:Quote}} | {{external template|https://defaultloadout.wiki.gg/wiki/Template:Quote}} | ||
}} | }} | ||
Line 55: | 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 63: | 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 |