Difference between revisions of "Templates - Mediawiki"

From Help Wiki
(New page: '''Templates''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in <nowiki>{{double braces}}<...)
 
Line 4: Line 4:
 
Some templates take ''parameters'', as well, which you separate with the pipe character.
 
Some templates take ''parameters'', as well, which you separate with the pipe character.
  
{| border="1" cellpadding="2"
+
{| class="wikitable"
 
!width="1000"|What it looks like
 
!width="1000"|What it looks like
 
!width="500"|What you type
 
!width="500"|What you type

Revision as of 12:41, 20 July 2007

Templates are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}.

Some templates take parameters, as well, which you separate with the pipe character.

What it looks like What you type

Template:Transclusion demo

{{Transclusion demo}}

This template takes two parameters, and creates underlined text with a hover box for many modern browsers supporting CSS:

Template:H:title


This template takes two parameters, and
creates underlined text with a hover box
for many modern browsers supporting CSS:

{{H:title|This is the hover text|
Hover your mouse over this text}}



Source
http://en.wikipedia.org/wiki/Help:Wikitext_examples


See Also