Шаблон:Collapse: различия между версиями
update to match template:collapse top, just need to add the extra collapse logic and we could make this a wrapper for template:collapse top/template:collapse bottom
en>Ahecht (Change to {{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}} to detect present but empty width parameter.) |
en>Frietjes (update to match template:collapse top, just need to add the extra collapse logic and we could make this a wrapper for template:collapse top/template:collapse bottom) |
||
| Строка 1: | Строка 1: | ||
{ | {| <!-- Template:Collapse --> class="collapsible {{#switch:{{lc:{{{expand|no}}}}}|uncollapse|uncollapsed|expand|expanded|yes|y=uncollapsed|#default=collapsed}}" style="background-color: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: both; padding: 1px;" | ||
|- | |||
! style="background-color:{{{background|{{{bg|#CFC}}}}}}; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}} | ! style="background-color: {{{background|{{{bg|#{{main other|F0F2F5|CFC}}}}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}" | <span style="font-size:115%">{{{2|{{{title|{{{heading|{{{header|Extended content}}}}}}}}}}}}</span> | ||
|- | |||
| style="border: solid {{{border2|1px silver}}}; padding: {{{padding|8px}}}; background-color: {{{bg2|white}}};" | | |||
<div>{{{1<noinclude>|{{lorem ipsum|3}}</noinclude>}}}</div> | <div>{{{1<noinclude>|{{lorem ipsum|3}}</noinclude>}}}</div> | ||
|}<noinclude> | |}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||