Template:QuotationBox: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
No edit summary
m (→‎Example 2:: Typo, should be "Example 1")
Line 15: Line 15:
*'''source''': Source text at the bottom of the quotation box.
*'''source''': Source text at the bottom of the quotation box.
==Example==
==Example==
===Example 2:===
===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=

Revision as of 19:12, 23 November 2019

{{{1}}}

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

  • 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
Test line 2
- Mizuumi

Example 2:

{{QuotationBox|Text without source}}

Output:

Text without source