From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
m (category fix)
m (default width set to 300px)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{TemplateStyles|Template:Achievement/styles.css}}
This template is used to insert [[StrategyWiki:Achievements project|achievements and trophies]]. It is used as follows:
This template is used to insert [[StrategyWiki:Achievements project|achievements and trophies]]. It is used as follows:
<pre>{{achievement
<pre>{{achievement
|achievement=Name of the achievement
|name=Name of the achievement or trophy
|points=Gamerpoints value (optional)
|g=Gamerpoints value (optional)
|trophy=PS3 trophy type (Bronze, Gold, or Silver; optional)
|trophy=PS3 trophy type (Bronze, Gold, or Silver; optional)
|image=Filename of the achievement's icon ''without'' the "Image:" (e.g. "Game_achievement.png")
|image=Filename of the achievement's icon ''without'' the "File:" (e.g. "Game achievement.png")
|description=Description of what the achievement means. (Optional.)
|description=Description of what the achievement means. (Optional.)
|progress=Progress (number, optional)
|progress=Progress (number, optional)
|total=Total progress numbers available (number, optional)
|total=Total progress numbers available (number, optional)
|units=Units displayed instead of percentage (text, optional)
|width=Width in pixels of achievement (default: 300px)
}}</pre>
}}</pre>


To explain the ''progress'' and ''total'' parameters further, they're used for achievements which can have a measured progress, such as getting a certain number of kills in a game; the ''progress'' parameter would be how many kills you'd got, and the ''total'' parameter would be the (constant) total number of kills required to get the achievement.
To explain the ''progress'' and ''total'' parameters further, they're used for achievements and trophies which can have a measured progress, such as getting a certain number of kills in a game; the ''progress'' parameter would be how many kills you'd got, and the ''total'' parameter would be the (constant) total number of kills required to get the achievement.


All achievements have an ID of "achievement_''Achievement_name''" given to them, where ''Achievement_name'' is an anchor-encoded (using <nowiki>{{anchorencode}}</nowiki>) version of the value passed to the ''achievement'' parameter. This can be used to link to the achievement details from, for example, achievement list pages.
All achievements have an ID of "achievement_''Achievement_name''" given to them, where ''Achievement_name'' is an anchor-encoded (using <nowiki>{{anchorencode}}</nowiki>) version of the value passed to the ''achievement'' parameter. This can be used to link to the achievement details from, for example, achievement list pages.


<noinclude>[[Category:Template documenation|A]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 21:05, 13 December 2020

This template is used to insert achievements and trophies. It is used as follows:

{{achievement
|name=Name of the achievement or trophy
|g=Gamerpoints value (optional)
|trophy=PS3 trophy type (Bronze, Gold, or Silver; optional)
|image=Filename of the achievement's icon ''without'' the "File:" (e.g. "Game achievement.png")
|description=Description of what the achievement means. (Optional.)
|progress=Progress (number, optional)
|total=Total progress numbers available (number, optional)
|units=Units displayed instead of percentage (text, optional)
|width=Width in pixels of achievement (default: 300px)
}}

To explain the progress and total parameters further, they're used for achievements and trophies which can have a measured progress, such as getting a certain number of kills in a game; the progress parameter would be how many kills you'd got, and the total parameter would be the (constant) total number of kills required to get the achievement.

All achievements have an ID of "achievement_Achievement_name" given to them, where Achievement_name is an anchor-encoded (using {{anchorencode}}) version of the value passed to the achievement parameter. This can be used to link to the achievement details from, for example, achievement list pages.