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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Adding maintenance templates for a cleanup effort)
imported>Muhandes
(Syncing back from sandbox: Tiding up, moving all code to helper, adding footnote parameter)
 
Line 1: Line 1:
<includeonly><sup>{{#ifeq:{{{digital|}}}|true
+
<includeonly><sup>{{#switch:{{Certification Table Entry/Foot/helper|footnote={{{footnote|}}}|region={{{region}}}|type={{{type|}}}|digital={{{digital|}}}|certyear={{{certyear|}}}|certmonth={{{certmonth|}}}|certday={{{certday|}}}|Spanish={{{Spanish|}}}|relyear={{{relyear|}}}|relmonth={{{relmonth|}}}}}
  |&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}
+
  |sales=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}
  |{{#switch:{{{region|}}}
+
  |shipments=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
    |Austria|Belgium|Europe|GCC|Hong Kong|Philippines|Poland|Russia|South Korea=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}<!--Sales-->
+
  |streaming={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
    |Argentina|Greece|Japan|Netherlands|Ireland|Portugal|Switzerland|Uruguay=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}<!--Shipments-->
+
  |&nbsp;
    |Australia={{#switch:{{{type|}}}
 
      |album={{#if:{{{certyear|}}}
 
        |{{#ifexpr:{{{certyear}}} < 2017
 
          |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
          |{{#ifexpr:{{{certyear}}} < 2018
 
            |{{#if:{{{certmonth|}}}
 
              |{{#ifexpr:{{{certmonth}}} < 5 |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
              |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
              }}
 
            |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
            }}
 
          }}
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
        }}
 
      |single={{#if:{{{certyear|}}}
 
        |{{#ifexpr:{{{certyear}}} < 2015
 
          |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
          |{{#ifexpr:{{{certyear}}} < 2016
 
            |{{#if:{{{certmonth|}}}
 
              |{{#ifexpr:{{{certmonth}}} < 7 |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
              |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
              }}
 
            |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
            }}
 
          }}
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
        }}
 
      |video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }} 
 
    |Brazil={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} >= 2017|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}
 
      |&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}
 
      }}     
 
    |Canada={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} < 2016
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
        |{{#ifexpr:{{{certyear}}} < 2017
 
          |{{#if:{{{certmonth|}}}
 
            |{{#ifexpr:{{{certmonth}}} < 9
 
              |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
              |{{#ifexpr:{{{certmonth}}} < 10
 
                |{{#if:{{{certday|}}}
 
                  |{{#ifexpr:{{{certday}}} < 12
 
                    |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
                    |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
                    }}
 
                  |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
                  }}
 
                |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
                }}
 
              }}
 
            |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
            }}
 
          |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
          }}
 
        }}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }}
 
    |Denmark={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} < 2016
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
        |{{#ifexpr:{{{certyear}}} < 2017
 
          |{{#if:{{{certmonth|}}}
 
            |{{#ifexpr:{{{certmonth}}} < 4 |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
            |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
            }}
 
          |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
          }}
 
        }}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }}
 
    |France={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} >= 2016|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}
 
      |&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}
 
      }}
 
    |Germany={{#if:{{{relyear|}}}
 
      |{{#ifexpr: {{{relyear}}} < 2014
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
    |{{#ifexpr: {{{relyear}}} < 2015
 
          |{{#if:{{{relmonth|}}}
 
            |{{#ifexpr: {{{relmonth}}} < 6
 
              |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
              |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
              }}
 
            |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}<!-- default value-->
 
            }}
 
          |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
          }}
 
        }}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}<!-- default value-->
 
      }}
 
    |Hungary={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} >= 2018|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }}
 
    |Italy={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2014
 
        |{{#switch:{{{type|}}}|album=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
        |{{#switch:{{{type|}}}|album|video|single=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}}}
 
      |{{#switch:{{{type|}}}|album|video|single=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}}}
 
    |Mexico={{#switch:{{{type|}}}|album|video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|single=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}
 
    |New Zealand={{#switch:{{{type|}}}
 
      |video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      |album|single={{#if:{{{certyear|}}}
 
        |{{#ifexpr:{{{certyear}}} < 2016
 
          |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
          |{{#ifexpr:{{{certyear}}} < 2017
 
            |{{#if:{{{certmonth|}}}
 
              |{{#ifexpr:{{{certmonth}}} < 6
 
                |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
                |{{#ifexpr:{{{certmonth}}} < 7
 
                  |{{#if:{{{certday|}}}
 
                    |{{#ifexpr:{{{certday}}} < 17
 
                      |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
                      |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
                      }}
 
                    |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
                    }}
 
                  |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
                  }}
 
                }}
 
              |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
              }}
 
            |{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}
 
            }}
 
          }}
 
        |{{#ifeq:{{{type|}}}|single|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
        }}
 
      }}
 
    |Norway={{#if:{{{relyear|}}}|{{#ifexpr:{{{relyear}}} > 2014|{{#ifeq:{{{type|}}}|single|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}
 
    |Spain={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} >= 2015|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }}
 
    |Sweden={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} >= 2018
 
        |{{#switch:{{{type|}}}|album=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
        |{{#switch:{{{type|}}}|album|video|single=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}}}
 
      |{{#switch:{{{type|}}}|album|video|single=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}}}
 
    |United Kingdom={{#if:{{{certyear|}}}
 
      |{{#ifexpr:{{{certyear}}} < 2013
 
        |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
        |{{#ifexpr:{{{certyear}}} < 2014
 
          |{{#if:{{{certmonth|}}}
 
            |{{#ifexpr:{{{certmonth}}} < 7 |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}}}
 
            |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
            }}
 
          |{{#ifexpr:{{{certyear}}} < 2015
 
            |{{#switch:{{{type|}}}|album|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
            |{{#ifexpr:{{{certyear}}} < 2016
 
              |{{#if:{{{certmonth|}}}
 
                |{{#ifexpr:{{{certmonth}}} < 3
 
                  |{{#switch:{{{type|}}}|album|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
                  |{{#switch:{{{type|}}}|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single|album={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
                  }}
 
                |{{#switch:{{{type|}}}|album|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
                }}
 
              |{{#switch:{{{type|}}}|video=&#42;{{main other|[[Category:Pages using certification Table Entry with sales figures]]}}|single|album={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
              }}
 
            }}
 
          }}
 
        }}
 
      |^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}
 
      }}
 
    |United States={{#if:{{{certyear|}}}|{{#ifexpr:{{{certyear}}} > 2015
 
        |{{#switch:{{{type|}}}|album={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|single={{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}}}
 
        |{{#switch:{{{type|}}}|album|video=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}|single={{#if:{{{Spanish|}}}|{{double-dagger}}{{main other|[[Category:Pages using certification Table Entry with streaming figures]]}}|^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}}}}}
 
      |{{#switch:{{{type|}}}|album|video|single=^{{main other|[[Category:Pages using certification Table Entry with shipments figures]]}}}}}}
 
    }}
 
 
   }}</sup></includeonly><noinclude>
 
   }}</sup></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:02, 13 November 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