Difference between revisions of "Blockquote"

m (em dash)
m (better sourcing)
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<blockquote style="overflow:hidden;margin:1em 0;padding:0 40px;">
 
<blockquote style="overflow:hidden;margin:1em 0;padding:0 40px;">
''"{{{text|{{{1|{{error|No text given for quotation. Add a text parameter.}}}}}}}}"''
+
''"{{{1|{{error|No text given for quotation. Add a text parameter.}}}}}"''
{{#if:{{{source|{{{2|}}}}}}|<div style="line-height=1.5em;text-align:left;padding-left:1.6em;margin-top:0;">—&thinsp;<cite>{{{source|{{{2|}}}}}}</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 -->
 +
| game    = In-game description
 +
| website  = [{{{3|https://corepunk.com}}} Official website]
 +
| #default = {{#ifeq:{{{3|}}}|{{{3}}}<!-- if 3rd parameter exists
 +
-->|[{{{3}}} {{{2}}}]<!-- use 3rd parameter as link and 2nd parameter as label
 +
-->|{{{2}}}<!-- else use 2nd parameter as link
 +
-->}}
 +
}}</cite></div>}}
 
</blockquote></includeonly><noinclude>{{Blockquote/Documentation}}</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