Wikipedia:Tip of the day/June 26, 2008

What are templates used for?

Templates are pages that you can include on another page. They are usually used to insert boilerplate messages that need to be displayed on more than one page. But templates are quite versatile and can be used to accomplish many things. Some specialized uses for templates are: To include a template on a page, enclose it in double curly brackets, leaving out the prefix "Template:", like this:
 * Displaying a different page each day (like the Tip of the day, Pic of the day, etc.)
 * Infoboxes (e.g., Template:Infobox_Philosopher). To see Socrates in this infobox, click here.
 * Displaying a random page (see this implemented at Featured content).
 * Navigation bars (e.g., Template:browsebar).
 * Navigation boxes (e.g., Template:Greek myth).
 * WikiProject task boxes (e.g., Template:PhilosophyTasksBox).
 * Page headers, like the header at the top of the Help Desk



Read more: Templates

|Prior tip - |Next tip |Prior tip - |Next tip