Diferencia entre revisiones de «Plantilla:Plegable»
De WikiEducator
(embed a collapsible table for show/hide effect) |
m (use XHTML table syntax instead of wikitext to facilitate use within other templates by reducing vertical bar confusion) |
||
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}}} | + | |
− | + |
Revisión de 14:33 10 ago 2011
[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 |
---|
|