Template:User quote/Documentation

This template returns the contents of a user's "Quotes" page. To be most effective, the quotes page should be set up with multiple quotes as outlined below.

Usage
The template accepts one parameter, a user name.

User quotes page
To initialize the quotes for a user, set up a quotes page at "User:User name/Quotes". Copy and paste the following setup into the page.

Quotes go in each parameter, after the number and equals sign (e.g. 0= or 1=). The number of quotes listed goes at the end of the first line, just before the two braces at the end. In the template above, the number is "5". Note that this number is one more than the highest parameter number, because they start at zero.

To add a quote, start another line at the bottom of the template with the next number as the parameter name. In the example above, on the next line after the quote in 4=, you would put |5=quote. Then update the number in the first line (e.g. change it from "5" to "6").

To remove a quote, delete the whole line, including the pipe and parameter at the beginning. If you removed a quote in the middle of the template, meaning it wasn't the last quote in the list, renumber the parameters from zero to the last one so they go in order again. (You can just replace the last parameter with the parameter of the line you erased, but eventually this could get messy.) Finally, update the number in the first line (e.g. change it from "5" to "4").

Example
The following example is based on the user John Doe.

In the page "User:John Doe/Quotes":

To get a random quote: