Difference between revisions of "NeoDex:Templates"
Jump to navigation
Jump to search
(added collections, various horizontal rules, and started infobox section.) |
m |
||
Line 193: | Line 193: | ||
To add the BattleInfo template to a document, use the following code: | To add the BattleInfo template to a document, use the following code: | ||
'''<nowiki>{{BattleInfo|</nowiki><br /> | '''<nowiki>{{BattleInfo|</nowiki><br />''' | ||
|<br /> | '''|<br />''' | ||
|<br /> | '''|<br />''' | ||
|<br /> | '''|<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 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. | ||
Line 213: | Line 213: | ||
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: | ||
'''<nowiki>{{Infobox Game|GameImage=</nowiki><br /> | '''<nowiki>{{Infobox Game|GameImage=</nowiki><br />''' | ||
|GameID=<br /> | '''|GameID=<br />''' | ||
|World=<br /> | '''|World=<br />''' | ||
|Categories=<br /> | '''|Categories=<br />''' | ||
|Ratio=}}''' | '''|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. | 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. | |||
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. | |||
==Other Templates== | ==Other Templates== |