Difference between revisions of "Template:QuotationBox"

From Mizuumi Wiki
Jump to navigation Jump to search
m (Removed top of page empty space)
(Allowed for changing of quoted font size.)
Line 1: Line 1:
 
<includeonly>{| 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" | &#8220;
 
| style="font-size: 2.5em; color: gray; font-family:Times New Roman, Times, Georgie, serif; padding-top: -1em" | &#8220;
| 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|}}} | }}
Line 11: Line 11:
 
*'''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.

Revision as of 15:01, 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:

1.0}}}em"|

Test line 1
Test line 2
- Mizuumi

Example 2:

{{QuotationBox|Text without source}}

Output:

1.0}}}em"|

Text without source