편집 요약 없음 |
편집 요약 없음 |
||
2번째 줄: | 2번째 줄: | ||
{{틀 도움}} | {{틀 도움}} | ||
{{넘겨주기|틀=.|btn}} | {{넘겨주기|틀=.|btn}} | ||
<onlyinclude>{{#css: .mw-customtoggle-{{{id|ABC}}} { {{{style2|}}} {{{common|}}} } .mw-customtoggle-{{{id|ABC}}}:has(~ #mw-customcollapsible-{{{id|ABC}}}:not([style*="display"])) { {{{style1|}}} {{{common|}}} } }}<div class="mw-customtoggle-{{{id|ABC}}}">{{{content|}}}</div><div id="mw-customcollapsible-{{{id|ABC}}}" class="mw-collapsible"></div></onlyinclude> | <onlyinclude>{{#css: .mw-customtoggle-{{{id|ABC}}} { {{{style2|}}} {{{common|}}} } .mw-customtoggle-{{{id|ABC}}}:has(~ #mw-customcollapsible-{{{id|ABC}}}:not([style*="display"])) { {{{style1|}}} {{{common|}}} } .mw-customtoggle-{{{id|ABC}}}::before { content: '{{{csscontent2|}}}'; } .mw-customtoggle-{{{id|ABC}}}:has(~ #mw-customcollapsible-{{{id|ABC}}}:not([style*="display"]))::before { content: '{{{csscontent1|}}}'; } }}<div class="mw-customtoggle-{{{id|ABC}}}">{{{content|}}}</div><div id="mw-customcollapsible-{{{id|ABC}}}" class="mw-collapsible"></div></onlyinclude> | ||
{{#tag:syntaxhighlight|<nowiki>{{버튼 | {{#tag:syntaxhighlight|<nowiki>{{버튼 | ||
|id=아이디 | |id=아이디 | ||
9번째 줄: | 9번째 줄: | ||
|style2=누른 후 스타일 | |style2=누른 후 스타일 | ||
|content=내용 | |content=내용 | ||
|csscontent1=기본 내용(선택)(구조상 텍스트 아님) | |||
|csscontent2=누른 후 내용(선택)(구조상 텍스트 아님) | |||
}}</nowiki>|lang=html+handlebars}} | }}</nowiki>|lang=html+handlebars}} | ||
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다. | 커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다. | ||
21번째 줄: | 23번째 줄: | ||
|style1=background: red; color: white; | |style1=background: red; color: white; | ||
|style2=background: lime; color: black; | |style2=background: lime; color: black; | ||
| | |csscontent1=BUTTON | ||
|csscontent2=CLICKED! | |||
}}</syntaxhighlight> | }}</syntaxhighlight> | ||
|{{버튼 | |{{버튼 | ||
28번째 줄: | 31번째 줄: | ||
|style1=background: red; color: white; | |style1=background: red; color: white; | ||
|style2=background: lime; color: black; | |style2=background: lime; color: black; | ||
| | |csscontent1=BUTTON | ||
|csscontent2=CLICKED! | |||
}} | }} | ||
|} | |} | ||
{{김찬 제작 틀}} | {{김찬 제작 틀}} |
2025년 1월 27일 (월) 23:33 판
틀:버튼 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
이 틀은 {{btn}}(으)로도 사용할 수 있습니다.
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.
문법 | 결과 |
---|---|