Difference between revisions of "Template:Certification Table Entry/Sales/PhilippinesPeriod"

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
 
imported>Muhandes
(fix)
 
Line 2: Line 2:
 
   |{{#ifexpr: {{{year}}} < 1990 <!--  before 1990 -->
 
   |{{#ifexpr: {{{year}}} < 1990 <!--  before 1990 -->
 
     |1
 
     |1
     |{{#ifexpr: {{{year}}} < 2006 <!-- 1990-2005 -->
+
     |{{#ifexpr: {{{year}}} < 2003 <!-- 1990-2002 -->
 
       |2
 
       |2
       |{{#ifexpr: {{{year}}} < 2007 <!-- 2006 -->
+
       |{{#ifexpr: {{{year}}} < 2004 <!-- 2003 -->
 
         |3
 
         |3
         |{{#ifexpr: {{{year}}} < 2008 <!-- 2007 -->
+
         |{{#ifexpr: {{{year}}} < 2005 <!-- 2004 -->
 
           |{{#if:{{{month|}}}
 
           |{{#if:{{{month|}}}
             |{{#ifexpr: {{{month}}} < 10 |3|4}}
+
             |{{#ifexpr: {{{month}}} < 7 |3|4}}
 
             |0}}
 
             |0}}
           |{{#ifexpr: {{{year}}} < 2009 <!-- 2008 -->
+
           |{{#ifexpr: {{{year}}} < 2007 <!-- 2005-2006 -->
             |{{#if:{{{month|}}}
+
             |4
              |{{#ifexpr: {{{month}}} < 10 |4|5}}
+
             |{{#ifexpr: {{{year}}} < 2008 <!-- 2007 -->
              |0}}
 
             |{{#ifexpr: {{{year}}} < 2010 <!-- 2009 -->
 
 
               |{{#if:{{{month|}}}
 
               |{{#if:{{{month|}}}
                 |{{#ifexpr: {{{month}}} < 4 |5|6}}
+
                 |{{#ifexpr: {{{month}}} < 10 |4|5}}
 
                 |0}}
 
                 |0}}
               |{{#ifexpr: {{{year}}} < 2012 <!-- 2010-2011 -->
+
               |{{#ifexpr: {{{year}}} < 2009 <!-- 2008 -->
                 |6
+
                 |{{#if:{{{month|}}}
                 |{{#ifexpr: {{{year}}} < 2013 <!-- 2012 -->
+
                  |{{#ifexpr: {{{month}}} < 10 |5|6}}
 +
                  |0}}
 +
                 |{{#ifexpr: {{{year}}} < 2010 <!-- 2009 -->
 
                   |{{#if:{{{month|}}}
 
                   |{{#if:{{{month|}}}
                     |{{#ifexpr: {{{month}}} < 3 |6|7}}
+
                     |{{#ifexpr: {{{month}}} < 4 |6|7}}
 
                     |0}}
 
                     |0}}
                   |7
+
                   |{{#ifexpr: {{{year}}} < 2012 <!-- 2010-2011 -->
 +
                    |7
 +
                    |{{#ifexpr: {{{year}}} < 2013 <!-- 2012 -->
 +
                      |{{#if:{{{month|}}}
 +
                        |{{#ifexpr: {{{month}}} < 3 |7|8}}
 +
                        |0}}
 +
                      |8
 +
                      }}
 +
                    }}
 
                   }}
 
                   }}
 
                 }}
 
                 }}
Line 33: Line 41:
 
       }}
 
       }}
 
     }}
 
     }}
   |0}}  
+
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:04, 25 December 2018

Template documentation[view] [edit] [history] [purge]

This helper template calculates periods for Philippines certifications, as stated in Philippine Association of the Record Industry#Albums.

It returns:

Before 1990 Before 2003 Before July 2004 Before October 2007 Before October 2008 Before April 2009 Before March 2012 From March 2012
1 2 3 4 5 6 7 8


Returns 0 if the data provided is not sufficient.