Please proofread the daily tip...

It's displayed below one day early.

Some tips are obsolete. So we need new tips too. Please share your best tips and tip ideas at the Tip of the day department.


edit Tomorrow's tip of the day...

Using templates

Templates are a type of page that contain boilerplate text that is intended to be displayed on more than one page in Wikipedia.

This Tip of the day box is an example of a template (there are several versions actually), and besides being displayed here it is displayed on many userpages as well.

Template names start with the prefix "Template:" followed by the page name. The main version of the template you are reading right now is called "Template:totd".

To display a template on a page, go to the target page, click "edit", and add the template's name (with or without the prefix) surrounded by double curly brackets to the page's source text. (The text you see in the edit box when you click edit this page is called "source text", because it is a lot like programming code, which is called "source code").

Including a template on a page in this way is called "transclusion". Here's an example:

To include the Template:Philosophy topics, type this at the end of the philosophy article you wish to place it on::

{{Philosophy topics}}
Read more:
To add this auto-updating template to your user page, use {{totd-tomorrow}}
Displaying one page within another = Transclusion

Including the contents of a template page on a different page (by surrounding the page name with double braces, i.e. "{{}}" and leaving out the "Template:" prefix) is called transclusion.

This allows the other page to be automatically updated whenever the template page is updated.

Besides templates, pages in the following namespaces can be transcluded:

  • Category:
  • Help:
  • Portal:
  • User:
  • Wikipedia:

The only difference between transcluding these and templates is that you must include the prefix (followed by a colon) with the page's name inside the double braces.

Images also can be transcluded, but this is done using double square brackets instead of braces.

Here are some examples of transclusion:

{{Pic of the day}} · {{Help:Contents}} · [[Image:Wikipedia-logo.png]]

To add this auto-updating template to your user page, use {{totd}}

Hi, this is my user page.

I have been editing Wikipedia during my free periods at school to pass the time. I have created a script which decapitalizes the selected text when a button on the source editor toolbar is pressed.