Template:Blockquote: Difference between revisions
Appearance
m Added date field. |
m Removed extra line. |
||
| Line 1: | Line 1: | ||
<noinclude>{{Documentation}}</noinclude><blockquote style="border-left-color: {{#switch: {{{color|grey}}} | grey=#555555 | blue=#2e66b6 | red=#aa0000 | yellow=#fee372 }}; border-left-style: solid; border-left-width: 8px; padding-left: 10px;">'''{{#if: {{{title|}}}|{{{title|}}}{{break}}}} '''''{{#if: {{{date|}}}|{{{date|}}}{{break}}}} ''{{{text|}}}</blockquote> | <noinclude>{{Documentation}}</noinclude><blockquote style="border-left-color: {{#switch: {{{color|grey}}} | grey=#555555 | blue=#2e66b6 | red=#aa0000 | yellow=#fee372 }}; border-left-style: solid; border-left-width: 8px; padding-left: 10px;">'''{{#if: {{{title|}}}|{{{title|}}}{{break}}}} '''''{{#if: {{{date|}}}|{{{date|}}}{{break}}}} ''{{{text|}}}</blockquote><noinclude> | ||
<noinclude> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:35, 1 April 2021
Creates a block quote, useful for highlighting blocks of text that quote contents (with permission) from other sources.
Parameters
color- the color of left border, eithergrey(default),blue,red, oryellowtitle(optional) - the title of the code block, which will be displayed bolded in a separate linedate(optional) - the date of the code block, which will be displayed italicized in a separate linetext- the contents of the block quote
Source
{{Blockquote
| color =
| title =
| date =
| text =
}}
Examples
| Code | Result |
|---|---|
{{Blockquote
| text = Creates a block quote, useful for highlighting blocks of text that quote contents (with permission) from other sources.
}}
|
|
{{Blockquote
| color = yellow
| title = Template:Blockquote
| date = April 1, 2021
| text = Creates a block quote, useful for highlighting blocks of text that quote contents (with permission) from other sources.
}}
|
|