Difference between revisions of "Help:Templates"

From War Thunder Wiki
Jump to: navigation, search
(Created WIP Page for article)
 
m
(3 intermediate revisions by 2 users not shown)
Line 11: Line 11:
  
 
== Template navigation ==
 
== Template navigation ==
All templates are categorized according to their purpose. The main category for templates is called [[Category:Templates|Category:Templates]] , it contains general-purpose templates and subcategories with highly specialized templates.
+
All templates are categorized according to their purpose. The main category for templates is called [[:Category:Templates|Category:Templates]] , it contains general-purpose templates and subcategories with highly specialized templates.
  
 
Some main subcategories are:
 
Some main subcategories are:
 
* [[:Category:Navigation]] — navigation templates and navigation tables created using them.
 
* [[:Category:Navigation]] — navigation templates and navigation tables created using them.
 
* [[:Category:Design templates]] — the templates for which articles on aircraft, tanks, ships, their weapons, etc. are made out.
 
* [[:Category:Design templates]] — the templates for which articles on aircraft, tanks, ships, their weapons, etc. are made out.
<!-- Templates do not exist from RU to ENG translation. Verification needed
+
** [[:Category:Article messages]] — informational messages in articles created using the template [[:Template:Ambox|Ambox]].
** [[:Категория:Плашки]] — информационные сообщения в статьях, созданные при помощи шаблона [[:Шаблон:Плашка|Плашка]].
+
** [[:Category:Userboxes]] — information boxes that users can place on their personal pages.
** [[:Категория:Юзербоксы]] — информационные блоки, которые участники могут размещать на своих личных страницах.
 
-->
 
 
* [[:Category:Documentation]] — Template documentation. It is designed using [[:Template:Doc|doc]] and [[:Template:Docpage|docpage]] templates .
 
* [[:Category:Documentation]] — Template documentation. It is designed using [[:Template:Doc|doc]] and [[:Template:Docpage|docpage]] templates .
  
 
== Applying templates ==
 
== Applying templates ==
 
When using the code editor, templates are invoked as follows: <code><nowiki>{{Template name|(Parameters)}}</nowiki></code>
 
When using the code editor, templates are invoked as follows: <code><nowiki>{{Template name|(Parameters)}}</nowiki></code>
 +
 +
For example, typing <code><nowiki>{{Main|Help:Templates}}</nowiki></code> will produce:
 +
 +
{{Main|Help:Templates}}
  
 
When using the visual editor, go to the "Templates" section of the "Insert" menu, and select the desired template by name.
 
When using the visual editor, go to the "Templates" section of the "Insert" menu, and select the desired template by name.
Line 39: Line 41:
 
* [[:Template:Annotation]] — needed for small annotations;
 
* [[:Template:Annotation]] — needed for small annotations;
 
* [[:Template:Quote]] — used to highlight quotes in the text.
 
* [[:Template:Quote]] — used to highlight quotes in the text.
 +
 +
[[Category:Help]]

Revision as of 17:56, 25 January 2019

Templates are a class of special pages on the MediaWiki engine (on which War Thunder Wiki also works) whose contents can be displayed on any other page using only a short code to insert a template. In this case, the contents of the template will be displayed on another page only in the form in which it is recorded in the template itself.

You can read more about how templates work and are created on the MediaWiki engine in these articles:

This article provides brief information and describes the features of the use of templates in the War Thunder Wiki.

Template navigation

All templates are categorized according to their purpose. The main category for templates is called Category:Templates , it contains general-purpose templates and subcategories with highly specialized templates.

Some main subcategories are:

Applying templates

When using the code editor, templates are invoked as follows: {{Template name|(Parameters)}}

For example, typing {{Main|Help:Templates}} will produce:

Main article: Help:Templates

When using the visual editor, go to the "Templates" section of the "Insert" menu, and select the desired template by name.

When using the visual editor, the parameters used in this template will be automatically suggested for some templates. In all other cases, help on using a particular template can be found on its documentation page.

Useful templates

Popular and useful templates implemented in the War Thunder Wiki: