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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Undid revision 961830715 by Muhandes (talk) oops)
imported>Muhandes
(Undid revision 962152701 by Muhandes (talk) And redo, it actually works well)
Line 141: Line 141:
 
         |{{#switch:{{{type|}}}|album|video|single=^}}}}
 
         |{{#switch:{{{type|}}}|album|video|single=^}}}}
 
       |{{#switch:{{{type|}}}|album|video|single=^}}}}
 
       |{{#switch:{{{type|}}}|album|video|single=^}}}}
     |United Kingdom={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2013
+
     |United Kingdom={{#if:{{{certyear|}}}
         |{{#switch:{{{type|}}}|album=^|video=^|single={{double-dagger}}}}
+
      |{{#ifexpr:{{{certyear}}} < 2013
        |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
        |^
      |{{#switch:{{{type|}}}|album|video|single=^}}}}
+
         |{{#ifexpr:{{{certyear}}} < 2014
 +
          |{{#if:{{{certmonth|}}}
 +
            |{{#ifexpr:{{{certmonth}}} < 7 |^|&#42;}}
 +
            |^
 +
            }}
 +
          |{{#switch:{{{type|}}}|album|video=&#42;|single={{double-dagger}}}}
 +
          }}
 +
        }}
 +
      |^
 +
      }}
 
     |United States={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2015
 
     |United States={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2015
 
         |{{#switch:{{{type|}}}|album={{double-dagger}}|video=^|single={{double-dagger}}}}
 
         |{{#switch:{{{type|}}}|album={{double-dagger}}|video=^|single={{double-dagger}}}}

Revision as of 11:37, 12 June 2020

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
Script error: No such module "If empty". sales+streaming

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