Help:Wiki University Wikitext--Tables - Column Spans

What are templates

 * A container of such things as text, tables, images, etc that can be embedded anywhere on a page.
 * It can just about anything from a complete page of many words, images and tables to a small box with a link or two.
 * But it is material that you want to put on many pages without having to either type it or copy and paste it in each article where you want your material to appear.
 * Whatever is in the template, it will be the same in whatever article you embed the template.
 * Here is an example of an image template:

How to create a templates

 * It is created just like an ordinary article,
 * The main difference between an ordinary article and a template is how it is saved.
 * To save it as a template you first type "Template and a colon and then the title you want to give it:
 * Template:Template name


 * NOTICE the location of the word template and the colon. If the word template and its colon are missing, you will be saving just another article.

How to embed a template

 * To embed a template, you type the following code where you want the template to appear:


 * You can put the template anywhere on a page.
 * NOTICE you do not type word template and its colon between the curly braces. Just the name you gave the template.
 * NOTICE if you were to click on Edit this Page to see the coding for the template on the page you embedded it, you will only see the curly braces and the name of the template, not the coding that was used to created the template.

Editing templates

 * Editing template is just editing any article. Go to the template by typing "template:name of template" just like you saved it.  Then edit as normal.
 * This is critical to understand : Whenever you edit a template, those changes will show up in the template wherever it is embedded.  This good or it can be a problem.
 * This is a good thing if it is a template that needs updating from time to time. This saves you from having to go to every page the template is embedded to edit it.
 * This can be a problem because if you do want to update one particular template on a specific page and not all of them, you can't.

Editing only one embedded template

 * To get around this problem, if you think you will be making changes to a template and don't want to affect the others use this coding to embed the template:


 * NOTICE the word "subst" and the colon before the name of the template. This allows the template to be embedded in the article with the ability to be edited the edit to only show up on the page it is embedded in.
 * NOTICE this time if you were to click on Edit this Page, you will see all the code used to create the template. This in reality is a method of creating a complete page with only curly braces and a few words rather than having to copy and paste a long page of coding.  Very handy technique.
 * This is very useful if you are going to create many pages using the same format but want the ability to customize each page after it is created without changing the other pages created using that template.

 Exercises Check your answers >
 * Take our Lorem ipsum paragraph and place three made up references on it: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis.
 * Place the references at the bottom of this paragraph.

 Quick Quiz
 * References can only so long.
 * A. True
 * B. False


 * References will only show up at the bottom of the page.
 * A. True
 * B. False


 * References are only for book and page numbers
 * A. True
 * B. False

Check your answers >