From Wikipedia, the free encyclopedia
Jump to: navigation, search
en This user is a native speaker of English.
ja-2 この利用者は中級日本語ができます。
Search user languages


Fetch another random tip | Tip of the moment...
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-random}}
Flag of Australia.svg This user is an Australian.
Flag of Japan.svg This user lives in Japan.
Flag of Tokyo Prefecture.svg This user lives in Tokyo, Japan. Flag of Japan.svg
~~~~ Boy.pockets signs his posts and thinks you should too!
<ref> This user recognizes the importance of citing sources.
Tea bags.jpg This user recycles their teabags.
Tea bags.jpg This user recycles his teabags
K.A. This user Kicks Ass!
Nuvola apps display.png This user is a software engineer.
prog Like one third of Wikipedians, this user is a programmer.
Java This user can program in Java.
C# This user can program in C#
objc This user can program in
Crystal Clear mimetype source py.png This user programs in the awesome language of Python.
bat-1 This user is an occasional Batch programmer.
asp This user can program in ASP.
mysql This user writes programs that access MySQL.
php-2 This user is an intermediate PHP programmer.
re-1 This user writes regular expressions at a basic level.
Steel guitar-KayEss.1.jpeg This user believes that mankind cannot progress unless
Country Music is eliminated.
Dome 1.jpg This user believes in the separation of church and state. ReligionSymbolAbr.PNG