Help:Templates: Difference between revisions

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


The template <nowiki>{{Print}}</nowiki> as shown below can be added to every page that talks about the how to print.  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.
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.


{{Print}}
{{Flood}}


==More Uses==
==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 <nowiki>{{Nocopy}}</nowiki> (see below) can be inserted into the page of the page. When <nowiki>{{Nocopy}}</nowiki> is inserted into the top of the grammar-proofreading-needing article, when the page is saved, the following will show up:
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:
{{Nocopy}}
{{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.
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.
Line 16: Line 16:
==To Insert a Template==
==To Insert a Template==


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>{{Print}}</nowiki>
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==
==Creating a Template==
Anonymous user