편집 요약 없음 |
편집 요약 없음 |
||
3번째 줄: | 3번째 줄: | ||
{{넘겨주기|틀=.|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|}}} } }}<div class="mw-customtoggle-{{{id|ABC}}}">{{{content|}}}</div><div id="mw-customcollapsible-{{{id|ABC}}}" class="mw-collapsible"></div></onlyinclude> | ||
{{#tag:syntaxhighlight|<nowiki>{{버튼|id=아이디|style1=기본 스타일|style2=누른 후 스타일|content=내용}}</nowiki>|lang=html+handlebars}} | {{#tag:syntaxhighlight|<nowiki>{{버튼 | ||
|id=아이디 | |||
|common=공통 스타일(선택) | |||
|style1=기본 스타일 | |||
|style2=누른 후 스타일 | |||
|content=내용 | |||
}}</nowiki>|lang=html+handlebars}} | |||
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다. | 커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다. | ||
2025년 1월 27일 (월) 23:29 판
틀:버튼 | |
---|---|
사용문서
|
|
넘겨주기
|
이동하기
|
이 틀은 {{btn}}(으)로도 사용할 수 있습니다.
커스텀 접기를 이용한 누를 때마다 정해둔 스타일이 바뀌는 틀입니다.
문법 | 결과 |
---|---|
the button turns into green
when it is successfully clicked |