Template:Certification Table Entry/Sales: Difference between revisions
Appearance
Content deleted Content added
Add 2024 change in South Africa |
Update Swiss certification levels in July 2023 |
||
(3 intermediate revisions by the same user not shown) | |||
Line 340: | Line 340: | ||
|6={{#switch:{{{award|}}}| Gold=75000| Platinum=150000|Diamond=750000}} |
|6={{#switch:{{{award|}}}| Gold=75000| Platinum=150000|Diamond=750000}} |
||
}} |
}} |
||
|single={{#switch:{{Certification Table Entry/Sales/GermanPeriod|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} |
|single={{#if:{{{certyear|}}} |
||
|{{#ifexpr:{{{certyear}}} < 2024 |
|||
|{{#switch:{{Certification Table Entry/Sales/GermanPeriod|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} |
|||
|0=0 |
|0=0 |
||
|1={{#if:{{{certyear|}}} |
|1={{#if:{{{certyear|}}} |
||
|{{#ifexpr: {{{certyear}}} <= 1987 |
|{{#ifexpr: {{{certyear}}} <= 1987 |
||
|{{#switch:{{{award|}}}| Gold=500000| Platinum=1000000}} |
|{{#switch:{{{award|}}}| Gold=500000| Platinum=1000000}} |
||
|{{#switch:{{{award|}}}| Gold=250000| Platinum=500000}} |
|{{#switch:{{{award|}}}| Gold=250000| Platinum=500000}} |
||
⚫ | |||
⚫ | |||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|0=0 |
|||
|1={{#if:{{{certyear|}}} |
|||
|{{#ifexpr: {{{certyear}}} <= 1987 |
|||
⚫ | |||
|{{#switch:{{{award|}}}| Gold=250000| Platinum=500000}} |
|||
}} |
|||
|0 |
|||
}} |
|||
|2|3={{#switch:{{{award|}}}| Gold=250000| Platinum=500000}} |
|||
|4={{#switch:{{{award|}}}| Gold=150000| Platinum=300000|Diamond=1000000}} |
|||
|5={{#switch:{{{award|}}}| Gold=200000| Platinum=400000|Diamond=1000000}} |
|||
|6={{#switch:{{{award|}}}| Gold=300000| Platinum=600000|Diamond=1500000}} |
|||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
|video={{#switch:{{{award|}}} | Gold=25000 | Platinum=50000}} |
|video={{#switch:{{{award|}}} | Gold=25000 | Platinum=50000}} |
||
Line 592: | Line 611: | ||
}} |
}} |
||
}} |
}} |
||
}} |
|||
|Nigeria={{#switch:{{{type|}}} |
|||
|album={{#switch:{{{award|}}}|Silver=12500|Gold=25000|Platinum=50000}} |
|||
|single={{#switch:{{{award|}}}|Silver=25000|Gold=50000|Platinum=100000}} |
|||
}} |
}} |
||
|Norway={{#if:{{{certyear|}}} |
|Norway={{#if:{{{certyear|}}} |
||
Line 724: | Line 747: | ||
}} |
}} |
||
}} |
}} |
||
|Portugal={{# |
|Portugal={{#if:{{{certyear|}}} |
||
|{{#ifexpr:{{{certyear}}} < 2024 |
|||
⚫ | |||
|{{#switch:{{{type|}}} <!-- Code repeated below. This refers to certifications made before 2024 --> |
|||
⚫ | |||
| |
|album={{#switch:{{Certification Table Entry/Sales/PortugesePeriod|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} |
||
|0=0 |
|||
⚫ | |||
| |
|1={{#switch:{{{award|}}}| Silver=10000 | Gold=20000| Platinum=40000|Diamond=350000}} |
||
| |
|2={{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
||
|3|4={{#switch:{{{award|}}}| Gold=7500| Platinum=15000}} |
|||
|5={{#switch:{{{award|}}}| Gold=3500| Platinum=7000|Diamond=70000}} |
|||
}} |
|||
⚫ | |||
|0=0 |
|||
|1={{#switch:{{{award|}}}| Silver=10000 | Gold=20000| Platinum=40000}} |
|||
|2|3={{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|||
|4={{#switch:{{{award|}}}| Gold=5000| Platinum=10000}} |
|||
|5={{#switch:{{{award|}}}| Gold=5000| Platinum=10000|Diamond=100000}} |
|||
}} |
|||
|video={{#switch:{{{award|}}}| Gold=4000| Platinum=8000}} |
|||
}} |
|||
|{{#switch:{{{type|}}} |
|||
|album={{#switch:{{{award|}}}| Gold=3500| Platinum=7000|Diamond=70000}} |
|||
|single={{#switch:{{{award|}}}| Gold=5000| Platinum=10000|Diamond=100000}} |
|||
}} |
|||
}} |
}} |
||
|{{#switch:{{{type|}}} <!-- Code repeated from above. This refers to certifications with no certification date, assumed to be made before 2024 --> |
|||
⚫ | |||
|album={{#switch:{{Certification Table Entry/Sales/PortugesePeriod|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} |
|||
⚫ | |||
|1={{#switch:{{{award|}}}| Silver=10000 | Gold=20000| Platinum=40000}} |
|0=0 |
||
|1={{#switch:{{{award|}}}| Silver=10000 | Gold=20000| Platinum=40000|Diamond=350000}} |
|||
|2 |
|2={{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
||
|4={{#switch:{{{award|}}}| Gold= |
|3|4={{#switch:{{{award|}}}| Gold=7500| Platinum=15000}} |
||
|5={{#switch:{{{award|}}}| Gold= |
|5={{#switch:{{{award|}}}| Gold=3500| Platinum=7000|Diamond=70000}} |
||
}} |
|||
|single={{#switch:{{Certification Table Entry/Sales/PortugesePeriod|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} |
|||
|0=0 |
|||
|1={{#switch:{{{award|}}}| Silver=10000 | Gold=20000| Platinum=40000}} |
|||
|2|3={{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|||
|4={{#switch:{{{award|}}}| Gold=5000| Platinum=10000}} |
|||
|5={{#switch:{{{award|}}}| Gold=5000| Platinum=10000|Diamond=100000}} |
|||
}} |
|||
|video={{#switch:{{{award|}}}| Gold=4000| Platinum=8000}} |
|||
}} |
}} |
||
⚫ | |||
}} |
}} |
||
|Russia={{#ifeq:{{{award|}}}|Million |
|Russia={{#ifeq:{{{award|}}}|Million |
||
Line 1,001: | Line 1,049: | ||
|{{#ifeq:{{{domestic|}}}|true |
|{{#ifeq:{{{domestic|}}}|true |
||
|{{#switch:{{{award|}}}| Gold=7500| Platinum=15000}} |
|{{#switch:{{{award|}}}| Gold=7500| Platinum=15000}} |
||
|{{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|{{#ifeq:{{{type|}}}|album |
||
|{{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|||
|{{#ifexpr: {{{year}}} < 2023 |
|||
|{{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|||
|{{#ifexpr: {{{year}}} < 2024 |
|||
|{{#if:{{{month|}}} |
|||
|{{#ifexpr: {{{month}}} < 7 |
|||
|{{#switch:{{{award|}}}| Gold=10000| Platinum=20000}} |
|||
|{{#switch:{{{award|}}}| Gold=15000| Platinum=30000}} |
|||
}} |
|||
|0 |
|||
}} |
|||
|{{#switch:{{{award|}}}| Gold=15000| Platinum=30000}} |
|||
}} |
|||
}} |
|||
}} |
|||
}} |
}} |
||
}} |
}} |
Latest revision as of 17:08, 18 December 2024
This template is used on approximately 33,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is a helper template for Template:Certification Table Entry. It returns the certification threshold for the specific certification. It receives the following parameters.
Mandatory
region
award
–Silver
/Gold
/Platinum
/Diamond
/Million
/Billion
/Platinum+Gold
/Diamond+Gold
/Diamond+Platinum
/Diamond+Platinum+Gold
type
–album
/single
/video
/jazz
/compilation
/videosingle
/ringtone
/EP
Nonmandatory
|number=
- number of awards certified, for example for a double platinum this will be 2. Default is 1.|number2=
- number of awards certified for the second type of awards in case of multiple type, e.g., number of platinum awards for Diamond+Platinum|year=
,|month=
,|day=
- release year, month and day, given as numbers. This is required for some certifications which changed over the years, and the certification threshold goes by release date. The template returns 0 if no sufficient release date is provided or if there isn't a reliable source about the certification levels at the release date.|certyear=
,|certmonth=
,|certweek=
,|certday=
- certification year, month, week, day given as numbers. This is required for some certifications which changed over the years, and the certification threshold goes by certification date. The template returns 0 if no sufficient certification date is provided or if there isn't a reliable source about the certification levels at the certification date.|discount=
- set totrue
for discount albums in regions for which there is a different certification threshold for discount albums.|domestic=
- set totrue
for domestic repertoire in regions for which there is a different certification threshold for domestic repertoire.|Spanish=
- set totrue
for RIAA Latin album certification.|digital=
- set totrue
for digital download certification. Note that this is supported only in very specific cases, consult {{Certification Table Entry}}. If you wish for this to be supported in any other region, please leave a note on the talk page.|streamsonly=
- set totrue
for streaming-only certification. Note that this is supported only in very specific cases, consult {{Certification Table Entry}}. If you wish for this to be supported in any other region, please leave a note on the talk page.|multidisc=
- the number of discs in a multidisc box, for regions in which these are certified multiple times. The template will divide by the number of discs to get the actual threshold in number of boxes sold. Note that this is supported only in very specific cases, consult {{Certification Table Entry}}. If you wish for this to be supported in any other region, please leave a note on the talk page.|preloaded=
- set totrue
for preloaded download certification. Note that this is supported only in very specific cases, consult {{Certification Table Entry}}. If you wish for this to be supported in any other region, please leave a note on the talk page.
See {{Certification Table Entry}} for supported regions.