How To...Create A Template
Welcome to this "how to create a template" guide. Disclaimer, I'm no expert myself and I'm writing this guide as much as anything to serve as a point of reference for myself when editing templates. The aim is the guide will be as foolproof as possible, for my own benefit and for anyone else who can make use of it.
The Basics
There are many uses for templates but in their simplest form is simply a page that an editor has created, that can be called upon on other pages. You could create a template to call upon:
- An image
- Text
- A pre-made table
For example, if I created the template called "Template:Animals" and added the text "Welcome to this page, all about", I could call this template on pages names "Dog", "Cat" etc. To call the template, I would simply write the following:
{{Animals}}
I could then add the name of each animal after the template call. So on the dog page, I would write the following code:
{{Animals}} Dogs
Which then would show on the page as:
Welcome to this page, all about Dogs
TBC...