Template:Quote/doc
Template:Template doc page viewed directly
Usage
{{Quote|Phrase|Somebody}}
produces:
Phrase{{#if:Somebody |—Somebody{{#if:}}|,
}}
{{Quote|Phrase|Somebody|Somebody's full name}}
produces:
Phrase{{#if:Somebody |—Somebody{{#if:Somebody's full name}}|, Somebody's full name
}}
{{Quote|Phrase|Somebody|Somebody's full name|topic}}
produces:
Phrase{{#if:Somebody |—Somebody{{#if:Somebody's full name}}|, Somebody's full name
}}
Documentation
{{quote/doc}}
does something, edit this line saying what.
Usage
{{Quote/doc}}
- no parameter if applicable
{{Quote/doc|param}}
- positional parameter
{{Quote/doc|name=value}}
- named parameter
Example
Code | Result | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Quote/doc}}
|
doc |
{{#ifeq:show |show |
Template:Mbox
}}{{#if: | |
{{#ifexist:Template:Quote | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] |
}} }} |
}} For {{#if:linking a subject to a collection of quotes on Wikiquote|linking a subject to a collection of quotes on Wikiquote|other uses}}, see Template:Wikiquote{{#if:|{{#if:|, [[:{{{3}}}]], {{#if:|[[:{{{4}}}]], and [[:{{{5}}}]]|and [[:{{{4}}}]]}}| and [[:{{{3}}}]]}}}}.
Usage{{[[{{#if:|{{{SISTER}}}Template|Template}}:Quote|Quote]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} adds a block quotation to an article page. This is easier to type and more wiki-like than the equivalent HTML {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:pair |
close = | single = /> | open = > | pair = >...
}}{{#switch:pair |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}} tags, and has additional pre-formatted attribution and source parameters. Note: Block quotes do not normally contain quotation marks. See MOS:QUOTE. Synopsis
Example
|
—William Shakespeare{{#if:Julius Caesar, act III, scene I
|
, Julius Caesar, act III, scene I
}}
}}
RestrictionsIf you do not provide quoted text, the template generates a parser error message, which will appear in red text in the rendered page. If any parameter's actual value contains an equals sign (=), you must use named parameters. (The equals sign gets interpreted as a named parameter otherwise.) If any parameter's actual value contains characters used for wiki markup syntax (such as pipe, brackets, single quotation marks, etc.), you may need to escape it. See Template:! and friends. Be wary of URLs which contain restricted characters. The equals sign is especially common. Multiple paragraphsThe {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:o |
close = | single = /> | open = > | pair = >...
}}{{#switch:o |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}} element and any templates that use it do not honor newlines:
To resolve this, use the |
close = | single | open | pair = <{{#switch:poem | categorytree=categorytree | charinsert=charinsert | gallery=gallery | hiero=hiero | imagemap=imagemap | inputbox=inputbox | math=math | nowiki=nowiki | poem=poem | pre=pre | ref=ref | references=references | section=section | score=score | source=source | syntaxhighlight=syntaxhighlight | templatedata=templatedata | timeline=timeline | #default=tag
}}{{#if:| {{{params}}}}} }}{{#switch:open |
close = | single = /> | open = > | pair = >...
}}{{#switch:open |
single | open = | close | pair = </poem>
}} tag inside {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:o |
close = | single = /> | open = > | pair = >...
}}{{#switch:o |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}}:
TemplateData{{#if:| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
{{#ifeq:doc|sandbox||
Quote }} <templatedata>{ "description": "Adds a block quotation.", "params": { "text": { "label": "text", "description": "The text to quote", "type": "string", "required": false, "aliases": [ "1", "quote" ] }, "sign": { "label": "sign", "description": "The person who is being quoted", "type": "string", "required": false, "aliases": [ "2", "cite" ] }, "source": { "label": "source", "description": "A source for the quote", "type": "string", "required": false, "aliases": [ "3" ] } } }</templatedata> See alsoSimilar templates comparison:
as:Template:Quote bg:Шаблон:Цитат ca:Plantilla:Citació cs:Šablona:Citace cy:Nodyn:Dyfyniad da:Skabelon:Citat de:Vorlage:Zitat dsb:Pśedłoga:Citat es:Plantilla:Cita eo:Ŝablono:Citaĵo eu:Txantiloi:Aipua fa:الگو:نقل قول fi:Malline:Cquote fr:modèle:citation gl:Modelo:Cita gu:ઢાંચો:ઉક્તિ he:Template:ציטוט hi:साँचा:Quote hsb:Předłoha:Citat hu:Sablon:Idézet hy:Կաղապար:Քաղվածք id:Templat:Quote is:Snið:Tilvitnun it:Template:quote ja:Template:Quote ka:თარგი:ციტირება kk:Үлгі:Cquote ky:Калып:Цитата la:Formula:Locus lv:Veidne:Quotation mwl:Modelo:Quote no:Mal:Sitat os:Хуызæг:Cquote pl:Szablon:Cytat pt:Predefinição:Quote ro:Format:Cquote ru:Шаблон:Цитата sco:Template:Quote sh:Šablon:Citat sk:Šablóna:Citát sl:Predloga:Citatni blok sv:Mall:Citat | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Quote/doc|param}}
|
doc |
{{#ifeq:show |show |
Template:Mbox
}}{{#if: | |
{{#ifexist:Template:Quote | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] |
}} }} |
}} For {{#if:linking a subject to a collection of quotes on Wikiquote|linking a subject to a collection of quotes on Wikiquote|other uses}}, see Template:Wikiquote{{#if:|{{#if:|, [[:{{{3}}}]], {{#if:|[[:{{{4}}}]], and [[:{{{5}}}]]|and [[:{{{4}}}]]}}| and [[:{{{3}}}]]}}}}.
Usage{{[[{{#if:|{{{SISTER}}}Template|Template}}:Quote|Quote]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}} adds a block quotation to an article page. This is easier to type and more wiki-like than the equivalent HTML {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:pair |
close = | single = /> | open = > | pair = >...
}}{{#switch:pair |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}} tags, and has additional pre-formatted attribution and source parameters. Note: Block quotes do not normally contain quotation marks. See MOS:QUOTE. Synopsis
Example
|
—William Shakespeare{{#if:Julius Caesar, act III, scene I
|
, Julius Caesar, act III, scene I
}}
}}
RestrictionsIf you do not provide quoted text, the template generates a parser error message, which will appear in red text in the rendered page. If any parameter's actual value contains an equals sign (=), you must use named parameters. (The equals sign gets interpreted as a named parameter otherwise.) If any parameter's actual value contains characters used for wiki markup syntax (such as pipe, brackets, single quotation marks, etc.), you may need to escape it. See Template:! and friends. Be wary of URLs which contain restricted characters. The equals sign is especially common. Multiple paragraphsThe {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:o |
close = | single = /> | open = > | pair = >...
}}{{#switch:o |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}} element and any templates that use it do not honor newlines:
To resolve this, use the |
close = | single | open | pair = <{{#switch:poem | categorytree=categorytree | charinsert=charinsert | gallery=gallery | hiero=hiero | imagemap=imagemap | inputbox=inputbox | math=math | nowiki=nowiki | poem=poem | pre=pre | ref=ref | references=references | section=section | score=score | source=source | syntaxhighlight=syntaxhighlight | templatedata=templatedata | timeline=timeline | #default=tag
}}{{#if:| {{{params}}}}} }}{{#switch:open |
close = | single = /> | open = > | pair = >...
}}{{#switch:open |
single | open = | close | pair = </poem>
}} tag inside {{#if:| |
|
close = | single | open | pair = <blockquote{{#if:| {{{params}}}}}
}}{{#switch:o |
close = | single = /> | open = > | pair = >...
}}{{#switch:o |
single | open = | close | pair = </blockquote>
}}{{#if:| |
}}:
TemplateData{{#if:| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
{{#ifeq:doc|sandbox||
Quote }} <templatedata>{ "description": "Adds a block quotation.", "params": { "text": { "label": "text", "description": "The text to quote", "type": "string", "required": false, "aliases": [ "1", "quote" ] }, "sign": { "label": "sign", "description": "The person who is being quoted", "type": "string", "required": false, "aliases": [ "2", "cite" ] }, "source": { "label": "source", "description": "A source for the quote", "type": "string", "required": false, "aliases": [ "3" ] } } }</templatedata> See alsoSimilar templates comparison:
as:Template:Quote bg:Шаблон:Цитат ca:Plantilla:Citació cs:Šablona:Citace cy:Nodyn:Dyfyniad da:Skabelon:Citat de:Vorlage:Zitat dsb:Pśedłoga:Citat es:Plantilla:Cita eo:Ŝablono:Citaĵo eu:Txantiloi:Aipua fa:الگو:نقل قول fi:Malline:Cquote fr:modèle:citation gl:Modelo:Cita gu:ઢાંચો:ઉક્તિ he:Template:ציטוט hi:साँचा:Quote hsb:Předłoha:Citat hu:Sablon:Idézet hy:Կաղապար:Քաղվածք id:Templat:Quote is:Snið:Tilvitnun it:Template:quote ja:Template:Quote ka:თარგი:ციტირება kk:Үлгі:Cquote ky:Калып:Цитата la:Formula:Locus lv:Veidne:Quotation mwl:Modelo:Quote no:Mal:Sitat os:Хуызæг:Cquote pl:Szablon:Cytat pt:Predefinição:Quote ro:Format:Cquote ru:Шаблон:Цитата sco:Template:Quote sh:Šablon:Citat sk:Šablóna:Citát sl:Predloga:Citatni blok sv:Mall:Citat |
See also
Discussion
Contents
Add issues below as you see fit, sign with ~~~~