Difference between revisions of "Template:Certification Table Entry/Foot"

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(From sandbox, fix Denmark)
imported>Muhandes
(From sandbox, fix Brazil and Spain)
Line 2: Line 2:
 
   |*
 
   |*
 
   |{{#switch:{{{region|}}}
 
   |{{#switch:{{{region|}}}
     |Austria|Belgium|Brazil|Europe|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
+
     |Austria|Belgium|Europe|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
     |Argentina|Greece|Japan|Spain|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
+
     |Argentina|Greece|Japan|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
 
     |Australia={{#switch:{{{type|}}}
 
     |Australia={{#switch:{{{type|}}}
 
       |album={{#if:{{{certyear|}}}
 
       |album={{#if:{{{certyear|}}}
Line 32: Line 32:
 
         }}
 
         }}
 
       |video=^
 
       |video=^
 +
      }} 
 +
    |Brazil={{#if:{{{certyear|}}}
 +
      |{{#ifexpr:{{{certyear}}} >= 2017|{{double-dagger}}|&#42;}}
 +
      |&#42;
 
       }}       
 
       }}       
 
     |Canada={{#if:{{{certyear|}}}
 
     |Canada={{#if:{{{certyear|}}}
Line 129: Line 133:
 
       }}
 
       }}
 
     |Norway={{#if:{{{relyear|}}}|{{#ifexpr:{{{relyear}}} > 2014|{{#ifeq:{{{type|}}}|single|{{double-dagger}}|&#42;}}|&#42;}}|&#42;}}
 
     |Norway={{#if:{{{relyear|}}}|{{#ifexpr:{{{relyear}}} > 2014|{{#ifeq:{{{type|}}}|single|{{double-dagger}}|&#42;}}|&#42;}}|&#42;}}
 +
    |Spain={{#if:{{{certyear|}}}
 +
      |{{#ifexpr:{{{certyear}}} >= 2015|{{double-dagger}}|^}}
 +
      |^
 +
      }}
 
     |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
 
     |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
 
         |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
 
         |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}

Revision as of 15:15, 10 June 2020

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

This is a helper template for {{Certification Table Entry}}, see the meaning of all parameters there. The parameters used are:

  • |footnote=: Overrides all parameters and sets the footnote directly. Can be sales/shipments/streaming

The rest of the parameters are:

  • |region=
  • |type= (which can be album/single/video)
  • |certyear=, |certmonth=, |certday=
  • |relyear=, |relmonth=
  • |Spanish=
  • |digital=

It returns the correct footnote symbol that specificity if this is a sales threshold, a shipments threshold, a streaming/sales threshold, based on this list.

The symbols used are:

Symbol Meaning
* sales (including digital)
^ shipments
File:Double-dagger-14-plain.png sales+streaming

uk:Шаблон:Certification Table Entry/Foot