Template:QuotationBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Fixed wrong brackets) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="{{#switch: {{{margin|}}} | center = margin:auto | right = margin-left:auto; margin-right:0px | margin-left:0px; margin-right:auto}}" | <includeonly>{| style="{{#switch: {{{margin|}}} | center = margin:auto | right = margin-left:auto; margin-right:0px | margin-left:0px; margin-right:auto}}" | ||
| style="font-size: 2.5em; color: gray; font-family:Times New Roman, Times, Georgie, serif; padding-top: -1em" | “ | | style="font-size: 2.5em; color: gray; font-family:Times New Roman, Times, Georgie, serif; padding-top: -1em" | “ | ||
| style="vertical-align:top; border-left:solid 1px gray; border-right:solid 1px gray; padding-left:1em; padding-right:1em; font-style:italic;"| | | style="vertical-align:top; border-left:solid 1px gray; border-right:solid 1px gray; padding-left:1em; padding-right:1em; font-style:italic; font-size:{{{fontsize|1.0}}}em"| | ||
{{#if: {{{text|}}} | {{{text|}}} | {{{1}}} }} | {{#if: {{{text|}}} | {{{text|}}} | {{{1}}} }} | ||
{{#if: {{{source|}}} | <br>- {{{source|}}} | }} | {{#if: {{{source|}}} | <br>- {{{source|}}} | }} | ||
| style="font-size: 2.5em; color: gray; font-family:Times New Roman, Times, Georgie, serif;" | ” | | style="font-size: 2.5em; color: gray; font-family:Times New Roman, Times, Georgie, serif;" | ” | ||
|} | |}</includeonly> | ||
<noinclude>__NOTOC__ | <noinclude>__NOTOC__==Usage== | ||
==Usage== | |||
Creates a quotation box with chosen text. | Creates a quotation box with chosen text. | ||
===Template Parameters=== | ===Template Parameters=== | ||
*'''text''': Text to display as the quote. If "text" parameter isn't present, the template can use any unlabeled parameter instead (See Example 2). | *'''text''': Text to display as the quote. If "text" parameter isn't present, the template can use any unlabeled parameter instead (See Example 2). | ||
===Optional Parameters=== | ===Optional Parameters=== | ||
*'''fontsize''': Font size of quoted text. (Default: 1.0) | |||
*'''margin''': Horizontal alignment of the quotation. Will default to left side, but can be changed to "center" or "right". | *'''margin''': Horizontal alignment of the quotation. Will default to left side, but can be changed to "center" or "right". | ||
*'''source''': Source text at the bottom of the quotation box. | *'''source''': Source text at the bottom of the quotation box. | ||
==Example== | ==Example== | ||
===Example | ===Example 1:=== | ||
<nowiki>{{QuotationBox|margin=center|source='''Mizuumi'''|text= | <nowiki>{{QuotationBox|margin=center|source='''Mizuumi'''|text= | ||
Test line 1<br> | Test line 1<br> | ||
Test line 2 | Test line 2 | ||
}}</nowiki> | }}</nowiki> | ||
===Output:=== | ===Output:=== | ||
{{QuotationBox|margin=center|source='''Mizuumi'''|text= | {{QuotationBox|margin=center|source='''Mizuumi'''|text= |
Latest revision as of 15:03, 11 December 2019
Usage
Creates a quotation box with chosen text.
Template Parameters
- text: Text to display as the quote. If "text" parameter isn't present, the template can use any unlabeled parameter instead (See Example 2).
Optional Parameters
- fontsize: Font size of quoted text. (Default: 1.0)
- margin: Horizontal alignment of the quotation. Will default to left side, but can be changed to "center" or "right".
- source: Source text at the bottom of the quotation box.
Example
Example 1:
{{QuotationBox|margin=center|source='''Mizuumi'''|text= Test line 1<br> Test line 2 }}
Output:
“ |
Test line 1 |
” |
Example 2:
{{QuotationBox|Text without source}}
Output:
“ |
Text without source |
” |