Template:Expandable button
Close |
| {{{contents}}} |
This template creates a button that expands when clicked
Usage
To use this template, you must enter the parameters "text", "expand-text" or "collapse-text" (preferably text) and then enter the parameter "contents" to control the what appears when you click the button. The button is by default blue but you can control the color with the parameter "background-color".
A expandable button
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | text | Value of both the open and close text if they aren't entered.
| Content | suggested |
| contents | contents | The contents of the button. | Content | suggested |
| expand-text | expand-text | The text of the open text.
| Content | suggested |
| collapse-text | collapse-text | The text of the close text.
| Content | suggested |
| background-color | background-color | Color of the background of the button.
| String | suggested |
| id | id | The unique id of button. Required for using this template multiple times on the same page.
| String | suggested |
| text-color | text-color | The color of the text in the button.
| String | optional |
| style | style | Other style you would like to add. | String | optional |
| border-radius | border-radius | The roundness of the button.
| Number | optional |
| padding | padding | The padding of the button.
| Number | suggested |
| contents-top-border | contents-top-border | The styling of the border between the text and contents. | String | optional |
| text-align | text-align | The alignment of the text, expand-text and collapse-text parameters.
| String | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.