This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Category:Templates: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
imported>Hardvice
mNo edit summary
imported>Hardvice
mNo edit summary
Line 1: Line 1:
Templates are used to create special formatting or consistent elements in articles.  Templates allow formatting changes to be made to the template, and automatically have those changes reflected in all articles which include that template.  To include in a page, enter <tt><nowiki>{{name_of_template}}</nowiki></tt> in the page where you would like to include the template.  If a template accepts variables, enter them using a pipe, the name of the variable (if any), an equals sign, and the text you wish to use.  For example, <tt><nowiki>{{template|text=your_text_here}}</nowiki></tt> would insert the template "template" and set the variable "text" to "your text here".
Templates are used to create special formatting or consistent elements in articles.  Templates allow formatting changes to be made to the template, and automatically have those changes reflected in all articles which include that template.  To include in a page, enter <tt><nowiki>{{name_of_template}}</nowiki></tt> in the page where you would like to include the template.  If a template accepts variables, enter them using a pipe, the name of the variable (if any), an equals sign, and the text you wish to use.  For example, <tt><nowiki>{{template|text=your_text_here}}</nowiki></tt> would insert the template "template" and set the variable "text" to "your text here".


You can also include an article as if it were a template by placing the article's name, preceded by a colon, in double braces.  For example, typing <nowiki><tt>{{:Niki Sanders}}</tt></nowiki> would insert the text of Niki's article into the article you are editing.  If Niki's article is changed, the changes will be automatically reflected on the page in which it is included.
You can also include an article as if it were a template by placing the article's name, preceded by a colon, in double braces.  For example, typing <tt><nowiki>{{:Niki Sanders}}</nowiki></tt> would insert the text of Niki's article into the article you are editing.  If Niki's article is changed, the changes will be automatically reflected on the page in which it is included.


Finally some templates are meant to be substituted.  A substituted template copies the template's text into the article as text, not as a reference back to the template.  It basically just 'pastes' the content of the template into the article.  To substitute a template, enter <tt><nowiki>{{subst:template_name}}</nowiki></tt> and hit "save page".  When the edit is completed, the text from the template will appear in the article.
Finally some templates are meant to be substituted.  A substituted template copies the template's text into the article as text, not as a reference back to the template.  It basically just 'pastes' the content of the template into the article.  To substitute a template, enter <tt><nowiki>{{subst:template_name}}</nowiki></tt> and hit "save page".  When the edit is completed, the text from the template will appear in the article.

Revision as of 04:06, 29 October 2006

Templates are used to create special formatting or consistent elements in articles. Templates allow formatting changes to be made to the template, and automatically have those changes reflected in all articles which include that template. To include in a page, enter {{name_of_template}} in the page where you would like to include the template. If a template accepts variables, enter them using a pipe, the name of the variable (if any), an equals sign, and the text you wish to use. For example, {{template|text=your_text_here}} would insert the template "template" and set the variable "text" to "your text here".

You can also include an article as if it were a template by placing the article's name, preceded by a colon, in double braces. For example, typing {{:Niki Sanders}} would insert the text of Niki's article into the article you are editing. If Niki's article is changed, the changes will be automatically reflected on the page in which it is included.

Finally some templates are meant to be substituted. A substituted template copies the template's text into the article as text, not as a reference back to the template. It basically just 'pastes' the content of the template into the article. To substitute a template, enter {{subst:template_name}} and hit "save page". When the edit is completed, the text from the template will appear in the article.

For usage notes for a particular template, including any variables, see each article below.

Some template specific markup:

  • <noinclude>: Any text between the tags will appear in template's article but not be included when the template is added to pages. Useful for assigning category to the template but not the article or for typing usage notes for the template.
  • <includeonly>: Any text between the tags will appear in when the template is added to an article but not in the template's page itself. Useful for assigning category to the article but not to the template.