Difference between revisions of "Template:EventDatesBox"

From Nookipedia, the Animal Crossing wiki
m
(Replacing ColorPrimary/ColorSecondary with CSS classes)
Line 1: Line 1:
{|class="userboxes" style="margin-left: {{{left|1}}}em; margin-bottom: 0.5em; width: {{#expr:{{{columns|1}}}*242+8}}px; border: {{{bordercolor|#{{ColorPrimary}}}}} solid 3px; {{roundy|20px}} background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; float: {{{2|{{{align|left}}}}}}; {{{extra-css|}}}"
+
{|class="userboxes theme-background theme-border" style="margin-left: {{{left|1}}}em; margin-bottom: 0.5em; width: {{#expr:{{{columns|1}}}*242+8}}px; {{#if: {{{bordercolor|}}} | border-color: {{{bordercolor|}}};|}} {{roundy|20px}} background-color: {{{backgroundcolor|#FFFFFF}}}; color: {{{textcolor|#000000}}}; float: {{{2|{{{align|left}}}}}}; {{{extra-css|}}}"
 
|<div style="text-align: center; font-size: 120%; font-weight: bold;">{{{1|{{{toptext|Recurrence}}}}}}</div><noinclude>
 
|<div style="text-align: center; font-size: 120%; font-weight: bold;">{{{1|{{{toptext|Recurrence}}}}}}</div><noinclude>
 
|}{{Clear}}
 
|}{{Clear}}

Revision as of 21:52, April 3, 2021

Recurrence

Usage

To create a box in which to hold dates, simply use:

{{EventDates}}
*List of dates
{{Userboxesend}}

Do not forget the {{Userboxesend}}!