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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Hungary from 2018)
imported>Muhandes
(Germany foot, see talk page request)
Line 3: Line 3:
 
   |{{#switch:{{{region|}}}
 
   |{{#switch:{{{region|}}}
 
     |Austria|Belgium|Brazil|Europe|France|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
 
     |Austria|Belgium|Brazil|Europe|France|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;<!--Sales-->
     |Argentina|Australia|Denmark|Germany|Greece|Japan|Spain|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
+
     |Argentina|Australia|Denmark|Greece|Japan|Spain|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^<!--Shipments-->
 
     |Mexico={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
 
     |Mexico={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
 
     |New Zealand={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
 
     |New Zealand={{#switch:{{{type|}}}|album|video=^|single=&#42;}}
Line 51: Line 51:
 
       |{{#ifexpr:{{{certyear}}} >= 2018|{{double-dagger}}|^}}
 
       |{{#ifexpr:{{{certyear}}} >= 2018|{{double-dagger}}|^}}
 
       |^
 
       |^
 +
      }}
 +
    |Germany={{#if:{{{relyear|}}}
 +
      |{{#ifexpr: {{{relyear}}} < 2014
 +
        |^
 +
    |{{#ifexpr: {{{relyear}}} < 2015
 +
          |{{#if:{{{relmonth|}}}
 +
            |{{#ifexpr: {{{relmonth}}} < 6
 +
              |^
 +
              |{{double-dagger}}
 +
              }}
 +
            |^<!-- default value-->
 +
            }}
 +
          |{{double-dagger}}
 +
          }}
 +
        }}
 +
      |^<!-- default value-->
 
       }}
 
       }}
 
     }}
 
     }}

Revision as of 08:56, 24 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