Template:Achievement List Item: Difference between revisions
m TemplateData |
spoiler parameter and grade parameter |
||
Line 2: | Line 2: | ||
|- id="{{{name}}}" | |- id="{{{name}}}" | ||
| style="border-right:none;" | [[File:{{{image}}}|frameless|250px|thumb|]] | | style="border-right:none;" | [[File:{{{image}}}|frameless|250px|thumb|]] | ||
| style="border-left:none;" | '''{{{name}}}'''<br/>{{{description}}} | | style="border-left:none;" | '''{{{name}}}'''<br/> | ||
| style="text-align:center;" | {{{points}}}<noinclude> | {{{description}}}{{#if: {{{spoiler|}}} | | ||
{{Spoiler|{{{spoiler}}}|details}} | |||
| | |||
}} | |||
| style="text-align:center;" | {{{points}}} {{#if: {{{grade|}}} | | |||
[[File:{{{grade}}} ps trophy.png|20px|alt={{grade}}|]] | |||
| | |||
}}<noinclude> | |||
== Usage == | == Usage == | ||
Line 15: | Line 22: | ||
|description=Help Byron get elected mayor. | |description=Help Byron get elected mayor. | ||
|points=40 | |points=40 | ||
|grade=Silver | |||
}}{{Achievement List Item | }}{{Achievement List Item | ||
|name=A New Morality | |name=A New Morality | ||
|image=Ttp2_trophy_A_New_Morality.png | |image=Ttp2_trophy_A_New_Morality.png | ||
|description=Help Rand get elected mayor. | |description=Help Rand get elected mayor. | ||
|points=30 | |||
}}{{Achievement List Item | |||
|name=Ab Aeterno | |||
|image=Ttp2_trophy_Ab_Aeterno.png | |||
|description=Defy death. | |||
|spoiler=Save Miranda after completing all gold puzzles. | |||
|points=30 | |points=30 | ||
}} | }} | ||
Line 33: | Line 47: | ||
|description=Help Byron get elected mayor. | |description=Help Byron get elected mayor. | ||
|points=40 | |points=40 | ||
|grade=Silver | |||
}}{{Achievement List Item | }}{{Achievement List Item | ||
|name=A New Morality | |name=A New Morality | ||
|image=Ttp2_trophy_A_New_Morality.png | |image=Ttp2_trophy_A_New_Morality.png | ||
|description=Help Rand get elected mayor. | |description=Help Rand get elected mayor. | ||
|points=30 | |||
}}{{Achievement List Item | |||
|name=Ab Aeterno | |||
|image=Ttp2_trophy_Ab_Aeterno.png | |||
|description=Defy death. | |||
|spoiler=Save Miranda after completing all gold puzzles. | |||
|points=30 | |points=30 | ||
}} | }} | ||
Line 59: | Line 80: | ||
}, | }, | ||
"points": { | "points": { | ||
"label": "Points", | "label": "Points (Xbox)", | ||
"description": "The same number is used for Xbox and Epic.", | "description": "The same number is used for Xbox and Epic.", | ||
"example": "30", | "example": "30", | ||
Line 69: | Line 90: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "grade": { | ||
"label": "PS | "label": "Grade (PS)", | ||
"description": " | "description": "Use for PlayStation.", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Bronze", | "Bronze", | ||
Line 87: | Line 108: | ||
"spoiler", | "spoiler", | ||
"points", | "points", | ||
" | "grade" | ||
], | ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 11:12, 23 November 2023
|- id="{{{name}}}"
| style="border-right:none;" | [[File:{{{image}}}|frameless|250px|thumb|]]
| style="border-left:none;" | {{{name}}}
{{{description}}}
| style="text-align:center;" | {{{points}}}
Usage
{| class="wikitable" !Icon !Name / Description !Points {{Achievement List Item |name=A New Beginning |image=Ttp2_trophy_A_New_Beginning.png |description=Help Byron get elected mayor. |points=40 |grade=Silver }}{{Achievement List Item |name=A New Morality |image=Ttp2_trophy_A_New_Morality.png |description=Help Rand get elected mayor. |points=30 }}{{Achievement List Item |name=Ab Aeterno |image=Ttp2_trophy_Ab_Aeterno.png |description=Defy death. |spoiler=Save Miranda after completing all gold puzzles. |points=30 }} |}
produces
Describes one achievement. A functioning list of achievements requires code for the start of the list, then several of these template items, then code for the end of the list.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | no description | Page name | suggested |
Name | name | no description | String | required |
Official description | description | no description | String | required |
Spoiler description | spoiler | A custom description that makes the requirement clearer. | String | optional |
Points (Xbox) | points | The same number is used for Xbox and Epic.
| Number | optional |
Grade (PS) | grade | Use for PlayStation.
| Unknown | optional |