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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(France, see talk page request)
imported>Muhandes
(Sort, add Australia per talk page request)
Line 3: Line 3:
 
   |{{#switch:{{{region|}}}
 
   |{{#switch:{{{region|}}}
 
     |Austria|Belgium|Brazil|Europe|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
 
     |Austria|Belgium|Brazil|Europe|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
     |Argentina|Australia|Denmark|Greece|Japan|Spain|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
+
     |Argentina|Denmark|Greece|Japan|Spain|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
     |Mexico={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
+
     |Australia={{#switch:{{{type|}}}
    |New Zealand={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
+
      |album={{#if:{{{certyear|}}}
    |United Kingdom={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2013
+
        |{{#ifexpr:{{{certyear}}} < 2017
        |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
+
          |^
        |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
          |{{#ifexpr:{{{certyear}}} < 2018
    |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
            |{{#if:{{{certmonth|}}}
    |Italy={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2014
+
              |{{#ifexpr:{{{certmonth}}} < 5 |^|{{double-dagger}}}}
        |{{#switch:{{{type|}}}|album=&#42;|video=&#42;|single={{double-dagger}}}}
+
              |^
        |{{#switch:{{{type|}}}|album|video|single=&#42;}}}}
+
              }}
    |{{#switch:{{{type|}}}|album|video|single=&#42;}}}}
+
            |{{double-dagger}}
    |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
+
            }}
        |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
+
          }}
        |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
        |^
    |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
        }}
    |United States={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2015
+
      |single={{#if:{{{certyear|}}}
        |{{#switch:{{{type|}}}|album={{double-dagger}}|video=^|single={{double-dagger}}}}
+
        |{{#ifexpr:{{{certyear}}} < 2015
        |{{#switch:{{{type|}}}|album|video=^|single={{#if:{{{Spanish|}}}|{{double-dagger}}|^}}}}}}
+
          |^
    |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
          |{{#ifexpr:{{{certyear}}} < 2016
    |Norway={{#if:{{{relyear|}}}|{{#ifexpr:{{{relyear}}} > 2014|{{#ifeq:{{{type|}}}|single|{{double-dagger}}|&#42;}}|&#42;}}|&#42;}}
+
            |{{#if:{{{certmonth|}}}
 +
              |{{#ifexpr:{{{certmonth}}} < 7 |^|{{double-dagger}}}}
 +
              |^
 +
              }}
 +
            |{{double-dagger}}
 +
            }}
 +
          }}
 +
        |^
 +
        }}
 +
      |video=^
 +
      }}    
 
     |Canada={{#if:{{{certyear|}}}
 
     |Canada={{#if:{{{certyear|}}}
 
       |{{#ifexpr:{{{certyear}}} < 2016
 
       |{{#ifexpr:{{{certyear}}} < 2016
Line 46: Line 56:
 
           }}
 
           }}
 
         }}
 
         }}
      |^
 
      }}
 
    |Hungary={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} >= 2018|{{double-dagger}}|^}}
 
 
       |^
 
       |^
 
       }}
 
       }}
Line 72: Line 78:
 
       |^<!-- default value-->
 
       |^<!-- default value-->
 
       }}
 
       }}
 +
    |Hungary={{#if:{{{certyear|}}}
 +
      |{{#ifexpr:{{{certyear}}} >= 2018|{{double-dagger}}|^}}
 +
      |^
 +
      }}
 +
    |Italy={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2014
 +
        |{{#switch:{{{type|}}}|album=&#42;|video=&#42;|single={{double-dagger}}}}
 +
        |{{#switch:{{{type|}}}|album|video|single=&#42;}}}}
 +
      |{{#switch:{{{type|}}}|album|video|single=&#42;}}}}
 +
    |Mexico={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
 +
    |New Zealand={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
 +
    |Norway={{#if:{{{relyear|}}}|{{#ifexpr:{{{relyear}}} > 2014|{{#ifeq:{{{type|}}}|single|{{double-dagger}}|&#42;}}|&#42;}}|&#42;}}
 +
    |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
 +
        |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
 +
        |{{#switch:{{{type|}}}|album|video|single=^}}}}
 +
      |{{#switch:{{{type|}}}|album|video|single=^}}}}
 +
    |United Kingdom={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2013
 +
        |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
 +
        |{{#switch:{{{type|}}}|album|video|single=^}}}}
 +
      |{{#switch:{{{type|}}}|album|video|single=^}}}}
 +
    |United States={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2015
 +
        |{{#switch:{{{type|}}}|album={{double-dagger}}|video=^|single={{double-dagger}}}}
 +
        |{{#switch:{{{type|}}}|album|video=^|single={{#if:{{{Spanish|}}}|{{double-dagger}}|^}}}}}}
 +
      |{{#switch:{{{type|}}}|album|video|single=^}}}}
 
     }}
 
     }}
 
   }}</sup></includeonly><noinclude>
 
   }}</sup></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:27, 27 April 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