Help:Templates: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
(formating)
Line 1: Line 1:
<!--Do not edit this page unless you are entirely sure about the verificability of the content that you are adding. Users that attempt to vandalize this page nay be banned.-->
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.


==What's a Template?==
==Example==


A '''template''' on Halopedia is a preset chunk of coding used on Halopedia that denotes a page's certain attrbute. What does that mean? For example, if an article is poorly written in terms of grammar, the template known as <nowiki>{{Grammar}}</nowiki> (see below) can be inserted into the page of the page. When <nowiki>{{Grammar}}</nowiki> is inserted into the top of the grammar-proofreading-needing article, when the page is saved, the following will show up:
The template <nowiki>{{Flood}}</nowiki> 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.
{{Grammar}}


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.
{{Flood}}


To insert a template, you'll have to find or create a template. All used templates are displayed below, and help can be recieved in order to create a template. The code that inserts a template into an article is always between double curly brackets - <nowiki>{{Insert Template Name Here}}</nowiki>. However, if you wanted to see the original template to edit it, you have to type in <nowiki>[[Template: Template Name Here]]</nowiki> into the search box.
==More Uses==


What kinds of templates can you expect to find? You'll normally find them marking stubs, pages requiring cleanup, exceptional articles, and sometimes, like <nowiki>{{TalkAddNewMsg}}</nowiki>, doing some other features.
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 <nowiki>{{Grammar}}</nowiki> (see below) can be inserted into the page of the page. When <nowiki>{{Grammar}}</nowiki> is inserted into the top of the grammar-proofreading-needing article, when the page is saved, the following will show up:
{{Grammar}}


==List of Templates==
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.
 
===Cleanup===
 
----
 
For '''overall cleanup''' - [[Template:Cleanup]], displays as {{Cleanup}} when <nowiki>{{Cleanup}}</nowiki> is added at the top of a page that needs overall cleanup - errors in grammar, material, introduction, or other.
 
----
 
For '''grammar cleanup''' - [[Template:Grammar]], displays as {{Grammar}} when <nowiki>{{Grammar}}</nowiki> is added at the top of a page that specifically needs grammar proofreading
 
----
 
For '''factual content cleanup''' - [[Template:FactOrFiction]], displays as {{FactOrFiction}} when <nowiki>{{FactOrFiction}}</nowiki> is added at the top of a page that specifically needs fact-checking
 
----
 
For an '''article needing renaming''' - [[Template:ArticleName]], displays as {{ArticleName}} when <nowiki>{{ArticleName}}</nowiki> is added at the top of a page that needs renaming
 
===Stub===


----
==To Insert a Template==


For an article '''stub''' - [[Template:Stub]], displays as {{stub}} when <nowiki>{{stub}}</nowiki> is added at the bottom of a short insufficient page
To insert a template,  All templates are displayed [[:Category:Templates|on this page]]. The code that inserts a template into an article is always between double curly brackets - <nowiki>{{Insert Template Name Here}}</nowiki>.  ex. <nowiki>{{Flood}}</nowiki>


----
==Creating a Template==


For a '''starship stub''' - [[Template:Stub-Starship]], displays as {{Stub-Starship}} when <nowiki>{{Stub-Starship}}</nowiki> is added at the top of a page that is a starship stub
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


===Other===
==Editing a Template==


For '''leaving messages on talk pages''' - [[Template:TalkAddNewMsg]], displays as {{TalkAddNewMsg}} when <nowiki>{{TalkAddNewMsg}}</nowiki> is added to the top of a talk page
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.


----
==See Also==


For '''unsigned comments''' - [[Template:Unsigned]], displays as {{Unsigned|Enter Unsigned Person's Name Here}} when <nowiki>{{Unsigned|Enter Unsigned Person's Name Here}}</nowiki> is added behind an unsigned comment
*[[:Category:Templates|List of Templates]]


===Exceptional Article===


----


For an '''exceptional article''' - [[Template:ExceptionalArticle]], displays as {{ExceptionalArticle}} when <nowiki>{{ExceptionalArticle}}</nowiki> is added at the top of a page that is exceptionally written
===Ages===
----
{{Ages}}
Used when wanting to display the Covenant History or "Ages"
===Delete===
----
{{Delete}}
Used when wanting to suggest an article for deletion.
===Flood===
----
{{Flood}}
Used at the bottom of articles that describe the various [[Flood]] forms.


[[Category: Help]]
[[Category: Help]]

Revision as of 23:07, August 19, 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.

See Also