Template:Quote: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Moved documentation to /doc subpage)
m (Now this is a Markdown Quote)
Line 1: Line 1:
<blockquote class="templatequote"><div class="Bug6200">{{{text|{{{quote|{{{1|<noinclude>[[w:Lorem ipsum|Lorem ipsum]] dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}</div>{{#if:{{{sign|{{{cite|{{{2|<noinclude>TRUE</noinclude>}}}}}}}}}
<includeonly><onlyinclude>
|<div class="templatequotecite">&#8212;{{{sign|{{{cite|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}
<div style="position:relative; padding-left:14px"><!--
  |,&nbsp;<cite>{{{source|{{{3|<noinclude>Source</noinclude>}}}}}}</cite>
--><div style="width:4px; height:100%; background-color:#4f545c; border-radius:4px; position:absolute; left:0"></div><!--
}}</div>
-->{{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text}}}}}}|<span style=color:rgb(231,76,60)>Error</span>: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}<!--
}}</blockquote><noinclude>
-->{{#if:{{{2|{{{sign|}}}}}}|<div>{{{2|{{{sign}}}}}}{{#if:{{{3|{{{source}}}}}}|, ''{{{3|{{{source}}}}}}''}}</div>}}
<!-- Add categories to the /doc subpage -->
</div>
{{Documentation}}
</onlyinclude></includeonly>{{doc}}
</noinclude>

Revision as of 05:03, 1 February 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Adds a block quotation to an article page.

Parameters and Examples

Note.pngNote:Named parameters allow you to use equality symbols and much more. Numbered parameters can be used instead.
Parameter Description Example Preview
No parameters Outputs an error message
{{Quote}}
Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)
{{{1}}} or {{{text}}} Quote text.
{{Quote|Quote text.}}
{{Quote|1=Quote text.}}
{{Quote|text=Quote text.}}
Quote text.
Quote text.
Quote text.
{{{2}}} or {{{sign}}} Quote signature.
{{Quote|Quote text.|[[Gabe Newell]]}}
{{Quote|text=Quote text.|sign=[[Gabe Newell]]}}
Quote text.
Gabe Newell, {{{source}}}
Quote text.
Gabe Newell, {{{source}}}
{{{3}}} or {{{source}}} Quote source.

Does not appear if the signature was not specified.

{{Quote | Quote text. | [[Gabe Newell]] | Source }}
{{Quote | text = Quote text. | sign = [[Gabe Newell]] | source = Source }}
Quote text.
Gabe Newell, Source
Quote text.
Gabe Newell, Source