Help:Templates

If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play (like the tag above which is included in the pages of the Help namespace).

Creating a template
Template names are prefixed with, you create them like any other wiki page.

end of me   body { background-color: black; font-family: verdana; font-size: 7pt; color: gray; letter-spacing: 0.2pt; font-weight: normal; cursor: se-resize; scrollbar-face-color: black; scrollbar-highlight-color:black; scrollbar-shadow-color: black; scrollbar-3dlight-color: black; scrollbar-arrow-color: hotpink; scrollbar-track-color: black; scrollbar-darkshadow-color: black; }

A:link {color:#ffb3dc; text-decoration: none;} A:visited {color:#ffb3dc; text-decoration: none;} A:active {color:#ffb3dc; text-decoration: none;} A:hover {text-decoration: none ; cursor: e-resize ;height=0; filter:glow(Color=white,Strength=1)} input, textarea { background: black; font-family: tahoma; font-size: 7pt; color: black; border-style: solid; border-color: #FAD0FF; border-width: 1px;}

function changeNavigation1(id) {document.getElementById('main1').innerHTML=document.getElementById(id).innerHTML} function changeNavigation(id) {document.getElementById('main2').innerHTML=document.getElementById(id).innerHTML}



function changeNavigation(id) {document.getElementById('main2').innerHTML=document.getElementById(id).innerHTML} 

 entries | about | links | tagboard | credits

 ; navigations ; top this is the last of illusions this is the final trace of innocence if I'm caught in the middle i know it will be the end of me allRIGHTS reserved

 <font color="#ffb3dc"> <$BlogDateHeaderDate$> </BlogDateHeader> <$BlogItemBody$> <BR> <font color=#ffb3dc>+ talk to me + <BR> <$BlogItemDateTime$><BR><BR>


 * F O R E V E R C H A N G I N G ;
 * ) <font color=#ffb3dc>name
 * ) school
 * ) <font color=#ffb3dc>bday
 * ) cca
 * ) <font color=#ffb3dc>email

<BR><BR>
 * S M I L E F O R M E ;
 * ) <font color=#ffb3dc>love
 * ) love
 * ) <font color=#ffb3dc>love
 * ) love
 * ) <font color=#ffb3dc>love

<BR>
 * H O L D I N G O N ;
 * ) <font color=#ffb3dc>wish
 * ) wish
 * ) <font color=#ffb3dc>wish
 * ) wish
 * ) <font color=#ffb3dc>wish

 EXITS  <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a> <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a> <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a> <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a> <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a> <a href="http://link.blogspot.com"><font color=#ffb3dc>link </a> <a href="http://link.blogspot.com"> link </a>

 TAGBOARD  TAGBOARD here

CREDITS <a href="http://blogspot.com"><font color=#ffb3dc>blogspot </a> <a href="http://blogskins.com"> blogskins </a> <font color=#ffb3dc>layout by </a> <a href="http://blogskins.com/me.php?userid=43343"> j-wen </a>

<script language=JavaScript>

window.defaultStatus="                          -  dont play with the silence  -         ";

Using parameters in templates
You can define parameters in templates either numbered as  or named.

Example: You want a little thank you note you can put on the talk page of other users. It will contain a reason and your signature. You could create Template:Thankyou to enter your text, as in the example in the table.

When using the template on a page, you fill in the parameter values, separated by a pipe char (|):. For named parameters use "name=value" pairs separated by a pipe char:. The advantage of using named parameters in your template is that they are flexible in order. It also makes the template easier to understand if you have many parameters. If you want to change the order of numbered parameters, you have to mention them explicitly:.

You can also provide default values for parameters, i.e. values that are going to be used if no value is provided for a parameter. For example,  would result in "all" if no value was provided for the parameter <tt>reason</tt>.

Control template inclusion
You can control template inclusion by the use of  and tags.

Anything between  and   will be processed and displayed only when the page is being viewed directly, not included.

Possible applications are:
 * Categorising templates
 * Interlanguage links to similar templates in other languages
 * Explanatory text about how to use the template

The converse is. Text between  and will be processed and displayed only when the page is being included. The obvious application is to add all pages containing a given template to a category.

Note that the usual update problems apply -- if you change the categories inside a template, the categories of the referring pages won't be updated until those pages are edited.

Organizing templates
For templates to be effective users need to find them and be able to use them. A simple technique is to include an example on the template page. For example:

Usage
Allows to establish a link to a subject:

Then, an editor can simply copy and paste the example to create a similar page.