Diferencia entre revisiones de «Plantilla:Plegable»
De WikiEducator
(embed a collapsible table for show/hide effect) |
m (Lmorillas movió la página Plantilla:Collapsible a Plantilla:Plegable: Traducción) |
||
(No se muestran 2 ediciones intermedias de 2 usuarios) | |||
Línea 1: | Línea 1: | ||
− | <includeonly> | + | <includeonly><table class="tws collapsible {{#switch:{{{1|}}}|1|yes|hide|hidden|collapse|collapsed=collapsed|#default= }}"><tr><th>{{{2}}}</th></tr><tr><td>{{{3}}}</td></tr></table></includeonly><noinclude>{{documentation}}</noinclude> |
− | + | ||
− | + | ||
− | {{{2}}} | + | |
− | + | ||
− | + | ||
− | {{{3}}} | + | |
− | + |
Última revisión de 10:04 10 ene 2017
[edit]
DocumentationThis template is used to make a Plegable region that the user can expose/hide with a mouse click. The first parameter determines if the region is hidden to begin with (1, hide, hidden, collapsed are all accepted). The second parameter is the header for the region and the third parameter is the body that can be hidden/displayed.
Examples
{{Plegable| |Displayed by Default | * Item 1 * Item 2 * Item 3 }}
Displayed by Default |
---|
|
{{Plegable|hide |Hidden by Default | * Item 1 * Item 2 * Item 3 }}
Hidden by Default |
---|
|