틀:Collapse top: 두 판 사이의 차이
(oops, overwrote by own px→em fix) |
잔글 (rm. dead code) |
||
1번째 줄: | 1번째 줄: | ||
<div style="margin-left:{{{indent| |
<div style="margin-left:{{{indent|0}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section --> |
||
{| <!-- Template:Collapse top --> class="mw-collapsible {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;" |
{| <!-- Template:Collapse top --> class="mw-collapsible {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;" |
||
|- |
|- |
2017년 12월 28일 (목) 08:31 판
Extended content |
---|
style="border: solid 1px Silver; padding: {틀:Padding; background: White;" | |
TemplateData
Use in conjunction with {{Collapse bottom}}. Will collapse text in between the two templates.
변수 | 설명 | 형식 | 상태 | |
---|---|---|---|---|
Title | 1 title heading header reason result | Main title of collapsed box
| 알 수 없음 | 필수 |
Custom warning line | 2 | Will override the standard warning line, and make the 'warning' parameter unnecessary
| 문자열 | 선택 사항 |
indent | indent | Indents the box from the left of the page
| 알 수 없음 | 선택 사항 |
expand | expand collapse | Using expand=yes or collapse=no will leave the material uncollapsed with the border and coloring
| 문자열 | 선택 사항 |
Border width (px) | border | Sets the width of the border line on the collapsed material
| 알 수 없음 | 선택 사항 |
Border color | b-color | Sets the border color
| 알 수 없음 | 선택 사항 |
Template width (px or %) | width | Sets the width of the overall template
| 알 수 없음 | 선택 사항 |
Collapsed material background color | bg | Sets the background color of the collapsed material
| 알 수 없음 | 선택 사항 |
Alight along the left margin (true or blank) | left | Will align the 'parameter 1 title' along the left margin
| 문자열 | 선택 사항 |
Title font color | fc | Sets the font color of the title of the collapsible bar
| 알 수 없음 | 선택 사항 |
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."
| 알 수 없음 | 선택 사항 |
Expanded box border size & color | border2 | Sets the border of the box that appears when template is expanded
| 알 수 없음 | 선택 사항 |
Padding (px) | padding | Sets the padding on the collapsed material in the colored area
| 알 수 없음 | 선택 사항 |
Expanded box color | bg2 | Sets background of the box that appears when template is expanded
| 알 수 없음 | 선택 사항 |