Template:CalendarCustom: Difference between revisions

From BoyWiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{1|}}}
{{Calendar/{{{format|Sun1st}}}MonthStart{{#time:D|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 +1 second}}
  |{{calendar/{{{1}}}
|float={{{float|none}}}
    |year={{{year|{{#time:Y}}}}}
|clear={{{clear|none}}}
    |base={{{base|{{#titleparts:{{PAGENAME}}|2}}}}}
|cur_month=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}}]]
    |sub={{#titleparts:{{PAGENAME}}/XXX|1|3}}
|prev_month={{#ifeq:{{{prevnext}}}|off||[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 last month}}|<<]]}}
    |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}}
|next_month={{#ifeq:{{{prevnext}}}|off||[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01 next month}}|>>]]}}
        |background-color:{{{title_colour|{{{colour}}}}}};
|01=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 1|1]]
      }}
|02=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 2|2]]
    |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}}
|03=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 3|3]]
        |background-color:{{{week_colour|{{{colour}}}}}};
|04=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 4|4]]
      }}
|05=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 5|5]]
  }}
|06=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 6|6]]
  |{{#ifeq:{{NAMESPACE}}|Portal
|07=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 7|7]]
    |{{calendar/portal
|08=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 8|8]]
        |base={{{base|{{#titleparts:{{PAGENAME}}|2}}}}}
|09=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 9|9]]
        |sub={{#titleparts:{{PAGENAME}}/XXX|1|3}}
|10=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 10|10]]
        |title={{{title|}}}
|11=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 11|11]]
        |col={{{col|4}}}
|12=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 12|12]]
        |tm={{{txt_pref_m|}}}
|13=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 13|13]]
        |mt={{{txt_suff_m|}}}
|14=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 14|14]]
        |lm={{{lk_pref_m|{{{lk_pref|}}}}}}
|15=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 15|15]]
        |ml={{{lk_suff_m|{{{lk_suff|}}}}}}
|16=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 16|16]]
        |lm>={{{lk_pref_mnext|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
|17=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 17|17]]
        |lm<={{{lk_pref_mprev|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
|18=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 18|18]]
        |ml>={{{lk_suff_mnext|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
|19=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 19|19]]
        |ml<={{{lk_suff_mprev|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
|20=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 20|20]]
        |ld={{{lk_pref_d|{{{lk_pref|}}}}}}
|21=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 21|21]]
        |dl={{{lk_suff_d|{{{lk_suff|}}}}}}
|22=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 22|22]]
        |month={{{month|}}}
|23=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 23|23]]
        |year={{{year|{{#time:Y}}}}}
|24=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 24|24]]
        |show_year={{{show_year|off}}}
|25=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 25|25]]
        |F={{#ifeq:{{{show_year|on}}}|with month|F Y|F}}
|26=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 26|26]]
        |format={{{format|Sun1st}}}
|27=[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 27|27]]
        |float={{{float|right}}}
|28={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 28|[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 28|28]]}}<!-- May not exist -->
        |clear={{{clear|none}}}
|29={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 29|[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 29|29]]}}<!-- May not exist -->
        |EndNote={{{EndNote|}}}
|30={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 30|[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 30|30]]}}<!-- May not exist -->
        |prevnext={{{prevnext|on}}}
|31={{#ifexpr:{{#time:t|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} >= 31|[[{{#time:F|{{{year|{{CURRENTYEAR}}}}}-{{{month|{{CURRENTMONTH}}}}}-01}} 31|31]]}}<!-- May not exist -->
        |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}}
