Difference between revisions of "NeoDex:Templates"
(created, template info, article status templates) |
(added collections, various horizontal rules, and started infobox section.) |
||
Line 11: | Line 11: | ||
To make a template appear on a page, you type the name of the template encased in double curly brackets - '''<nowiki>{{ ... }}</nowiki>'''. 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 '''<nowiki>{{Protected}}</nowiki>'''. | To make a template appear on a page, you type the name of the template encased in double curly brackets - '''<nowiki>{{ ... }}</nowiki>'''. 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 '''<nowiki>{{Protected}}</nowiki>'''. | ||
The first character of a template is not case sensitive, so '''<nowiki>{{protected}}</nowiki>''' and '''<nowiki>{{Protected}}</nowiki>''' will reference the same template. The rest of the characters are case sensitive, however, so '''<nowiki>{{pRoTeCtEd}}</nowiki>''' | The first character of a template is not case sensitive, so '''<nowiki>{{protected}}</nowiki>''' and '''<nowiki>{{Protected}}</nowiki>''' will reference the same template. The rest of the characters are case sensitive, however, so '''<nowiki>{{pRoTeCtEd}}</nowiki>''' will reference a different 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. | 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. | ||
On certain templates, numerical variables are used and the variable name can be omitted, providing the information is entered in the correct order. | |||
==Article Status Templates== | ==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. | 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=== | ===Construction=== | ||
Line 32: | Line 34: | ||
With the '''reason''' variable being filled with the reason why a page is under construction. | With the '''reason''' variable being filled with the reason why a page is under construction. | ||
---- | |||
===Currentevent=== | ===Currentevent=== | ||
Line 43: | Line 47: | ||
'''<nowiki>{{currentevent}}</nowiki>''' | '''<nowiki>{{currentevent}}</nowiki>''' | ||
With no variables. | With no variables. | ||
---- | |||
===Deletion=== | ===Deletion=== | ||
Line 55: | Line 61: | ||
'''<nowiki>{{deletion}}</nowiki>''' | '''<nowiki>{{deletion}}</nowiki>''' | ||
With no variables. | With no variables. | ||
---- | |||
===Lowercase=== | ===Lowercase=== | ||
Line 69: | Line 77: | ||
'''<nowiki>{{lowercase|}}</nowiki>''' | '''<nowiki>{{lowercase|}}</nowiki>''' | ||
After the vertical bar in the template, the correct title should be written. | After the vertical bar in the template, the correct title should be written. | ||
---- | |||
===Merge=== | ===Merge=== | ||
Line 81: | Line 91: | ||
'''<nowiki>{{merge}}</nowiki>''' | '''<nowiki>{{merge}}</nowiki>''' | ||
With no variables. | With no variables. | ||
---- | |||
===Policy=== | ===Policy=== | ||
Line 93: | Line 105: | ||
'''<nowiki>{{policy}}</nowiki>''' | '''<nowiki>{{policy}}</nowiki>''' | ||
With no variables. | With no variables. | ||
---- | |||
===Protected=== | ===Protected=== | ||
Line 105: | Line 119: | ||
'''<nowiki>{{protected}}</nowiki>''' | '''<nowiki>{{protected}}</nowiki>''' | ||
With no variables. | With no variables. | ||
==Collection Templates== | ==Collection Templates== | ||
''...to be | These templates are added to the bottom of an article, above the article's categories, to show members of a similar family of, or a collection of related, articles. | ||
===Faerie=== | |||
{{faerie}} | |||
[[Template:Faerie]] lists and links to all [[Faeries]] in [[Neopia]] and categorises them by their involvement in Neopia. It should be included at the end of every article about a Faerie or a class of Faeries. | |||
To add the Faerie template to a document, use the following code: | |||
'''<nowiki>{{faerie}}</nowiki>''' | |||
With no variables. | |||
---- | |||
===NQ2=== | |||
{{nQ2}} | |||
[[Template:NQ2]] lists and links to the party members and the boss characters by Act for [[NeoQuest II]]. It should be included at the end of all NQII character articles. | |||
To add the NQ2 template to a document, use the following code: | |||
'''<nowiki>{{faerie}}</nowiki>''' | |||
With no variables. | |||
---- | |||
===TNT=== | |||
{{tNT}} | |||
[[Template:TNT]] lists and links to all the members of [[The Neopets Team]]. It should be included at the end of the article pages of all TNT staff members. | |||
To add the TNT template to a document, use the following code: | |||
'''<nowiki>{{TNT}}</nowiki>''' | |||
With no variables. | |||
---- | |||
===Wheels=== | |||
{{wheels}} | |||
[[Template:Wheels]] lists and links to all the Wheel games in Neopia. It should be included at the end of the game pages of the wheels. | |||
To add the Wheels template to a document, use the following code: | |||
'''<nowiki>{{TNT}}</nowiki>''' | |||
With no variables. | |||
---- | |||
==Infobox Templates== | ==Infobox Templates== | ||
Infoboxes are templates designed to standardise how certain information is displayed, such as a [[Battledome]] character's statistics or information about a [[game]]. | |||
===BattleInfo=== | |||
{{BattleInfo}} | |||
[[Template:BattleInfo]] is used to display the statistics of a 1-Player Battledome Challenger. It usually appears under the heading ''Battledome'' on a characters' page. | |||
To add the BattleInfo template to a document, use the following code: | |||
'''<nowiki>{{BattleInfo|</nowiki><br /> | |||
|<br /> | |||
|<br /> | |||
|<br /> | |||
|<br /> | |||
|<br /> | |||
|<br />''' | |||
The first variable to be entered into the template is the name of the Battledome character - the reason this is not automatically drawn from the article's name is because the character does not necessarily use the same name. | |||
The second variable is the location of the character's opponent pic, preferably uploaded onto the NeoDex. The third is the character's difficult rating, the forth the number of HP they start with, the fifth the increment of the number of HP per win, the sixth the name of the first item that can be stolen from the character, and the seventh the location of where the challenger is found. A URL link should be included if possible. In the case of an automatic challenger, the phrase ''Automatic Challenger'' should be used instead. | |||
===Infobox Game=== | |||
{{Infobox Game}} | |||
[[Template:Infobox Game]] is used to show basic information about a flash game. It should appear at the top of the article. | |||
To add the Infobox Game template to a page, use the following code: | |||
'''<nowiki>{{Infobox Game|GameImage=</nowiki><br /> | |||
|GameID=<br /> | |||
|World=<br /> | |||
|Categories=<br /> | |||
|Ratio=}}''' | |||
In this template, the '''GameImage''' variable should hold the location of the Click-to-Play image of the game in question. For naming conventions, see the [[NeoDex:Image use policy]]. The '''GameID''' variable should hold the identification number of a game. On the game's URL, this is the number at the end, after ''?game_id=''. The template uses this number to get the correct links to the High Score and game pages. The ''World'' variable should be filled in with what world the game takes place in, and the ''categories'' variable needs the list of categories a game is allocated under, in the order they are displayed on the game page. | |||
==Other Templates== | |||
''...to be added...'' | ''...to be added...'' | ||
[[category: PPT]] | [[category: PPT]] |
Revision as of 16:47, 6 January 2007
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}} will reference a different 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.
On certain templates, numerical variables are used and the variable name can be omitted, providing the information is entered in the correct order.
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
These templates are added to the bottom of an article, above the article's categories, to show members of a similar family of, or a collection of related, articles.
Faerie
Faeries | ||
---|---|---|
Air Faeries | Dark Faeries | Earth Faeries |
Briana · Casandia · Psellia · Zaira | Ariadne · Dark Faerie Sisters · Delina · Drakara · Jhudora · The Darkest Faerie | Ilere · Illusen · Iyana |
Fire Faeries | Light Faeries | Water Faeries |
Bree · Eithne · Ember · Nuria | Siyana | Marina · Naia · Nereid · The Drenched |
Other Faeries | ||
Aethia · Dung Faerie · Fyora · Grey Faerie · Jhuidah · Kari · Library Faerie · Mira · Soup Faerie · Tooth Faerie · Taelia · The Three · Valeane |
Template:Faerie lists and links to all Faeries in Neopia and categorises them by their involvement in Neopia. It should be included at the end of every article about a Faerie or a class of Faeries.
To add the Faerie template to a document, use the following code:
{{faerie}}
With no variables.
NQ2
NeoQuest II |
---|
General
NeoQuest II · Rohane · Mipsy · Talinia · Velm |
Bosses The Miner Foreman · Zombom · Sand Grundo · Ramtor · Leximp · Kolvars · Scuzzy · Siliclast · Gebarn II · Revenant · Coltzan's Ghost · Anubits · Meuka · Spider Grundo · The Four Faeries · Hubrid Nox · The Esophagor · Fallen Angel · Devilpuss · The Faerie Thief · Pant Devil · King Terask |
Template:NQ2 lists and links to the party members and the boss characters by Act for NeoQuest II. It should be included at the end of all NQII character articles.
To add the NQ2 template to a document, use the following code:
{{faerie}}
With no variables.
TNT
The Neopets Team |
Extant
Bancha Ninja · Black Widow · Bubbles · Bye-Gon Jinx · Cookie · Comastar · Cupcake · Dirigibles · Doug Hill · Dragona · Droplet · El Picklesaur · Jimmy James · Lawyerbot · LornaDesparow · Mister Shankly · Mr. Roboto · Mr. Insane · Pie · Scarlet O'Lara · Snot · Socktastic · Story Sabatino . Twitterpate · Undutchable · Rik Kinney · SeñorMalo . snarkie · Viola · ZiggyTron |
Former
Adam Powell · Donna Williams · Doug Dohring · Snowflake · TPOSG |
Template:TNT lists and links to all the members of The Neopets Team. It should be included at the end of the article pages of all TNT staff members.
To add the TNT template to a document, use the following code:
{{TNT}}
With no variables.
Wheels
Wheel Games |
Wheel of Excitement · Wheel of Extravagance · Wheel of Happiness · Wheel of Knowledge · Wheel of Mediocrity · Wheel of Misfortune · Wheel of Monotony |
Template:Wheels lists and links to all the Wheel games in Neopia. It should be included at the end of the game pages of the wheels.
To add the Wheels template to a document, use the following code:
{{TNT}}
With no variables.
Infobox Templates
Infoboxes are templates designed to standardise how certain information is displayed, such as a Battledome character's statistics or information about a game.
BattleInfo
|
Template:BattleInfo is used to display the statistics of a 1-Player Battledome Challenger. It usually appears under the heading Battledome on a characters' page.
To add the BattleInfo template to a document, use the following code:
{{BattleInfo|
The first variable to be entered into the template is the name of the Battledome character - the reason this is not automatically drawn from the article's name is because the character does not necessarily use the same name.
The second variable is the location of the character's opponent pic, preferably uploaded onto the NeoDex. The third is the character's difficult rating, the forth the number of HP they start with, the fifth the increment of the number of HP per win, the sixth the name of the first item that can be stolen from the character, and the seventh the location of where the challenger is found. A URL link should be included if possible. In the case of an automatic challenger, the phrase Automatic Challenger should be used instead.
Infobox Game
Templates | |
---|---|
ID # | {{{GameID}}} |
World | [[{{{World}}}]] |
Category | {{{Categories}}} |
High Scores | |
Game Page |
Template:Infobox Game is used to show basic information about a flash game. It should appear at the top of the article.
To add the Infobox Game template to a page, use the following code:
{{Infobox Game|GameImage=
GameID=
World=
Categories=
Ratio=}}
In this template, the GameImage variable should hold the location of the Click-to-Play image of the game in question. For naming conventions, see the NeoDex:Image use policy. The GameID variable should hold the identification number of a game. On the game's URL, this is the number at the end, after ?game_id=. The template uses this number to get the correct links to the High Score and game pages. The World variable should be filled in with what world the game takes place in, and the categories variable needs the list of categories a game is allocated under, in the order they are displayed on the game page.
Other Templates
...to be added...