Template:CalendarCustom: Difference between revisions
From BoyWiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{1|}}} | ||
{{ | |{{calendar/{{{1}}} | ||
| | |year={{{year|{{#time:Y}}}}} | ||
|base={{{base|{{#titleparts:{{PAGENAME}}|2}}}}} | |||
| | |sub={{#titleparts:{{PAGENAME}}/XXX|1|3}} | ||
| | |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}} | ||
| | |background-color:{{{title_colour|{{{colour}}}}}}; | ||
| | }} | ||
| | |weekstyle={{#if:{{{week_colour|{{{colour|}}}}}} | ||
| | |background-color:{{{week_colour|{{{colour}}}}}}; | ||
| | }} | ||
| | }} | ||
| | |{{#ifeq:{{NAMESPACE}}|Portal | ||
| | |{{calendar/portal | ||
| | |base={{{base|{{#titleparts:{{PAGENAME}}|2}}}}} | ||
| | |sub={{#titleparts:{{PAGENAME}}/XXX|1|3}} | ||
| | |title={{{title|}}} | ||
| | |col={{{col|4}}} | ||
| | |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={{{month|}}} | ||
| | |year={{{year|{{#time:Y}}}}} | ||
| | |show_year={{{show_year|off}}} | ||
| | |F={{#ifeq:{{{show_year|on}}}|with month|F Y|F}} | ||
| | |format={{{format|Sun1st}}} | ||
| | |float={{{float|right}}} | ||
| | |clear={{{clear|none}}} | ||
|EndNote={{{EndNote|}}} | |||
| | |prevnext={{{prevnext|on}}} | ||
| | |titlestyle={{#if:{{{title_colour|{{{colour|}}}}}} | ||
|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> |