Difference between revisions of "Template:BubbleBox"
ink>GuyPerfect m (Adding tags argument) |
Darumarchen (talk | contribs) m (25 revisions imported) |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 26: | Line 26: | ||
{{BubbleBox|Sample text 2}} | {{BubbleBox|Sample text 2}} | ||
{{BubbleBox|border={{SiteColor|Splatoon 2}}|Sample text 3}} | {{BubbleBox|border={{SiteColor|Splatoon 2}}|Sample text 3}} | ||
| − | {{BubbleBox|open|background= | + | {{BubbleBox|open|background=stripes|border={{SiteColor|NIWA}}}}Sample text 4</div> |
{{BubbleBox|collapsed=false|border=192,192,192|Static content}}Collapsible content</div></div></nowiki> | {{BubbleBox|collapsed=false|border=192,192,192|Static content}}Collapsible content</div></div></nowiki> | ||
| Line 33: | Line 33: | ||
{{BubbleBox|Sample text 2}} | {{BubbleBox|Sample text 2}} | ||
{{BubbleBox|border={{Sitecolor|Splatoon 2}}|Sample text 3}} | {{BubbleBox|border={{Sitecolor|Splatoon 2}}|Sample text 3}} | ||
| − | {{BubbleBox|background= | + | {{BubbleBox|background=stripes|border={{SiteColor|NIWA}}|open}}Sample text 4</div> |
{{BubbleBox|collapsed=false|border=192,192,192|Static content}}Collapsible content</div></div> | {{BubbleBox|collapsed=false|border=192,192,192|Static content}}Collapsible content</div></div> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:26, 17 May 2019
Produces a site-standard content container.
Parameters[edit]
content |
Unnamed. | The content of the container, or "open" to leave the container as an unterminated <div> element. |
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". |
background |
Optional. | A CSS color value to use as the background for the content portion of the container, or "bubbles" for the site-standard bubble background. The default color is rgba(border, 0.25).
|
style |
Optional. | A CSS property list to apply to the container. |
collapsed |
Optional. | If present, the container becomes collapsible and two nested, unterminated <div> elements. content will appear before the collapsible region. Must be one of the following:
|
tags |
Optional. | If present, the given tag names will be added to the element. This is useful only for back-end JavaScript purposes. |
Example[edit]
Markup[edit]
{{BubbleBox|background=rgba({{SiteColor|Splatoon}}, 0.25)|border={{SiteColor|Splatoon}}|Sample text 1}}
{{BubbleBox|Sample text 2}}
{{BubbleBox|border={{SiteColor|Splatoon 2}}|Sample text 3}}
{{BubbleBox|open|background=stripes|border={{SiteColor|NIWA}}}}Sample text 4</div>
{{BubbleBox|collapsed=false|border=192,192,192|Static content}}Collapsible content</div></div>
Output[edit]
Sample text 1
Sample text 2
Sample text 3
Sample text 4
Static content
Collapsible content