Wikipedia:Tip of the day/Display template gallery

From Wikipedia, the free encyclopedia

This is a gallery of Wikipedia tip-of-the-day (TOTD) display templates. To add the TOTD display template to your User or Talk page just put curly braces around the display template name and copy/paste it in to your User or Talk page, and save it.

Note: After saving, you may have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button. Firefox: hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see: Wikipedia:Bypass your cache.

You may have to Purge the Wikipedia server to see the change.

totd[edit]

{{totd}} is the main userspace version of the tip of the day display template, with light blue border, centered in the middle of the page. Complete with inspirational light bulb.

Note: This is the only template that can take one optional parameter: border-color, which is used to adjust the border color from the default (#ADD8E6). For example: {{totd|border-color=#444444}} would render a dark gray border instead of the light blue shown below by default:


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}}

totd b[edit]

{{totd b}} is a more compact centered version of the above template. Useful for columns:


Tip of the day...
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]]

Become a Wikipedia tipster

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


totd3[edit]

{{totd3}} is a left-aligned purple box version, useful for displaying the tip in columns (or instead you may align-right or align-center using the
{{right|{{totd3}}}} or {{center|{{totd3}}}} templates):


Tip of the day...
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 {{totd3}}

totd-random[edit]

{{totd-random}} is a centered tip of the moment template, that automatically displays a different tip every time you enter the page it is on. If the tip does not update, try clearing or purging your browser or server cache:


Tip of the moment...
How to bypass scrolling and clicking

When you are done editing, you do not have to scroll or click to summarize your edits, nor to Preview or Save the article.

You can jump to the Edit summary box by pressing the Tab ↹ key.

To preview the article, press Alt+⇧ Shift+p.

To save the article, press Alt+⇧ Shift+s or press ↵ Enter when the cursor is in the Edit summary box.

To see the changes you have made so far, press Alt+⇧ Shift+v.

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

totd-tomorrow[edit]

{{totd-tomorrow}} is a centered version that shows tomorrow's tip, and is used by Wikipedia tipsters to make sure that the tips are up-to-date and corrected before they go live:


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}}


tip of the day[edit]

{{tip of the day}} is a borderless left-justified version, with light bulb:


Tip of the day...
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
{{tip of the day}}

tip of the day with h3 heading[edit]

{{tip of the day with h3 heading}} creates a version with the tip in heading/paragraph left-justified format (no light bulb):


Tip of the day[edit]

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 {{tip of the day with h3 heading}}

totd2[edit]

{{totd2}} is the borderless left-justified version used on Wikipedia's Help page‍—‌which already has its own borders (No light bulb):


Tip of the day...
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 {{totd2}}

totd CP[edit]

{{totd CP}} is like the help page version, but with a box and light bulb. It is centered and it spans the whole field (screen or column) that it is in:


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 CP}}

totd-static[edit]

{{totd-static}} is like the totd version but the date is static. You have to manually change the date. Good for tip testing purposes.



Visit the Tips departmentedit
a simple image of a standard light bulb alluding to a good idea
How to bypass scrolling and clicking

When you are done editing, you do not have to scroll or click to summarize your edits, nor to Preview or Save the article.

You can jump to the Edit summary box by pressing the Tab ↹ key.

To preview the article, press Alt+⇧ Shift+p.

To save the article, press Alt+⇧ Shift+s or press ↵ Enter when the cursor is in the Edit summary box.

To see the changes you have made so far, press Alt+⇧ Shift+v.

To add this static template to your user page, use {{totd-static}}
To change the static tip date, click on the template link above, edit the template, and add a new date in Month Day format (yearless, no comma, no leading zero, like: February 2).

Jump to top of page


See also[edit]