Template:Checkbox hide unhide

Revision as of 17:43, 29 August 2018 by Karsten Theis (talk | contribs) (New page: <noinclude> This template is to make a checkbox that hides an object of a scene when unchecked, and displays them again when checked. The checkbox is checked by default, so it makes sense ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is to make a checkbox that hides an object of a scene when unchecked, and displays them again when checked. The checkbox is checked by default, so it makes sense if the object is visible in the scene. To use the template, include the following in your Proteopedia text:

{{Checkbox hide unhide|Name="ATP molecule"|Selection="ATP"}}

In that spot, a checkbox will appear. Under the hood, the following Wikimedia/Jmol script is inserted:

{{Checkbox hide unhide|Name|Selection}}