Help:Templates: Difference between revisions

From Halopedia, the Halo wiki

m (Reverted edits by 210.174.41.209 (Talk); changed back to last version by Dragonclaws)
No edit summary
Line 25: Line 25:


Before you edit a template be wary of your changes as they will be reflected across many, in the some case dozens of pages.  To edit a Template you just type in the search box "Template:Template Name Here".  For example to edit the Flood Template type "Template:Flood" in the search box.
Before you edit a template be wary of your changes as they will be reflected across many, in the some case dozens of pages.  To edit a Template you just type in the search box "Template:Template Name Here".  For example to edit the Flood Template type "Template:Flood" in the search box.
==Advanced Templates==
Templates can also be custom built for each page that they're used.  A good example of this is the <nowiki>{{FactOrFictionTalk}}</nowiki> Template.  Every time this template is used it adds who added it, when and why.  The template does this by asking for those three "parameters" or values from the template.  So for example by typing in this information:
{{FactOrFictionTalk|05:08, 16 November 2006 (UTC)|[[User:Esemono|Esemono]]|This is just an example.}}


==See Also==
==See Also==

Revision as of 01:08, November 16, 2006

A template on Halopedia is a preset chunk of text that can be added to every page without having to retype the same text over and over. It is espically advantageous as you only have to change the text on one page and the change will be reflected on every page that contains the template.

Example

The template {{Flood}} as shown below can be added to every page that talks about the Flood. This allows the user to jump to other Flood Forms and if another Flood form is discovered then only one file, the Flood template file, needs to be edited.

More Uses

Another use of templates are, Templates that announce a page needs more work. For example, if an article is poorly written in terms of grammar, the template known as {{Grammar}} (see below) can be inserted into the page of the page. When {{Grammar}} is inserted into the top of the grammar-proofreading-needing article, when the page is saved, the following will show up:

Help.png
This article does not meet the grammar standards of Halopedia. Please repair this article so that it meets our standard.

When Halopedia editors come across this page, they should try to edit the article and look for grammar errors. After the person who placed the template is satisfied that the article has been cleaned up, then the line of code will be removed.

To Insert a Template

To insert a template, All templates are displayed on this page. The code that inserts a template into an article is always between double curly brackets - {{Insert Template Name Here}}. ex. {{Flood}}

Creating a Template

If you feel a need for a Template and want to create your own to add to pages then you can create your own. First search that your idea for a template doesn't already exist. Then type "Template: Template Name Here into the search box. The Search should come up empty with an option to create your own article with the search phrase. Create the Template, save and then add the template by using instructions above

Editing a Template

Before you edit a template be wary of your changes as they will be reflected across many, in the some case dozens of pages. To edit a Template you just type in the search box "Template:Template Name Here". For example to edit the Flood Template type "Template:Flood" in the search box.

Advanced Templates

Templates can also be custom built for each page that they're used. A good example of this is the {{FactOrFictionTalk}} Template. Every time this template is used it adds who added it, when and why. The template does this by asking for those three "parameters" or values from the template. So for example by typing in this information:

Template:FactOrFictionTalk

See Also