Template:Collapse top/nl

From mediawiki.org
This page is a translated version of the page Template:Collapse top and the translation is 100% complete.
Uitgevouwen inhoud
De volgende inhoud is geplaatst in een samengevouwen veld voor een betere leesbaarheid.
Template documentation

De sjablonen {{Collapse top}} en {{Collapse bottom}} worden gebruikt voor het plaatsen van een samengevouwen veld om een discussie heen op een overlegpagina.

Gebruik

Plaats {{Collapse top}} en {{Collapse bottom}} om de samen te vouwen tekst. Bijvoorbeeld:

{{Collapse top|title=This is the title text}}
Sample contents text
{{Collapse bottom}}

resultaat:

This is the title text

Sample contents text

{{Collapse bottom}} moet op een eigen regel staan.

Parameters

Het sjabloon heeft de volgende parameters, deze zijn allemaal optioneel. Zij zijn hoofdletterafhankelijk. Degene die CSS gebruiken moeten het in het CSS-formaat zetten (bijv. 1em niet 1 em).

|1= (of eerste onbenoemde parameter), |title=, |reason=, |header=, |heading=
Geeft de samengevouwen box een altijd zichtbare titel, die komt op dezelfde regel als de link om de box te tonen. De standaardwaarde is "Uitgevouwen inhoud".
Bijvoorbeeld, {{Collapse top|title=This is the title text}} of {{Collapse top|This is the title text}}. NB: De kortere, ongenoemde opmaak zal niet werken als de waarde van de titel een gelijkteken (=) bevat.
|warning=yes
Zal een standaardwaarschuwing plaatsen onder de hoofdtitel met de inhoud "Het volgende is gesloten discussie. Pas het a.u.b. niet aan"
Alle niet-lege waarden voor deze parameter zullen dit effect hebben (bijv. |warning= zal niet zoals verwacht werken).
|2= (of tweede onbenoemde parameter)
Dit is een optionele waarschuwing. Het zal de bovenstaande standaard waarschuwing vervangen, het is in dit geval niet nodig om ook |warning=yes te gebruiken, maar het kan geen kwaad.
|left=yes
Zal de titel uitlijnen langs de linkermarge (in RTL-talen langs de rechtermarge).
Standaard wordt de tekst gecentreerd, specifiek tussen de linkerhoek van het groene veld en de linkerhoek van de link om te tonen.
Alle niet-lege waarden voor deze parameter zullen dit effect hebben (bijv. |left= zal niet zoals verwacht werken).
|expand=yes
Laat het veld uitgevouwen met de rand en de kleur. Standaard is samengevouwen.
Alle niet-lege waarden voor deze parameter zullen dit effect hebben (bijv. |expand= zal niet zoals verwacht werken).
|bg=
Stelt de achtergrondkleur van de titel van het te vouwen veld in. Standaardwaarde is "#F8FCFF", een witte kleur. De kleurenlijst.
Een voorbeeld, {{Collapse top|This is the title text|bg=#008000}} of {{Collapse top|This is the title text|bg=green}} (numerieke HTML-kleurcodes vereisen een voorloop #).
|fc=
Stel de letterkleur van de titel van het te vouwen veld in. Standaardwaarde is "black".
Zie hierboven |bg=, voor details over de kleuropties.
|border=
Stelt de dikte van de randlijn van het samengevouwen veld in. Standaardwaarde is 1px.
Voorbeeld: {{Collapse top|border=2px}}, dit is wel een dikte die niet hoger hoeft.
|b-color=
Stelt de kleur van de rand in. Standaardwaarde is silver (#C0C0C0).
Zie hierboven |bg=, voor details over de kleuropties.
|padding=
Stelt de padding (afstand tot de randen) van het samengevouwen veld in binnen het gekleurde gebied. Standaardwaarde is 8px.
|width=
Stelt de wijdte van het totale sjabloon in relatief aan de pagina (of een block element bevattende de samengevouwen box). Dit moet vrijwel altijd opgegeven worden als een percentage, bijv. |width=50%, of in relatieve em eenheden, bijv. |width=30em. Het gebruiken van waarden met pixels zou voorkomen dienen te worden, die zijn eigenlijk zonder betekenis omdat het per webbrowser en de lokale CSS het resultaat verschilt. Bij pixels maken ook o.a. het besturingssysteem, het zoomniveau en de lettertypegrootte uit.
|border2=
Stelt de eigenschappen in van de rand (border) van de box als het is uitgevouwen. De standaardwaarde is 1px silver (het is altijd een ononderbroken lijn).
Bij {{Collapse top|border2=2px}} (alleen dikte of kleur wordt aangepast als er maar een waarde wordt gebruikt).
Zie hierboven |bg=, voor details over de kleuropties.
|bg2=
Stelt de achtergrondkleur van de box in als die uitgevouwen is. De standaardwaarde is white (#FFF).
Zie hierboven |bg=, voor details over de kleuropties.
|indent=
De box inspringen vanaf de linkerkant van de pagina. Standaard is niet inspringen. Elke : in de opmaak van de overlegpagina is gelijkwaardig aan 1.6em van het inspringen (bijv. om inspring niveau :::: te krijgen, gebruik |indent=6.4em). U kunt ook een percentage gebruiken.
Het gebruiken van waarden met pixels zou voorkomen dienen te worden (Zie |width=).

Voorbeelden

  • Stelt de titel van de box in. De standaardwaarde is "Uitgevouwen inhoud" – {{Collapse top|This is the title text}}
This is the title text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Een standaard waarschuwingsregel toevoegen – {{Collapse top|This is the title text|warning=true}}
This is the title text
Het volgende is samengevouwen. Pas het niet aan.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Een aangepaste waarschuwingsregel toevoegen – {{Collapse top|This is the title text|This is a custom warning line}}
This is the title text
This is a custom warning line
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Boxtitel uitlijnen langs linkermarge – {{Collapse top|left=true}}
Uitgevouwen inhoud
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Achtergrondkleur wijzigen – {{Collapse top|bg=#F0F2F5}}
Uitgevouwen inhoud
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Instellen van de padding – {{Collapse top|padding=5em}}
Uitgevouwen inhoud
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  • Sectie archiveren – De onderstaande opmaak:
{{Collapse top}}
== Section header ==
Sample contents text
{{Collapse bottom}}

moet herschreven worden als:

{{Collapse top|Section header}}
Sample contents text
{{Collapse bottom}}

Eindresultaat:

Section header

Sample contents text

TemplateData

Dit is de TemplateData documentatie van dit sjabloon dat gebruikt wordt door de VisualEditor en andere hulpmiddelen.

Collapse top

Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Title1 title heading header reason result

Main title of collapsed box

Example
This is the title text
Unknownrequired
Custom warning line2

Will override the standard warning line, and make the 'warning' parameter unnecessary

Example
This is a custom warning line
Stringoptional
indentindent

Indents the box from the left of the page

Auto value
0px
Unknownoptional
expandexpand collapse

Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring

Example
true
Auto value
Stringoptional
Border width (px)border

Sets the width of the border line on the collapsed material

Default
1px
Example
2px
Auto value
Unknownoptional
Border colorb-color

Sets the border color

Default
Silver
Example
#F0F2F5
Unknownoptional
Template width (px or %)width

Sets the width of the overall template

Example
50%
Unknownoptional
Collapsed material background colorbg

Sets the background color of the collapsed material

Default
#CFC
Example
#F0F2F5
Unknownoptional
Alight along the left margin (true or blank)left

Will align the 'parameter 1 title' along the left margin

Default
Example
true
Stringoptional
Title font colorfc

Sets the font color of the title of the collapsible bar

Default
Black
Example
#F0F2F5
Unknownoptional
Warning (true or blank)warning

Will display a default warning line under the main title which reads "The following is a closed debate. Please do not modify it."

Example
true
Unknownoptional
Expanded box border size & colorborder2

Sets the border of the box that appears when template is expanded

Default
1px silver
Example
2px
Unknownoptional
Padding (px)padding

Sets the padding on the collapsed material in the colored area

Default
8px
Example
16px
Unknownoptional
Expanded box colorbg2

Sets background of the box that appears when template is expanded

Default
white
Example
#F0F2F5
Unknownoptional

Zie ook