Template:Content Box: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
No edit summary
(Add font color field)
 
Line 23: Line 23:
             "description": "What should be rendered in the content box. Can be other divs.",
             "description": "What should be rendered in the content box. Can be other divs.",
             "type": "content"
             "type": "content"
         }
         },
      "font-color": {
"label": "Font Color",
"description": "Sets the color for font in the the box",
"default": "black"
 
     }
     }
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<div style="background-color: {{{bg-color|#99AEBB}}}; border-style: {{{bd-style|dotted}}};">
<div style="background-color: {{{bg-color|#99AEBB}}}; border-style: {{{bd-style|dotted}}}; color:{{{font-color|black}}};">
{{{content}}}
{{{content}}}
</div>
</div>

Latest revision as of 14:40, 7 April 2024

Usage

This allows the creation of a segmented off div with styling.

Allows for the creation of segemented boxes with variying styles

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Background Colourbg-color

Sets the colour of the Content Box. Must be hex. Defaults to #99AEBB, a dark gray.

Default
#99AEBB
Stringoptional
Border Stylebd-style

Sets the style for the border. Defaults to dotted. Other styles can be found https://developer.mozilla.org/en-US/docs/Web/CSS/border-style.

Suggested values
dotted none solid
Default
dotted
Stringoptional
Contentcontent

What should be rendered in the content box. Can be other divs.

Contentoptional
Font Colorfont-color

Sets the color for font in the the box

Default
black
Unknownoptional

{{{content}}}