Шаблон:Collapse/doc: различия между версиями
Перейти к навигации
Перейти к поиску
→The padding parameter
en>SMcCandlish м (→Usage: more code cleanup) |
en>Frietjes |
||
| Строка 34: | Строка 34: | ||
{{Collapse|1=Discussion text to be put into box.|padding=20px}} | {{Collapse|1=Discussion text to be put into box.|padding=20px}} | ||
=== The <code>float</code> parameter === | |||
The <code>float</code> parameter allows the collapsed content to float to the left, right, or center of the page (defaults to <code>none</code> with <code>width = 100%</code>): | |||
<code><nowiki>{{</nowiki>Collapse|1=<var>Discussion text to be put into box.</var>|float=center<nowiki>}}</nowiki></code> creates the following: | |||
{{Collapse|1=Discussion text to be put into box.|float=center}} | |||
<code><nowiki>{{</nowiki>Collapse|1=<var>Discussion text to be put into box.</var>|float=center|width=30em<nowiki>}}</nowiki></code> creates the following: | |||
{{Collapse|1=Discussion text to be put into box.|float=center|width=30em}} | |||
<code><nowiki>{{</nowiki>Collapse|1=<var>Discussion text to be put into box.</var>|float=left|width=30em<nowiki>}}</nowiki></code> creates the following: | |||
{{Collapse|1=Discussion text to be put into box.|float=left|width=30em}} | |||
<code><nowiki>{{</nowiki>Collapse|1=<var>Discussion text to be put into box.</var>|float=right|width=30em<nowiki>}}</nowiki></code> creates the following: | |||
{{Collapse|1=Discussion text to be put into box.|float=right|width=30em}} | |||
<code><nowiki>{{</nowiki>Collapse|1=<var>Discussion text to be put into box.</var>|float=none|width=30em<nowiki>}}</nowiki></code> creates the following: | |||
{{Collapse|1=Discussion text to be put into box.|float=none|width=30em}} | |||
=== Around header text === | === Around header text === | ||