Topic on User talk:Looney Toons

Summary by Looney Toons

Answered.

NoneOfYourBusiness (talkcontribs)

How do you add quotes in page examples?

Looney Toons (talkcontribs)

It's easy to see if you edit the source of a page that has a quote on it. They're created with the quote template, {{quote}}. (Click that link to get the detailed documentation for the template.) In its simplest form, it works like this:

{{quote|This is a quote, which can be quite large. Each line is a separate paragraph, and you create new paragraphs just by starting a new line. As I did right here.}}

(It may not look like I have a line break there, but that's a side effect of the markup I'm using to show you what the source code for a quote looks like.)

On the rendered wiki page, this produces

This is a quote, which can be quite large. Each line is a separate paragraph, and you create new paragraphs just by starting a new line.
As I did right here.

You can also add who said it and what work it came from as optional parameters:

{{quote|This is another quote, which comes from a famous work by a famous person. |Famous Person|Famous Work}}

produces

This is another quote, which comes from a famous work by a famous person.

Famous Person, Famous Work

You can just put the author and skip the work if you want.

It's a good idea to put the attribution parameters on a separate line when you use them -- if you leave it on the same line as the rest of the quote, and the quote is long, it adds a little extra space above the last line of the quote, which I think is unsightly. Also, if your quote has an equals sign (=) in it anywhere (like if you're linking to a YouTube video), you'll need to use the {{=}} template in its place, or the quote template will interpret it as indicating a parameter and eat that entire part of the quote.