Difference between revisions of "Template:Certification Table Entry/Sales/ItalianSinglesHelper"

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(doc it)
imported>Muhandes
(Add Diamond)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{year|}}} <!-- Same code as below, remember to copy -->
+
<includeonly>{{#if:{{{year|}}}  
 
     |{{#ifexpr:{{{year}}} < 2005  
 
     |{{#ifexpr:{{{year}}} < 2005  
       | {{#switch:{{{award|}}}| Gold=25000| Platinum=50000}}
+
       | {{#switch:{{{award|}}}| Gold=25000| Platinum=50000|Diamond=500000}}
 
       | {{#ifexpr:{{{year}}} < 2009
 
       | {{#ifexpr:{{{year}}} < 2009
         | {{#switch:{{{award|}}}| Gold=10000| Platinum=20000}}
+
         | {{#switch:{{{award|}}}| Gold=10000| Platinum=20000|Diamond=200000}}
 
         | {{#ifexpr:{{{year}}} < 2015  
 
         | {{#ifexpr:{{{year}}} < 2015  
           | {{#switch:{{{award|}}}| Gold=15000| Platinum=30000}}
+
           | {{#switch:{{{award|}}}| Gold=15000| Platinum=30000|Diamond=300000}}
           | {{#ifexpr:{{{year}}} < 2020 <!-- This is only kept for backward compatibility, certyear and certweek should be used -->
+
           | {{#ifexpr:{{{year}}} < 2020  
             |{{#switch:{{{award|}}}| Gold=25000| Platinum=50000}}
+
             |{{#switch:{{{award|}}}| Gold=25000| Platinum=50000|Diamond=500000}}
             |{{#switch:{{{award|}}}| Gold=35000| Platinum=70000}}
+
             |{{#switch:{{{award|}}}| Gold=35000| Platinum=70000|Diamond=700000}}
 
             }}
 
             }}
 
           }}
 
           }}

Latest revision as of 16:08, 22 July 2020

50px Template documentation[view] [edit] [history] [purge]

This helper template calculates the sales for Italian certifications without certification date data, based on release year.

It accepts two mandatory parameters:

  • |year= The release year
  • |award= The award, Gold or Platinum

It returns 0 if no year is passed.