Template:Achievement List Item: Difference between revisions
spoiler parameter and grade parameter |
m TemplateData |
||
Line 70: | Line 70: | ||
}, | }, | ||
"image": { | "image": { | ||
"label": " | "label": "Icon", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"suggested": true | "suggested": true | ||
Line 86: | Line 86: | ||
}, | }, | ||
"spoiler": { | "spoiler": { | ||
"label": " | "label": "Detailed description", | ||
"description": "A custom description | "description": "A custom description, displayed with {{Spoiler}} formatting. Include this only if the official description is unclear.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"grade": { | "grade": { | ||
"label": "Grade (PS)", | "label": "Grade (PS)", | ||
"description": " | "description": "This is used for PlayStation instead of the score number.", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Bronze", | "Bronze", | ||
Line 101: | Line 101: | ||
} | } | ||
}, | }, | ||
"description": "Describes one achievement. | "description": "Describes one achievement. NOTE: 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.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
"description", | "description", | ||
"spoiler", | "spoiler", | ||
"points", | "points", | ||
"grade" | "grade", | ||
"image" | |||
], | ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 11:57, 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. NOTE: 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 | |
---|---|---|---|---|
Name | name | no description | String | required |
Official description | description | no description | String | required |
Detailed description | spoiler | A custom description, displayed with {{Spoiler}} formatting. Include this only if the official description is unclear. | String | optional |
Points (Xbox) | points | The same number is used for Xbox and Epic.
| Number | optional |
Grade (PS) | grade | This is used for PlayStation instead of the score number.
| Unknown | optional |
Icon | image | no description | Page name | suggested |