Difference between revisions of "NeoDex:Templates"

From NeoDex
Jump to navigation Jump to search
m (seperated sections better)
Line 6: Line 6:


==Using a template==
==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.  
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.  


Line 21: Line 20:


==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===
<div align="center">
<div align="center">
{|style="background-color:#ffffff;width:350px;height:80px;border:0;" cellpadding="0" cellspacing="0"
{|style="background-color:#ffffff;width:350px;height:80px;border:0;" cellpadding="0" cellspacing="0"
Line 48: Line 45:


===Currentevent===
===Currentevent===
{{currentevent}}
{{currentevent}}


Line 62: Line 58:


===Deletion===
===Deletion===
{{deletion}}
{{deletion}}


Line 76: Line 71:


===Lowercase===
===Lowercase===
{{lowercase}}
{{lowercase}}


Line 92: Line 86:


===Merge===
===Merge===
{{merge}}
{{merge}}


Line 106: Line 99:


===PastFeatured===
===PastFeatured===
{|style="height:33px;width:223px;background-color:transparent;color:#000000;" cellpadding="0" cellspacing="0" align="center"
{|style="height:33px;width:223px;background-color:transparent;color:#000000;" cellpadding="0" cellspacing="0" align="center"
!style="width:33px;"|[[Image:starmuffinmini.png]]
!style="width:33px;"|[[Image:starmuffinmini.png]]
Line 123: Line 115:


===Policy===
===Policy===
{{policy}}
{{policy}}


Line 137: Line 128:


===Protected===
===Protected===
{{protected}}
{{protected}}


Line 151: Line 141:


===ZeroTolerance===
===ZeroTolerance===
{{ZeroTolerance}}
{{ZeroTolerance}}


Line 167: Line 156:


===Faerie===
===Faerie===
{{faerie}}
{{faerie}}


Line 181: Line 169:


===NQ2===
===NQ2===
{{nQ2}}
{{nQ2}}


Line 195: Line 182:


===TNT===
===TNT===
 
{{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.  
[[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.  
Line 225: Line 211:


===BattleInfo===
===BattleInfo===
{{BattleInfo}}
{{BattleInfo}}


Line 242: Line 227:
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 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 ''7'' the location of where the challenger is found. A URL link should be included if possible - the reason that the variable name is stated in this case is so that URLs can include equals signs without breaking. In the case of an automatic challenger, the phrase ''Automatic Challenger'' should be used instead.  
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 ''7'' the location of where the challenger is found. A URL link should be included if possible - the reason that the variable name is stated in this case is so that URLs can include equals signs without breaking. In the case of an automatic challenger, the phrase ''Automatic Challenger'' should be used instead.


----
----


===Infobox Game===
===Infobox Game===
{{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.  
[[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:
To add the Infobox Game template to a page, use the following code:
Line 260: Line 244:
'''|Ratio=}}'''
'''|Ratio=}}'''


In this template, the ''GameImage'' variable should hold the name of the Click-to-Play image of the game in question, uploaded to the NeoDex. The double square brackets and the namespace ''Image:'' is not needed. For naming conventions, see the [[NeoDex:Image use policy]].  
In this template, the ''GameImage'' variable should hold the name of the Click-to-Play image of the game in question, uploaded to the NeoDex. The double square brackets and the namespace ''Image:'' is not needed. 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 ''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.  
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.


Finally, the ''Ratio'' variable should be filled with the [[NP]] to point ratio, that is, how many Neopoints 100 game points earns. This is no longer displayed on a game page, but often existing game articles retain it from before the Game Room revamp. If all else fails, this can be found from comparing a selection of scores to Neopoints given. Note that this should not just be done with one set of point score and Neopoints, as rounding takes place.  
Finally, the ''Ratio'' variable should be filled with the [[NP]] to point ratio, that is, how many Neopoints 100 game points earns. This is no longer displayed on a game page, but often existing game articles retain it from before the Game Room revamp. If all else fails, this can be found from comparing a selection of scores to Neopoints given. Note that this should not just be done with one set of point score and Neopoints, as rounding takes place.
<br clear=all>


----
----


===Infobox SponsorGame===
===Infobox SponsorGame===
{{Infobox SponsorGame}}
{{Infobox SponsorGame}}


Line 290: Line 274:
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.  
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.  


Finally, the ''Ratio'' variable should be filled with the [[NP]] to point ratio, that is, how many Neopoints 100 game points earns.  
Finally, the ''Ratio'' variable should be filled with the [[NP]] to point ratio, that is, how many Neopoints 100 game points earns.
<br clear=all>


----
----


===Infobox RetiredGame===
===Infobox RetiredGame===
{{Infobox RetiredGame}}
{{Infobox RetiredGame}}


Line 313: Line 297:
The majority of the variables in this template work like their counterparts in the Infobox Game template above. The additions are: the ''RetiredGame'' variable, where the name of the retired game is entered (this is not drawn automatically as frequently information on retired games should be included with their successor); the ''GG_Y/N'' variable, which should hold "Yes" or "No" to indicate whether the game is available in the [[Game Graveyard]] or not; and the ''Replacement'' variable, which should hold the name of its successor, if applicable, "N/A", if not.  
The majority of the variables in this template work like their counterparts in the Infobox Game template above. The additions are: the ''RetiredGame'' variable, where the name of the retired game is entered (this is not drawn automatically as frequently information on retired games should be included with their successor); the ''GG_Y/N'' variable, which should hold "Yes" or "No" to indicate whether the game is available in the [[Game Graveyard]] or not; and the ''Replacement'' variable, which should hold the name of its successor, if applicable, "N/A", if not.  


If the game was retired before the new Game Room system was adopted, the old categories should be used in the ''Categories'' variable.  
If the game was retired before the new Game Room system was adopted, the old categories should be used in the ''Categories'' variable.
<br clear=all>


----
----


===NQ2Boss===
===NQ2Boss===
{{NQ2Boss}}
{{NQ2Boss}}


Line 337: Line 321:


==Repetition Templates==  
==Repetition Templates==  
These templates are used for when a certain section of text appears on multiple pages with some variations, such as names, for denoting a specific event or characteristic the character or object was involved in or possesses. These help ensure that the pages remain consistent.  
These templates are used for when a certain section of text appears on multiple pages with some variations, such as names, for denoting a specific event or characteristic the character or object was involved in or possesses. These help ensure that the pages remain consistent.  



Revision as of 23:29, 1 April 2007