NeoDex:Templates
Warning: Policy | |
---|---|
This page is, or relates closely to, NeoDex policy. While not set in stone, changes to policy should be discussed on the relevant talk page. |
Templates are special pages on the NeoDex that can be made to appear on any page - transclusion. This is useful for when the same message has to be repeated on several pages, or to help break up pages like the Main Page for easier editing.
If a template is modified, all the pages carrying that template will update to the new version.
Using a template
Templates exist in a special Template: namespace, much like this article exists in the NeoDex: namespace. This sets it apart from an actual article. If you want to link to a template, then you do so as you would any wikilink by enclosing Template: followed by the name of the article in double square brackets.
To make a template appear on a page, you type the name of the template encased in double curly brackets - {{ ... }}. You do not include the Template: part of the name - for example, to import the protected (see below) template at Template:Protected, you would type {{Protected}}.
The first character of a template is not case sensitive, so {{protected}} and {{Protected}} will reference the same template. The rest of the characters are case sensitive, however, so {{pRoTeCtEd}} won't reference the same template.
Some templates have variables, where you can fill in relevant details when you reference them. The lists below note where variables exist, how you complete them and with what. Variables are filled in by, after a template name, placing a vertical bar (|), then the variable name, then an equals sign, and then what the variable contains. To fill another variable, type another vertical bar, then it's variable name, an equals, and then what the variable should contain.
Article Status Templates
These templates appear at the top of an article to denote something about it's status, rather than to provide any information about the subject of the article or what collections of articles it is involved in.
Construction
This page is under construction | |
---|---|
{{{1}}} |
Template:Construction is used to denote that a page needs some work. It is more specific that a stub (see below) in that it gives a list of tasks that need completing on the page.
The Construction template includes a the Under Construction category, so that when added to a page, the page is added to this category also.
To add the Construction template to a document, use the following code:
{{construction|reason=}}
With the reason variable being filled with the reason why a page is under construction.
Currentevent
This article documents a current event. Information may update rapidly as the event progresses. |
Template:Currentevent is used to denote that the page's subject is a current event, so is prone to rapid updates, delays, and changes as the event progresses.
To add the Currentevent template to a document, use the following code:
{{currentevent}}
With no variables.
Deletion
Template:Deletion is used to note that an article had been nominated for deletion. A discussion of its pending removal will be found on the discussion page.
To add the Deletion template to a document, use the following code:
{{deletion}}
With no variables.
Lowercase
- The correct title of this article is {{{1}}}. The initial letter is capitalized due to technical restrictions.
Template:Lowercase is used when an article's name does not start with an uppercase letter, but technical restrictions means it must in the title of an article.
It should not be used because a word could be spelt with a lowercase character, only if it must.
To add the Lowercase template to a document, use the following code:
{{lowercase|}}
After the vertical bar in the template, the correct title should be written.
Merge
Merger Suggested | ||
---|---|---|
It has been suggested that this page be merged with [[{{{1}}}|another]]. See the discussion page for more information. |
Template:Merge is used when it has been suggested an article be merged with another, because of its overlapping themes, or because it is duplicated. Details can be found on the appropriate discussion page.
To add the Merge template to a document, use the following code:
{{merge}}
With no variables.
Policy
Warning: Policy | |
---|---|
This page is, or relates closely to, NeoDex policy. While not set in stone, changes to policy should be discussed on the relevant talk page. |
Template:Policy is used only on official policy pages, in conjunction to the page being protected.
The Policy template is added with the following code:
{{policy}}
With no variables.
Protected
THIS ARTICLE IS PROTECTED | |
---|---|
...to prevent recent vandalism or if the page is highly visible. A protected page cannot be edited by normal users. To discuss changes or request unprotection, see the talk page. |
Template:Protected is used to mark when a page has been protected.
To add the Protected template to a document, used the following code:
{{protected}}
With no variables.
Collection Templates
...to be added...
Infobox Templates
...to be added...