This template is for use when you wish to minimise information to be expanded at the user's discretion.
| This is a documentation subpage for Template:Show. It may contain usage information, categories and other content that is not part of the original template page. |
This template is for use when you wish to minimise information to be expanded at the user's discretion.
This usage:
{{show
|Header!
|Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.}}
Yields this output:
To use this in a table:
{| class="wikitable" width=300px
|-
|
{{show
|Header!
|Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.}}
|}
...Yields this:
|
Header! Content!
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button. |
The alignment of the header text and content text can be manipulated using the parameters |headalign= and |textalign=. For example, the usage
{| class="wikitable" width=300px
|-
|
{{show
|Header!
|Content!
|headalign=center
|textalign=right}}
|-
|}
yields the output
|
Header! Content!
|
Note that you should not put the alignment parameters in quotes (i.e., you should not use "center", but just center, or the color of the header may change. Also, while headalign=right is possible, it causes the header to overlap with the [show] button.
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.