Difference between revisions of "Blockquote"

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