Template:ShowHide/bottom

From Marxists-en
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

This documentation is about templates {{ShowHide/top}} and {{ShowHide/bottom}}) that have to be used together.

Recommendations :

  • Limit the use of this kind of show/hide boxes
  • Do not use a ShowHide inside another ShowHide

Syntax

Usage :

{{ShowHide/top|title=TITLE}}
Content
{{ShowHide/bottom}}

With all parameters :

{{ShowHide/top
 | align   = 
 | alignT  = 
 | alignB  = 
 | title   = 
 | label   = 
 | width = 
 | height = 
 }}
Content
{{ShowHide/bottom}}

Parameters

Required parameters
parameter effect possible values
title Box title Free, except pipe character "|" .
optional parameters
parameter effect default value possible values
rounding angle rounding 0 Rounded angles, if supported by the browser.
Advised value : 0.6em, expressed in pt, px or em
image image on the left Optional image displayed when box is expanded.
Should be fully written.
alignB box alignment left left, right, center ou justify
height height of collapsed box 1.6em The height has to be defined in a correct unit.
Should not be less than 1.6em, otherwise expect bad behavior.
marginBottom margin bottom (after the box) 1em The height has to be defined in a correct unit.
Possible to define at 0
width box width 100% The width has to be defined in a correct unit.
colorBorder border color #AAAAAA Valid color expression
examples : black, #C080FF, …
colorBackgroundB Box background color #FFFFFF
colorBackground Content background color white
Text
align content alignment justify left, right, center or justify
alignT title alignment center
label text of the show/hide links [show] / [hide] The slash ("/") allows to separate the two labels. Example : [ show ] / [ hide ].
colorBackgroundT Title Background color #EFEFEF Valid color expression
examples : black, #C080FF, …
colorTexteT Title text color black
thinning title not bold no yes/no

Examples

Template Data

This template creates a box allowing to show/hide some text by clicking

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Box title

Stringrequired
Content alignmentalign

left, right, center or justify ?

Default
left
Stringoptional
Title alignmentalignT

left, right, center or justify ?

Default
center
Stringoptional
Box alignmentalignB

left, right, center or justify ?

Default
left
Stringoptional
Labellabel

Text of the show/hide links

Default
Show/Hide
Stringoptional
Heightheight

Height of the collapsed box

Default
1.6em
Stringoptional
Widthwidth

Width of the collapsed box

Default
100%
Stringoptional
Title colorcolorTextT

Title color

Default
black
Stringoptional
Bold titlethinning

Yes or no

Default
no
Stringoptional
Title background colorcolorBackgroundT

Title background color

Default
#EFEFEF
Stringoptional
Box background colorcolorBackgroundB

Box background color

Default
#FFFFFF
Stringoptional
Content background colorcolorBackground

Content background color

Default
white
Stringoptional
Border colorcolorBorder

Border color

Default
#AAAAAA
Stringoptional

No description.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified