Difference between revisions of "Blockquote"

m (Fixed spacing)
m (better sourcing)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><blockquote style="overflow:hidden;margin:1em 0;padding:0 40px;">{{{text|{{{1|<onlyinclude>{{error|Error: No text given for quotation}}</onlyinclude>}}}}}}{{#if:{{{source|}}}|<div style="line-height=1.5em;text-align:left;padding-left:1.6em;margin-top:0;">—&thinsp;<cite>{{{source|}}}</cite></div>}}</blockquote></includeonly><noinclude>
+
<includeonly>
== Description ==
+
<blockquote style="overflow:hidden;margin:1em 0;padding:0 40px;">
This template displays large text passages as indented quotations.
+
''"{{{1|{{error|No text given for quotation. Add a text parameter.}}}}}"''
 
+
{{#if:{{{2|}}}|<div style="line-height=1.5em;text-align:left;padding-left:1.6em;margin-top:0;">—&thinsp;<cite>{{#switch:{{lc:{{{2}}}}}<!-- handle source -->
== Parameters ==
+
| game    = In-game description
{{bullet}} '''text''': The quoted text.
+
| website  = [{{{3|https://corepunk.com}}} Official website]
 
+
| #default = {{#ifeq:{{{3|}}}|{{{3}}}<!-- if 3rd parameter exists
{{bullet}} '''source''': Optional. The quotation source.
+
-->|[{{{3}}} {{{2}}}]<!-- use 3rd parameter as link and 2nd parameter as label
 
+
-->|{{{2}}}<!-- else use 2nd parameter as link
== Usage ==
+
-->}}
<pre>{{blockquote|text=This is a quotation}}
+
}}</cite></div>}}
{{blockquote|text=This is a quotation|source=Source}}</pre><noinclude>
+
</blockquote></includeonly><noinclude>{{Blockquote/Documentation}}</noinclude>

Latest revision as of 14:48, 11 August 2023

Description[edit]

Displays large text passages as indented quotations.

Usage[edit]

{{blockquote|<This is a quotation>|<game>}}
{{blockquote|<This is a quotation>|<website>}}
{{blockquote|<This is a quotation>|<website>|<https://corepunk.com>}}
{{blockquote|<This is a quotation>|<custom label>|<https://corepunk.wiki>}}
{{blockquote|<This is a quotation>|<https://corepunk.wiki>}}

Parameters[edit]

Arrow.png1: Quoted text.
Required.
Arrow.png2: Quotation label.
Optional.
Notes: Choose from game, website, a custom label, or a custom link.
Arrow.png3: Quotation source.
Optional.
Notes: A link to the quotation source. Use if parameter 2 isn't already a link.

Errors[edit]

No text given for quotation. Add a text parameter.

See Also[edit]

Arrow.pngQuotation