Adding Templates: Difference between revisions

No edit summary
mNo edit summary
Line 1: Line 1:
'''NB. Do not use the {T} button from the editor menu, as this will edit the original template!!'''<br>
To add a template to a page you should follow these steps:<br>
 
#Go to the [[Templates|Templates]] page and choose the template that you wish to use. Make a note of the name of the template that you are going to use.<br>  
To add a template to a page you should follow these steps:<br>  
#If you are adding a template to a new page first you need to [[Creating a new page|create a new page]]<br>  
 
#On an existing page, click the '''Edit Source '''link to edit the source code of your page.<br>  
#Go to the [[Templates|Templates]] page and choose the template that you wish to use.Make a note of the name of the template that you are going to use.<br><br>  
#Paste the following text '''<nowiki>{{subst:Template Name}}</nowiki>''' into the text entry box. For example, for a condition page you would insert '''<nowiki>{{subst:Condition}}</nowiki>'''. <br>  
#[[Creating a new page|Create a new page]]<br><br>  
#Click the '''Save page''' button at the top of the page.<br>
#Click on the '''Edit '''tab to edit your new page<br><br><br>[[Image:Edit tab.jpg|Image:Edit_tab.jpg]]<br><br>
#Click on the '''Wikitext '''button in the editing toolbar (top left)<br><br><br>[[Image:Wiki text button.jpg|Image:Wiki_text_button.jpg]]<br><br>  
#Paste the following text '''<nowiki>{{subst:Template Name}}</nowiki>''' into the text entry box. For example, for a condition page you would insert '''<nowiki>{{subst:Condition}}</nowiki>'''. <br><br><br>[[Image:Template embed code.jpg|Image:Template_embed_code.jpg]]<br><br>  
#Click the '''Save page''' button at the bottom of the page<br><br><br>[[Image:Save page button.jpg|Image:Save_page_button.jpg]]<br><br>


When you now view your page it will be populated with the template content. To edit this content click on the '''Edit '''tab and edit as normal.  
When you now view your page it will be populated with the template content. To edit this content click on the '''Edit '''tab and edit as normal.  

Revision as of 20:45, 6 August 2017

To add a template to a page you should follow these steps:

  1. Go to the Templates page and choose the template that you wish to use. Make a note of the name of the template that you are going to use.
  2. If you are adding a template to a new page first you need to create a new page.
  3. On an existing page, click the Edit Source link to edit the source code of your page.
  4. Paste the following text {{subst:Template Name}} into the text entry box. For example, for a condition page you would insert {{subst:Condition}}.
  5. Click the Save page button at the top of the page.

When you now view your page it will be populated with the template content. To edit this content click on the Edit tab and edit as normal.