Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Template:User quote/Documentation
(section)
Template page
Views
Read
Edit source
View history
associated-pages
Template
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==User quotes page== To initialize the quotes for a user, set up a quotes page at "User:''User name''/PAGENAME" where PAGENAME is the name of the page. The template expects the page name to be "Quotes" by default, so make sure you add the second parameter when using the template if you put the content somewhere else. Copy and paste the following setup into the page. <pre>{{#switch:{{#expr:{{CURRENTTIMESTAMP}} mod 6}}<!-- INSERT NUMBER OF QUOTES PLUS ONE HERE ("mod n+1") --> |0= |1= |2= |3= |4= }}</pre> Quotes go in each parameter, after the number and equals sign (e.g. <tt>0=</tt> or <tt>1=</tt>). The number of quotes listed plus one goes at the end of the first line, just before the two braces at the end. In the template above, the number is "6". Note that this number is two 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 <tt>4=</tt>, you would put <tt>|5=</tt>''quote''. Then update the number in the first line (e.g. change it from "6" to "7"). 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 "6" to "5").
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)