Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Expandable button/doc

From Wikipedia, the free encyclopedia

This template creates a button that expands when clicked

Usage

[edit]

To use this template, you must enter the parameters "text", "expand-text" or "collapse-text" (preferably text) and then enter the parameter "contents" to control the what appears when you click the button. The button is by default blue but you can control the color with the parameter "background-color".

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Expandable button in articles based on its TemplateData.

TemplateData for Expandable button

A expandable button

Template parameters

ParameterDescriptionTypeStatus
texttext

Value of both the open and close text if they aren't entered.

Default
Open for expand-text, close for collapse-text.
Contentsuggested
contentscontents

The contents of the button.

Contentsuggested
expand-textexpand-text

The text of the open text.

Default
Value of the parameter text.
Contentsuggested
collapse-textcollapse-text

The text of the close text.

Default
Value of the parameter text.
Contentsuggested
background-colorbackground-color

Color of the background of the button.

Default
#3266cc
Stringsuggested
idid

The unique id of button. Required for using this template multiple times on the same page.

Default
id
Stringsuggested
text-colortext-color

The color of the text in the button.

Default
white
Stringoptional
stylestyle

Other style you would like to add.

Stringoptional
border-radiusborder-radius

The roundness of the button.

Default
2px
Numberoptional
paddingpadding

The padding of the button.

Default
5px
Numbersuggested
contents-top-bordercontents-top-border

The styling of the border between the text and contents.

Stringoptional
text-aligntext-align

The alignment of the text, expand-text and collapse-text parameters.

Default
center
Stringoptional