Difference between revisions of "NeoDex:Templates"
Jump to navigation
Jump to search
(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]] |