Template:Trophycount: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><big>'''{{#if: {{{platinum|{{{p|}}}}}} | 22px|top {{{platinum|{{{p}}}}}} {{!}} | }} 22px|top {{{gold|{{{g}}}...") |
(Added an optional argument to display the combined total of trophies.) |
||
Line 1: | Line 1: | ||
<includeonly><big>'''{{#if: {{{platinum|{{{p|}}}}}} | [[File:Platinum_trophy.svg|22px|top]] {{{platinum|{{{p}}}}}} {{!}} | }} [[File:Gold_trophy.svg|22px|top]] {{{gold|{{{g}}}}}} | [[File:Silver_trophy.svg|22px|top]] {{{silver|{{{s}}}}}} | [[File:Bronze_trophy.svg|22px|top]] {{{bronze|{{{b}}}}}} '''</big> | <includeonly><big>'''{{#if: {{{platinum|{{{p|}}}}}} | [[File:Platinum_trophy.svg|22px|top|Platinum trophy]] {{{platinum|{{{p}}}}}} {{!}} | }} [[File:Gold_trophy.svg|22px|top|Gold trophy]] {{{gold|{{{g}}}}}} | [[File:Silver_trophy.svg|22px|top|Silver trophy]] {{{silver|{{{s}}}}}} | [[File:Bronze_trophy.svg|22px|top|Bronze trophy]] {{{bronze|{{{b}}}}}} '''</big> | ||
{{#if: {{{total|}}} | : ''Total: '''{{#expr: {{{platinum|{{{p}}}}}} + {{{gold|{{{g}}}}}} + {{{silver|{{{s}}}}}} + {{{bronze|{{{b}}}}}} }}''' trophies'' | }} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Trophycount|p=1|g=2|s=3|b=4}} | {{Trophycount|p=1|g=2|s=3|b=4|total=y}} | ||
Very simple time saving template for quickly displaying trophy totals for titles that support them. Mainly used on [[Trophies|trophy]] pages to display the total number of trophies included in a game or level kit. | Very simple time saving template for quickly displaying trophy totals for titles that support them. Mainly used on [[Trophies|trophy]] pages to display the total number of trophies included in a game or level kit. | ||
==Usage== | ==Usage== | ||
<code><nowiki>{{Trophycount|platinum= |gold= |silver= |bronze= }}</nowiki></code> or <code><nowiki>{{Trophycount|p= |g= |s= |b= }}</nowiki></code> | <code><nowiki>{{Trophycount|platinum= |gold= |silver= |bronze= }}</nowiki></code> or <code><nowiki>{{Trophycount|p= |g= |s= |b= }}</nowiki></code> | ||
Enter a number into each of the fields to indicate how many trophies of a given tier can be earned. If the <tt>platinum</tt> field is omitted or left empty, the platinum trophy icon will not be displayed. | Enter a number into each of the fields to indicate how many trophies of a given tier can be earned. If the <tt>platinum</tt> field is omitted or left empty, the platinum trophy icon will not be displayed. To display the combined total, use <code><nowiki>{{Trophycount|total=y}}</nowiki></code> | ||
[[Category:Templates]] | [[Category:Templates]]</noinclude> |
Revision as of 07:16, 1 June 2021
- Total: 10 trophies
Very simple time saving template for quickly displaying trophy totals for titles that support them. Mainly used on trophy pages to display the total number of trophies included in a game or level kit.
Usage
{{Trophycount|platinum= |gold= |silver= |bronze= }}
or {{Trophycount|p= |g= |s= |b= }}
Enter a number into each of the fields to indicate how many trophies of a given tier can be earned. If the platinum field is omitted or left empty, the platinum trophy icon will not be displayed. To display the combined total, use {{Trophycount|total=y}}