Template:Trophy: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Added the option to mark a trophy as server dependant.)
(Added platinum specific text when using the "online" field)
Line 1: Line 1:
<includeonly><table><tr><td class="msgboximg" style="min-width:{{{min-width|64}}}px;">[[File:{{{icon|Placeholder_Pin.png}}} | {{{pic-align|center}}} | {{{imgwidth|64}}}px]]</td>
<includeonly><table><tr><td class="msgboximg" style="min-width:{{{min-width|64}}}px;">[[File:{{{icon|Placeholder_Pin.png}}} | {{{pic-align|center}}} | {{{imgwidth|64}}}px]]</td>
<td>
<td>
{{#if: {{{online|}}} | {{#ifeq: {{{online}}} | n | [[File:No_Connection.png|22px|top|This trophy can no longer be unlocked due to the official servers being shut down.]] | [[File:PSN_Icon.png|22px|top|This trophy requires online functionality to unlock.]] }} }} {{#if: {{{rank|}}} |
{{#if: {{{online|}}} | {{#ifeq: {{{online}}} | n | [[File:No_Connection.png|22px|top|{{#ifeq: {{{rank}}} | platinum | One or more of this trophy's dependencies | This trophy }} can no longer be unlocked due to the official servers being shut down.]] | [[File:PSN_Icon.png|22px|top|{{#ifeq: {{{rank}}} | platinum |One or more of this trophy's dependencies | This trophy }} requires an internet connection to unlock.]] }} }} {{#if: {{{rank|}}} |
{{#ifeq: {{{rank}}} | bronze | [[File:Bronze_trophy.svg|22px|top|Bronze trophy]] | }}
{{#ifeq: {{{rank}}} | bronze | [[File:Bronze_trophy.svg|22px|top|Bronze trophy]] | }}
{{#ifeq: {{{rank}}} | silver | [[File:Silver_trophy.svg|22px|top|Silver trophy]] | }}
{{#ifeq: {{{rank}}} | silver | [[File:Silver_trophy.svg|22px|top|Silver trophy]] | }}
{{#ifeq: {{{rank}}} | gold | [[File:Gold_trophy.svg|22px|top|Gold trophy]] | }}
{{#ifeq: {{{rank}}} | gold | [[File:Gold_trophy.svg|22px|top|Gold trophy]] | }}
{{#ifeq: {{{rank}}} | platinum | [[File:Platinum_trophy.svg|22px|top|Platinum trophy]] | }}
{{#ifeq: {{{rank}}} | platinum | [[File:Platinum_trophy.svg|22px|top|Platinum trophy]] | }}
}} '''{{{name|Trophy Title}}}'''<br>{{{desc|Trophy Description}}}{{#if: {{{actualreq|}}} | <br><small>({{{actualreq}}})</small> | }}</td></tr></table></includeonly><noinclude>
}} '''{{{name|Trophy Title}}}'''<br>{{{desc|Trophy Description}}}{{#if: {{{actualreq|}}} | <br><small>({{{actualreq}}})</small> | }}</td></tr></table></includeonly><noinclude><big>'''You have earned a trophy.'''</big>
{{trophy
{{trophy
|online= y
|rank=platinum
|rank=platinum
|name=Trophy Title
|name=Trophy Title

Revision as of 16:06, 18 February 2021

You have earned a trophy.

Placeholder Pin.png
Platinum trophy Trophy Title
Fix the icon for the trophy.
(Also think of some witty text to put here.)

Essentially just a stripped-down pin template, specifically meant for use on pages about PSN trophies.

Usage

{{Trophy
|icon=      Filename for the trophy's icon. (e.g. Trophy.png)
|online=    Used to denote if a trophy requires online functionality to unlock. If the game's servers have been shut down, append with "n" to mark it as unobtainable. Otherwise, append with "y".
|rank=      Displays a coloured icon beside the trophy's name, indicating its rank. Values include "bronze", "silver", "gold" and "platinum". Note that these values are case-sensitive.
|name=      The trophy's name.
|desc=      The trophy's description.
|actualreq= Use this to clarify the trophy's actual requirements, if the given description is different or vague. Text entered here is displayed in small parenthesese.
}}