Difference between revisions of "Template:Quote"
m (Trim trailing whitespace) |
m (Adding "align" parameter) |
||
Line 1: | Line 1: | ||
− | {| style="margin:auto; border-collapse:collapse; background-color:transparent; border-style:none;" | + | {| style="{{#switch:{{{align|center}}}|center = margin: auto; | left = margin-right: auto; | right = margin-left:auto; | margin: auto;}} | border-collapse:collapse; background-color:transparent; border-style:none;" |
| style="width:30px; vertical-align:top; padding-right:10px;" | [[File:Aquote1.png|30px|«|link=]] | | style="width:30px; vertical-align:top; padding-right:10px;" | [[File:Aquote1.png|30px|«|link=]] | ||
| <span style="font-style:italic"><cite>{{{1|Perhaps, that is quote?}}}{{#if:{{{2|}}}|<br /> {{{2|}}} }}{{#if:{{{3|}}}|<br /> {{{3|}}} }}{{#if:{{{4|}}}|<br /> {{{4|}}} }}{{#if:{{{5|}}}|<br /> {{{5|}}} }}{{#if:{{{6|}}}|<br /> {{{6|}}} }}{{#if:{{{7|}}}|<br /> {{{7|}}} }}{{#if:{{{8|}}}|<br /> {{{8|}}} }}{{#if:{{{9|}}}|<br /> {{{9|}}} }}</cite></span>{{#if:{{{author|}}}|<br /><div style="float:right">{{{author|}}}</div> }} | | <span style="font-style:italic"><cite>{{{1|Perhaps, that is quote?}}}{{#if:{{{2|}}}|<br /> {{{2|}}} }}{{#if:{{{3|}}}|<br /> {{{3|}}} }}{{#if:{{{4|}}}|<br /> {{{4|}}} }}{{#if:{{{5|}}}|<br /> {{{5|}}} }}{{#if:{{{6|}}}|<br /> {{{6|}}} }}{{#if:{{{7|}}}|<br /> {{{7|}}} }}{{#if:{{{8|}}}|<br /> {{{8|}}} }}{{#if:{{{9|}}}|<br /> {{{9|}}} }}</cite></span>{{#if:{{{author|}}}|<br /><div style="float:right">{{{author|}}}</div> }} |
Revision as of 22:55, 18 November 2019
![]() |
Perhaps, that is quote? | ![]() |
📚 Documentation
Parameters
Parameter | Description |
---|---|
Unnamed {{{0}}} - {{{9}}}
|
The lines that make up the quote |
author
|
The author of the quote and if desired a comma followed by the source (eg. a book or a website) [optional]. |
align
|
The alignment of the quote, defaults to center . Valid values: left , center , right
|
Examples
Code:
{{quote|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}
Result:
![]() |
Hello World!
|
![]() |
— Spode, the book of Godville |
Code:
{{quote|align=left|author=[[User:Spode|Spode]], the book of Godville|Hello World!}}
Result:
![]() |
Hello World!
|
![]() |
— Spode, the book of Godville |