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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Sort, add Australia per talk page request)
imported>Muhandes
(From sandbox, fix NZ)
Line 87: Line 87:
 
       |{{#switch:{{{type|}}}|album|video|single=*}}}}
 
       |{{#switch:{{{type|}}}|album|video|single=*}}}}
 
     |Mexico={{#switch:{{{type|}}}|album|video=^|single=*}}
 
     |Mexico={{#switch:{{{type|}}}|album|video=^|single=*}}
     |New Zealand={{#switch:{{{type|}}}|album|video=^|single=*}}
+
     |New Zealand={{#switch:{{{type|}}}
 +
      |video=^
 +
      |album|single={{#if:{{{certyear|}}}
 +
        |{{#ifexpr:{{{certyear}}} < 2016
 +
          |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
          |{{#ifexpr:{{{certyear}}} < 2017
 +
            |{{#if:{{{certmonth|}}}
 +
              |{{#ifexpr:{{{certmonth}}} < 6
 +
                |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
                |{{#ifexpr:{{{certmonth}}} < 7
 +
                  |{{#if:{{{certday|}}}
 +
                    |{{#ifexpr:{{{certday}}} < 17
 +
                      |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
                      |{{double-dagger}}
 +
                      }}
 +
                    |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
                    }}
 +
                  |{{double-dagger}}
 +
                  }}
 +
                }}
 +
              |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
              }}
 +
            |{{double-dagger}}
 +
            }}
 +
          }}
 +
        |{{#ifeq:{{{type|}}}|single|&#42;|^}}
 +
        }}
 +
      }}
 
     |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;}}
 
     |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
 
     |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018

Revision as of 13:52, 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