틀:Collapse top: 두 판 사이의 차이
(add parameter alias to match some other collapsing templates) |
잔글 (give CSS color names in camelcase; it helps be clear that's what they are) |
||
1번째 줄:
<div style="margin-left:{{{indent|0px}}}"><!-- 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|
|-
! style="background: {{{bg|#{{main other|F0F2F5|CCFFCC}}}}}; 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%">{{{1|{{{title|{{{reason|{{{header|{{{heading|Extended content}}} }}} }}} }}} }}}</span>
7번째 줄:
{{{{{|safesubst:}}}!}} style="text-align:center; font-style:italic;" {{{{{|safesubst:}}}!}} {{{2|The following is a closed debate. {{strongbad|Please do not modify it.}} }}} }}
|-
| style="border: solid {{{border2|1px
{{lorem ipsum|3}}
{{Collapse bottom}}
|
2017년 12월 28일 (목) 07:07 판
Extended content |
---|
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
| 알 수 없음 | 선택 사항 |