Template:QuotationBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Added better documentation) |
||
Line 6: | Line 6: | ||
| 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;" | ” | ||
|} | |} | ||
<noinclude> | <noinclude>__NOTOC__ | ||
Usage | ==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 2:=== | |||
<nowiki>{{QuotationBox|margin=center|source='''Mizuumi'''|text= | <nowiki>{{QuotationBox|margin=center|source='''Mizuumi'''|text= | ||
Test line 1<br> | |||
Test line 2 | |||
Output: | }}</nowiki> | ||
===Output:=== | |||
{{QuotationBox|margin=center|source='''Mizuumi'''|text= | {{QuotationBox|margin=center|source='''Mizuumi'''|text= | ||
Test line 1 | Test line 1<br> | ||
Test line 2 | |||
}} | }} | ||
===Example 2:=== | |||
<nowiki>{{QuotationBox|Text without source}}</nowiki> | <nowiki>{{QuotationBox|Text without source}}</nowiki> | ||
Output: | ===Output:=== | ||
{{QuotationBox|Text without source}} | {{QuotationBox|Text without source}} | ||
[[Category:Under Night In-Birth Exe:Latest]] | [[Category:Under Night In-Birth Exe:Latest]] | ||
</noinclude> | </noinclude> |
Revision as of 14:55, 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 2:
{{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 |
” |