Module:BubbleBox/doc

From Inkipedia, the Splatoon wiki

This is the documentation page for Module:BubbleBox

Produces a site-standard content container.

Parameters

title Optional named or unnamed positional arg 1. The title content of the container.
inner Optional named or unnamed positional arg 2. The inner content of the container.
background Optional. A CSS color value to use as the background for the content portion of the container, or one of the site-wide backgrounds found in MediaWiki:Backgrounds.css. The default color is rgba(border, 0.25).
border Optional. An RGB triplet to use as the border color of the container. The default color is 0, 153, 255, defined in SiteColor as "Generic".
collapsed Optional. If present, the container becomes collapsible. Must be one of the following:
  • "true" - The collapsible region is collapsed by default.
  • "false" - The collapsible region is expanded by default.
  • If not present, the container will not be collapsible (but will show inner if provided).
style Optional. A CSS property list to apply to the container.
tags Optional. If present, the given tag names will be added to the element. This is useful only for back-end JavaScript purposes.
{{BubbleBoxM}}
{{BubbleBoxM|background=rgba({{SiteColor|Splatoon}}, 0.25)|border={{SiteColor|Splatoon}}|Sample text 1}}
{{BubbleBoxM|Sample text 2}}
{{BubbleBoxM|border={{SiteColor|Splatoon 2}}|Sample text 3}}
{{BubbleBoxM|background=grizzco|border={{SiteColor|Splatoon 2}}|<big>Grizzco</big>|Needs {{color|you|orange}}!}}
{{BubbleBoxM|Title row|Additional text|background=stripes|border={{SiteColor|NIWA}}}}
{{BubbleBoxM|Static content|Oh hello!|collapsed=true|background=bubbles|border={{SiteColor|Splatoon 3}}}}
{{BubbleBoxM|Static content|Collapsible content|collapsed=false|border=40,80,120}}

gives...

Sample text 1
Sample text 2
Sample text 3
Grizzco
Needs you!
Title row
Additional text
Static content
Oh hello!
Static content
Collapsible content