Help:Template
A template is a Vikidia page that can be included in another page. This is used to standardize the presentation of warning messages or links to other pages.
Template is also the name of a specific Vikidia namespace.
You can view the list of main templates below. Generally, for each template, the page provides an explanation of its use. You can also look at pages where they are already used for examples. Templates are grouped in the Category:Templates as well as its subcategories and in the Template namespace.
Like other Vikidia pages, templates can be edited by all contributors. Be careful when editing them, as your changes may affect many pages.
Usage[change source]
Visual Editor[change source]
To insert a template into a page using the visual editor, you must:
- Place your cursor where the template should be inserted,
- In the editor's menu bar (at the top), click Insert, then Template,
- Enter the name of the template you want to add,
- Click Add Template, and finally Insert.
Wiki code editor[change source]
To call a template on a page using the wiki code editor, you must write:
{{template name}}
that is, the template name between {{ and }}. Depending on the template, you may or may not need to add parameters:
{{Template name|''parameters''}}
The template page explains the number and type of parameters to enter. To link to the template page, you must write:
{{t|template name}}
Some useful templates[change source]
Templates for users
|
Maintenance templates
|
|
Layout templates
|
Templates for links
|
Box templates
|
Programming
| ||
Creating and organizing template pages[change source]
A template can be created just like an encyclopedia article, for example by following a red link. In fact, if you call a template in a page's source text and that template does not exist, a red link will appear, such as: Template:Template does not exist (this displays the same result whether you write {{Template does not exist}} or [[Template:Template does not exist]], but the first will call the template when it is created).
Next, non-parameterizable templates are written like a normal page. However, you must use specific tags to delimit the part of the page that is actually the template, and what is called by another page. To put it simply, the page that serves as a template can contain an explanatory note, references, one or more categories, etc.—all of which pertain to the template itself, but not to the pages where it will be used (included). To separate these two areas (what pertains to the template and what pertains to the pages where it will be displayed), two specific tags are used:
- The <noinclude> ... </noinclude> tag must enclose all information pertaining to the template;
- The <includeonly> ... </includeonly> tag must enclose everything that is to be displayed on pages using this template.
Note: include is an English verb meaning to include. Only means only. No means No. In computer science, many functions are written using English words.
The rest follows the usual rules for creating pages.
For more information, see: Creating templates.
Including pages[change source]
It is also possible to include pages using the same curly braces. To tell MediaWiki that you want to include an article rather than a template, you must place a colon before it: {{:Abdoulino}}.
List of common templates[change source]
All templates can be found in the list of all pages in the "Template" namespace.
Maintenance templates[change source]
- {{Disambiguation}}: This is placed at the beginning of an article that is a disambiguation page. It informs the reader with a sentence that they are on a disambiguation page. Additionally, it ensures that the article is automatically categorized in the Category:Disambiguation.
- {{stub}}: This is placed at the beginning of a page, usually an article in the encyclopedia. It indicates that the page needs to be expanded. More specific variants exist, such as {{draft help}}, which is specific to help pages.
- {{Maintenance}}: This is placed at the beginning of an article that requires several maintenance actions.
- {{Simplify}}: This is placed at the beginning of an article that seems too complicated for children aged 8–13, or whose syntax is incorrect or questionable, or that is generally confusing.
- {{Proofread}}: This template is placed at the beginning of an article that needs to be proofread, preferably by an 8- to 13-year-old, to ensure the writing is easy to understand.
- {{Delete}}: This is placed at the beginning of an article for which deletion is requested, causing a red link to appear. A specific procedure must be followed once it has been added: see Help:Deletion.
- {{Work in progress}}: This indicates that work is currently underway on all or part of an article.
Magic words[change source]
Some templates were not created by Vikidia users but are included in the MediaWiki software used by Vikidia.
They also allow templates to automatically adapt to certain parameters such as the date, time, etc.
[change source]
Compliance with the GNU Free Documentation License and CC BY-SA for copied text:
Compliance with image licenses:
| License | Template to copy |
|---|---|
| Public domain | |
| Original work | {{PD-author}} |
| Older work | {{PD-old}} |
| U.S. Government | {{PD-US}} |
| Creative Commons Licenses | |
| "Attribution-ShareAlike" 4.0 | {{CC-BY-SA-4.0}} |
| "Attribution-ShareAlike" 3.0 | {{cc-by-sa-3.0}} |
| "Attribution-ShareAlike" 2.5 | {{cc-by-sa-2.5}} |
| "Attribution-ShareAlike" ≤ 2.5 | {{CC-BY-SA}} |
| GNU Licenses | |
| Free Documentation (GFDL) | {{GFDL}} |
| General Public (GPL) | {{GPL}} |
| Specific permission | |
| Permission with conditions | {{Copyright with permission}} |
| Others | |
| There are many other possibilities. | See Category:License templates for the complete list. |
Templates for user talk pages[change source]
- {{Welcome}}: This is placed on the talk page of a newly registered contributor. It welcomes them.
- {{Userbox}}: This allows users to display information on their user page using parameters. A user may use it if they wish.
Emoticons[change source]
Emoticons should be used only on pages intended for discussion: user talk pages or pages related to articles, as well as in the Chat or Scholar sections (and nowhere else!).
- {{wink}} produces

- {{happy}} produces

- {{sad}} produces

- {{tongue}} produces

Formatting[change source]
- {{Start frame}}
- {{Meta box}}
- {{Clr}}
- {{Dropdown box}}
- {{Font}} (not recommended)
Characters[change source]
- {{IPA}}: International Phonetic Alphabet
Votes[change source]
These templates are to be used only on voting pages:
| Result | Syntax |
|---|---|
| Voting templates for all decision-making processes | |
| {{wait}} | |
| Voting templates for pages nominated for deletion | |
| {{keep}} | |
| {{DeleteVote}} | |
| Template:Merge | {{merge}} |
| Template:Split | {{split}} |
| {{move}} | |
| {{redirect}} {{rename}} | |