This page is protected against editing.

Template:Quote

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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.

— Example author, in: Source
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Quote/doc.

Template for block quotations.

Usage

{{Quote |1= |2= |3= |lang= }}

Template parameters

ParameterDescriptionDefaultStatus
1
text
quote
quoted textemptyrequired
2
sign
cite
author of quoteemptyoptional
3
source
source of quoteemptyoptional
langlanguage of quote, string must be an IETF language tagemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Template for block quotations.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
1 text quote

quoted text

Contentrequired
2 sign cite

author of quote

Contentoptional
3 source

source of quote

Contentoptional
lang

language of quote, string must be an IETF language tag, see template doc

Stringoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Notes

Example:

{{quote |lang=la
 |text={{lorem ipsum}}
 |sign=[[User:Example|N. N.]]
 |source=[[:s:en:Lorem ipsum (unsourced)|Lorem ipsum (unsourced)]] on ''Wikisource''
}}

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.

— N. N., in: Lorem ipsum (unsourced) on Wikisource

The language string must be an IETF language tag. Examples for allowed strings:

  • en, en-UK, en-CA
  • de, de-AT, de-CH
  • pt, pt-PT, pt-BR
  • sr, sr-Cyrl, sr-Latn
  • zh, zh-Hans, zh-Hant

Also see