Basically it works like this
For example, if you wanted to add this box (below) to a page, you have two options.
|
You could put this code directly onto the current page.
{| id="mp-topbanner" style="width:50%; background:#fcfcfc; margin-top:1.2em; border:1px solid #ccc;"
| style="width:56%; color:#000;" |
{| style="width:280px; border:none; background:none;"
| style="width:280px; text-align:center; white-space:nowrap; color:#000;" |
<div style="font-size:250%; border:none; margin:0; padding:.1em; color:#000;">A Template Example</div>
<div style="top:+0.2em; font-size:95%;">An Open-Access, Peer-Reviewed, Example</div>
|}
| style="width:16%; font-size:95%;" |
* [[Articles]]
* [[Posters]]
* [[Protocols]]
|}
Or you could put the code on a template page. Template pages must all start with - Template: - and after the colon you can name it anything you'd like. For instance:
Template:ExampleTemplate
Then, any text on that page can be called to another page, simply by using the name of the template inside double squiggly brackets, like this:
{{ExampleTemplate}}
{{ExampleTemplate}} is located on the page, without cluttering up the page with code.