The ((collapse-mobile|Headline=headline|Content=folding text)) template is used for placing collapse boxes around text in a context where mobile readers may need to access the content - standard collapse templates such as ((collapse top)) and ((collapse bottom)) often do not display on mobile devices, or display with errors. ((collapse-mobile)) will display by default as expanded text on mobile devices.

Usage

[edit]

This template is customizable with regard to content and styling. Most customizable values will default to a basic/standard value if not defined.

Content

[edit]

Its most basic usage, with only collapsed content defined, this template would be called as:

and display as (click to display in full):

Expand
This is my text!


Users can also define a Headline value, which will replace "Expand" as the above-the-fold text to display:

and display as:

This is my headline
This is my text!


Styling

[edit]

This template also accepts optional CSS styling. The following parameters are defined for this template:

Example

[edit]

A very complex (and not particularly attractive) usage of ((collapse-mobile)) might then look like:

((collapse-mobile
|Headline=This is my headline
|Content=This is my text
|barBackground=#A9D0F5
|barFloat=right
|barFont=Verdana
|barTextAlign=center
|barFontSize=1.5em
|barBorder=2px dashed #585858
|barBorderBottom=2px solid #CEE3F6
|boxBackground=#E0F2F7
|boxBorder=2px dotted #0A0A2A
|boxFont=monospace
|boxFontSize=2em
|boxPadding=25px
|boxmarginTop=5px
|boxBorderTop=none
))


and would display as:

This is my headline
This is my text


Full blank syntax

[edit]
((collapse-mobile
|collapsed       = no
|barBackground   = 
|barFloat        = 
|barFont         = 
|barTextAlign    = 
|barFontSize     = 
|barFontColor    = 
|barBorder       = 
|barRadius       = 
|barBorderBottom = 
|barMargin       = 
|barMore         = 
| Headline       = 
|boxBackground   = 
|boxBorder       = 
|boxRadius       = 
|boxFont         = 
|boxFontSize     = 
|boxFontColor    = 
|boxPadding      = 
|boxMarginTop    = 
|boxBorderTop    = 
|boxMore         = 
| Content        = 
))
[edit]

See also

[edit]