Template:SpoilerTable

From Rabbit Hole Wiki
Jump to navigation Jump to search
Template-info.svg Documentation Edit this documentation at Template:SpoilerTable/doc.

Usage

This template is to be used to create other table templates that may contain spoilers, but it can be used to hide individual cells in a normal table.

{|
|-
{{SpoilerTable
| content = 
| hidden = 
| toggle = 
| message = 
| identifier = 
| sort = 
}}
|}

Example

Icon Name
MiniShed.png Our favorite chainsaw wielding sociopath.
DoorLock0.png
[Show]
MiniSnail.png
Who could this be?Our favorite anxiety filled nutjob.

Code

{| class="wikitable sortable" style="text-align:center; width:100%;"
!Icon
!Name
|-
| [[File:MiniShed.png]]
| Our favorite chainsaw wielding sociopath.
|-
{{SpoilerTable
| content = [[File:MiniSnail.png]]
| hidden = Yes
| toggle = [[File:DoorLock0.png|x40px|link=]]<br/>[Show]
| identifier = Snail
| sort = 2
}}
{{SpoilerTable
| content = Our favorite anxiety filled nutjob.
| message = Who could this be?
| hidden = Yes
| identifier = Snail
}}
|}