Difference between revisions of "Template:Calendar"
From Nookipedia, the Animal Crossing wiki
|
|
Line 1: |
Line 1: |
| {| style="border:4px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};" | | {| style="border:4px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};" |
− | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|now - 1 months}}|{{Colorshow|000|← {{#time:F|now - 1 months}}}}]]</small>}} | + | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|{{{month|now}}} - 1 months}}|{{Colorshow|000|← {{#time:F|{{{month|now}}} - 1 months}}}}]]</small>}} |
| ! colspan=5 style="height:45px;"| <big><big>{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}</big></big> | | ! colspan=5 style="height:45px;"| <big><big>{{{month|{{LOCALMONTHNAME}}}}} {{{year|{{LOCALYEAR}}}}}</big></big> |
− | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|now + 1 months}}|{{Colorshow|000|{{#time:F|now + 1 months}} →}}]]</small>}} | + | | style="text-align:center; height:45px;"| {{#ifeq: {{{link|}}}|false||<small>[[{{#time:F|{{{month|now}}} + 1 months}}|{{Colorshow|000|{{#time:F|{{{month|now}}} + 1 months}} →}}]]</small>}} |
| |- | | |- |
| | colspan=7 style="border-bottom: 2px solid #{{ColorPrimary}};" | | | | colspan=7 style="border-bottom: 2px solid #{{ColorPrimary}};" | |
Revision as of 02:09, December 26, 2016
Syntax
{{Calendar
| month = (calendar month to be generated - optional)
| year = (corresponding year calendar month is to be generated for - optional)
| link = (true or false, default is true - optional)
| p23 ... p31 = (value to appear in date of previous month - optional)
| 01 ... 31 = (value to appear in this month's date - optional)
| n01 ... n06 = (value to appear in date of following month - optional)
}}
Notes
- If no month is entered, the template will generate a calendar for the current month.
- If no year is entered, the template will generate a calendar for the current year.
- To remove the previous/next calendar links, set link = false
- Number parameters prefixed with a "p" (previous) are used to enter content into a date cell from a month that has passed (darkened date).
- Number parameters are used to enter content into a date cell for the current month (e.g. entering a value for "01", like "Bob's birthday", will cause that value to appear in the cell associated with the first of the month).
- Number parameters prefixed with a "n" (next) are used to enter content into a date cell from a month that is forthcoming (darkened date).