Difference between revisions of "User:Sunmarsh/Sandbox"

From Nookipedia, the Animal Crossing wiki
(Playing with dynamically generated calendar to replace lists on month pages.)
(Link template refactor proposal)
 
(88 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="border:3px solid #{{ColorPrimary}}; background-color:#{{ColorSecondary}}; {{roundy|10px}};"
+
{{#switch:{{{1|}}}
! colspan=7 style="border-bottom: 1px solid #{{ColorPrimary}};"| <big>January</big>
+
| nl = {{#switch: {{{2|}}}
|-
+
      | short = NH
! width=100px | Sunday
+
      | long = ''Animal Crossing: New Horizons''
! width=100px | Monday
+
      | #default= ''New Horizons''
! width=100px | Tuesday
+
      }}
! width=100px | Wednesday
+
| = {{#switch: {{{2|}}}
! width=100px | Thursday
+
      | nl = NH
! width=100px | Friday
+
      | #default= [[New Horizons|NH]]
! width=100px | Saturday
+
      }}
|-
+
| l = {{#switch:{{{2|}}}
| colspan=7 style="padding:0px; border-bottom: 1px solid #{{ColorPrimary}};" |
+
      | nl = ''Animal Crossing: New Horizons''
|-
+
      | #default= ''[[Animal Crossing: New Horizons]]''
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Sunday | 01}}
+
      }}
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Monday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Monday | 02}}}}
+
| #default = ''[[New Horizons]]''
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Tuesday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Tuesday | 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Tuesday | 03}}}}}}
+
}}<noinclude>
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Wednesday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Wednesday | 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Wednesday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Wednesday | 04}}}}}}}}
+
==Documentation==
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Thursday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Thursday | 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Thursday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Thursday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Thursday | 05}}}}}}}}}}
+
Produces a link to the {{NH}} article.
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Friday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Friday| 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Friday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Friday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Friday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Friday | 06}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 1 {{LOCALYEAR}}}} | Saturday | 01 | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Saturday | 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Saturday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Saturday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Saturday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Saturday | 06}}}}}}}}}}}}
 
|-
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 2 {{LOCALYEAR}}}} | Sunday | 02 | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Sunday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Sunday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Sunday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Sunday | 06 | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Sunday | 07}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 3 {{LOCALYEAR}}}} | Monday | 03 | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Monday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Monday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Monday | 06 | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Monday | 07 | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Monday | 08}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 4 {{LOCALYEAR}}}} | Tuesday | 04 | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Tuesday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Tuesday | 06 | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Tuesday | 07 | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Tuesday | 08 | {{#ifeq: {{#time:l|January 9 {{LOCALYEAR}}}} | Tuesday | 09}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 5 {{LOCALYEAR}}}} | Wednesday | 05 | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Wednesday | 06 | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Wednesday | 07 | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Wednesday | 08 | {{#ifeq: {{#time:l|January 9 {{LOCALYEAR}}}} | Wednesday | 09 | {{#ifeq: {{#time:l|January 10 {{LOCALYEAR}}}} | Wednesday | 10}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 6 {{LOCALYEAR}}}} | Thursday | 06 | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Thursday | 07 | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Thursday | 08 | {{#ifeq: {{#time:l|January 9 {{LOCALYEAR}}}} | Thursday | 09 | {{#ifeq: {{#time:l|January 10 {{LOCALYEAR}}}} | Thursday | 10 | {{#ifeq: {{#time:l|January 11 {{LOCALYEAR}}}} | Thursday | 11}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 7 {{LOCALYEAR}}}} | Friday | 07 | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Friday | 08 | {{#ifeq: {{#time:l|January 9 {{LOCALYEAR}}}} | Friday | 09 | {{#ifeq: {{#time:l|January 10 {{LOCALYEAR}}}} | Friday | 10 | {{#ifeq: {{#time:l|January 11 {{LOCALYEAR}}}} | Friday | 11 | {{#ifeq: {{#time:l|January 12 {{LOCALYEAR}}}} | Friday | 12}}}}}}}}}}}}
 
| height=100px style="padding: 0 5px 0 0; vertical-align: bottom; text-align: right; border:1px solid #{{ColorSecondary}}; background-color:#f2fbfb; {{roundy|5px}};" | {{#ifeq: {{#time:l|January 8 {{LOCALYEAR}}}} | Saturday | 08 | {{#ifeq: {{#time:l|January 9 {{LOCALYEAR}}}} | Saturday | 09 | {{#ifeq: {{#time:l|January 10 {{LOCALYEAR}}}} | Saturday | 10 | {{#ifeq: {{#time:l|January 11 {{LOCALYEAR}}}} | Saturday | 11 | {{#ifeq: {{#time:l|January 12 {{LOCALYEAR}}}} | Saturday | 12 | {{#ifeq: {{#time:l|January 13 {{LOCALYEAR}}}} | Saturday | 13}}}}}}}}}}}}
 
|}
 
  
{{ColorSecondary}}
+
*<code>s</code> - (for 'short') can be used to produce an acronym: [[New Horizons|NH]]
 +
*<code>l</code> - (for 'long') can be used to produce the title's full name: [[Animal Crossing: New Horizons]]
 +
*<code>nl</code> - (for 'no link') can be used to remove the link: New Horizons
 +
 
 +
</noinclude>

Latest revision as of 23:39, August 19, 2021

New Horizons

Documentation

Produces a link to the Animal Crossing: New Horizons article.

  • s - (for 'short') can be used to produce an acronym: NH
  • l - (for 'long') can be used to produce the title's full name: Animal Crossing: New Horizons
  • nl - (for 'no link') can be used to remove the link: New Horizons