Template:Achievement List Item: Difference between revisions
m added line break at start |
m TemplateData |
||
Line 1: | Line 1: | ||
|- id="{{{name}}}" | |- id="{{{name}}}" | ||
|[[File:{{{image}}}|frameless|250px|thumb|]] | | style="border-right:none;" | [[File:{{{image}}}|frameless|250px|thumb|]] | ||
|'''{{{name}}}'''<br/>{{{description}}} | | style="border-left:none;" | '''{{{name}}}'''<br/>{{{description}}} | ||
|style="text-align: | | style="text-align:center;" | {{{points}}}<noinclude> | ||
== Usage == | |||
<pre>{| 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 | |||
}}{{Achievement List Item | |||
|name=A New Morality | |||
|image=Ttp2_trophy_A_New_Morality.png | |||
|description=Help Rand get elected mayor. | |||
|points=30 | |||
}} | |||
|}</pre> | |||
produces | |||
{| 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 | |||
}}{{Achievement List Item | |||
|name=A New Morality | |||
|image=Ttp2_trophy_A_New_Morality.png | |||
|description=Help Rand get elected mayor. | |||
|points=30 | |||
}} | |||
|} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"type": "wiki-page-name", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Official description", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"points": { | |||
"label": "Points", | |||
"description": "The same number is used for Xbox and Epic.", | |||
"example": "30", | |||
"type": "number" | |||
}, | |||
"spoiler": { | |||
"label": "Spoiler description", | |||
"description": "A custom description that makes the requirement clearer.", | |||
"type": "string" | |||
}, | |||
"pslevel": { | |||
"label": "PS Level", | |||
"description": "If omitted, this can be guessed from the points field.", | |||
"suggestedvalues": [ | |||
"Bronze", | |||
"Silver", | |||
"Gold", | |||
"Platiunum" | |||
] | |||
} | |||
}, | |||
"description": "Describes one achievement.\n\nA 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": [ | |||
"image", | |||
"name", | |||
"description", | |||
"spoiler", | |||
"points", | |||
"pslevel" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata></noinclude> |
Revision as of 10:14, 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 }}{{Achievement List Item |name=A New Morality |image=Ttp2_trophy_A_New_Morality.png |description=Help Rand get elected mayor. |points=30 }} |}
produces
Icon | Name / Description | Points |
---|---|---|
A New Beginning Help Byron get elected mayor. |
40 | |
A New Morality Help Rand get elected mayor. |
30 |
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 | points | The same number is used for Xbox and Epic.
| Number | optional |
PS Level | pslevel | If omitted, this can be guessed from the points field.
| Unknown | optional |