|year={{#if:{{{show_year|}}}|{{{year|{{CURRENTYEAR}}}}}}}
          |background-color:{{{title_colour|{{{colour}}}}}};
        }}
        |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}}
          |background-color:{{{week_colour|{{{colour}}}}}};
        }}
      }}
    |{{#iferror:{{#time:|{{PAGENAME}}}}
        |{{#if:{{{month|}}}
          |{{calendar/month/link {{#if:{{{lk_pref|}}}{{{lk_pref_d|}}}{{{lk_pref_m|}}}<!--
                        -->{{{lk_suff|}}}{{{lk_suff_d|}}}{{{lk_suff_m|}}}<!--
                        -->{{{lk_suff_mprev|}}}{{{lk_suff_mnext|}}}
                |{{#if:{{{lk_pref_d|{{{lk_pref|}}}}}}{{{lk_suff_d|{{{lk_suff|}}}}}}
                    |d
                  }}{{#if:{{{lk_pref_m|{{{lk_pref|}}}}}}{{{lk_suff_m|{{{lk_suff|}}}}}}<!--
                      -->{{{lk_suff_mprev|}}}{{{lk_suff_mnext|}}}
                    |m
                  }}
                |{{{lk|off}}}
              }}
              |tm={{{txt_pref_m|}}}
              |mt={{{txt_suff_m|}}}
              |lm={{{lk_pref_m|{{{lk_pref|}}}}}}
              |ml={{{lk_suff_m|{{{lk_suff|}}}}}}
              |lm>={{{lk_pref_mnext|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
              |lm<={{{lk_pref_mprev|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
              |ml>={{{lk_suff_mnext|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
              |ml<={{{lk_suff_mprev|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
              |ld={{{lk_pref_d|{{{lk_pref|}}}}}}
              |dl={{{lk_suff_d|{{{lk_suff|}}}}}}
              |month={{#switch:{{{month}}}
                |current={{#time:F}}
                |next={{#time:F|next month}}
                |last={{#time:F|last month}}
                |{{{month}}}
              }}
              |year={{{year|{{#time:Y}}}}}
              |show_year={{#ifeq:{{{show_year|on}}}|on|on|off}}
              |F={{#ifeq:{{{show_year|on}}}|with month|F Y|F}}
              |format={{{format|Sun1st}}}
              |float={{{float|none}}}
              |clear={{{clear|none}}}
              |EndNote={{{EndNote|}}}
              |prevnext={{#if:{{{lk_pref_m|{{{lk_pref|}}}}}}{{{lk_suff_m|{{{lk_suff|}}}}}}<!--
                      -->{{{lk_suff_mprev|}}}{{{lk_suff_mnext|}}}
                    |{{{prevnext|on}}}
                    |{{{prevnext|off}}}
                  }}
              |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}}
                |background-color:{{{title_colour|{{{colour}}}}}};
              }}
              |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}}
                |background-color:{{{week_colour|{{{colour}}}}}};
              }}  
            }}
          |{{calendar/{{{col|4}}}-column
              |title={{{title|}}}
              |year={{{year|{{#time:Y}}}}}
              |show_year={{#ifeq:{{{show_year|on}}}|on|on|off}}
              |F={{#ifeq:{{{show_year|on}}}|with month|F Y|F}}
              |format={{{format|Sun1st}}}  
                |lk={{#if:{{{lk_pref|}}}{{{lk_pref_d|}}}{{{lk_pref_m|}}}<!--
                        -->{{{lk_suff|}}}{{{lk_suff_d|}}}{{{lk_suff_m|}}}<!--
                        -->{{{lk_suff_mprev|}}}{{{lk_suff_mnext|}}}
                |{{#if:{{{lk_pref_d|{{{lk_pref|}}}}}}{{{lk_suff_d|{{{lk_suff|}}}}}}
                    |d
                  }}{{#if:{{{lk_pref_m|{{{lk_pref|}}}}}}{{{lk_suff_m|{{{lk_suff|}}}}}}<!--
                      -->{{{lk_suff_mprev|}}}{{{lk_suff_mnext|}}}
                    |m
                  }}
                |{{{lk|off}}}
              }}
              |lk0={{{lk|off}}}
              |tm={{{txt_pref_m|}}}
              |mt={{{txt_suff_m|}}}
              |lm={{{lk_pref_m|{{{lk_pref|}}}}}}
              |ml={{{lk_suff_m|{{{lk_suff|}}}}}}
              |lm>={{{lk_pref_mnext|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
              |lm<={{{lk_pref_mprev|{{{lk_pref_m|{{{lk_pref|}}}}}}}}}
              |ml>={{{lk_suff_mnext|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
              |ml<={{{lk_suff_mprev|{{{lk_suff_m|{{{lk_suff|}}}}}}}}}
              |ld={{{lk_pref_d|{{{lk_pref|}}}}}}
              |dl={{{lk_suff_d|{{{lk_suff|}}}}}}
              |EndNote={{{EndNote|}}}
              |style={{{yearstyle|"background:none; float:{{{float|none}}}"}}}
              |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}}
                |background-color:{{{title_colour|{{{colour}}}}}};
              }}
              |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}}
                |background-color:{{{week_colour|{{{colour}}}}}};
              }} 
            }}
        }}
        |{{calendar/{{#ifeq:{{PAGENAME}}|{{#time:Y|{{PAGENAME}}}}
              |{{{col|4}}}-column
              |month/link {{{lk|on}}}
            }}
          |title={{{title|}}}
          |year={{{year|{{#time:Y|{{PAGENAME}}}}}}}
          |show_year={{#ifeq:{{PAGENAME}}|{{#time:F Y|{{PAGENAME}}}}|off|on}}
          |F={{#ifeq:{{PAGENAME}}|{{#time:F Y|{{PAGENAME}}}}|F Y|F}}
          |float={{{float|right}}}
          |month={{{month|{{#time:F|{{PAGENAME}} 1}}}}}
          |lk={{{lk|on}}}
          |EndNote={{{EndNote|}}}
          |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}}
              |background-color:{{{title_colour|{{{colour}}}}}};
            }}
          |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}}
              |background-color:{{{week_colour|{{{colour}}}}}};
            }} 
        }}
      }}
  }}
}}
}}
</includeonly>  
</includeonly>  
<noinclude> [[category:Calendar template]] </noinclude>
<noinclude> [[category:Calendar template]] </noinclude>

Revision as of 11:11, 29 March 2014