Template:Checkbox hide unhide: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
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: | 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: | ||
<nowiki> | <nowiki> | ||
{{Checkbox hide unhide|Name= | {{Checkbox hide unhide|Name=ATP molecule|Selection=ATP}}</nowiki> | ||
In that spot, a checkbox will appear. | In that spot, a checkbox will appear. | ||
Line 21: | Line 21: | ||
<scriptWhenUnchecked>hide {{{Selection}}} or hidden</scriptWhenUnchecked> | <scriptWhenUnchecked>hide {{{Selection}}} or hidden</scriptWhenUnchecked> | ||
<checked>true</checked> | <checked>true</checked> | ||
<text>{{{ | <text>{{{Name}}}</text> | ||
</jmolCheckbox> | </jmolCheckbox> | ||
</jmol> | </jmol> | ||
Line 27: | Line 27: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<jmol> | <jmol> | ||
<jmolCheckbox> | <jmolCheckbox> | ||
Line 33: | Line 32: | ||
<scriptWhenUnchecked>hide {{{Selection|all}}} or hidden</scriptWhenUnchecked> | <scriptWhenUnchecked>hide {{{Selection|all}}} or hidden</scriptWhenUnchecked> | ||
<checked>true</checked> | <checked>true</checked> | ||
<text> {{ | <text> {{{Name|Everything}}} </text> | ||
</jmolCheckbox> | </jmolCheckbox> | ||
</jmol> | </jmol> | ||
Troubleshooting: | Troubleshooting: | ||
Name | Named parameter Name: {{{Name|Everything}}} | ||
Named parameter Selection: {{{Selection|all}}} | |||
Named parameter Initial: {{{Initial|true}}} | |||
</includeonly> | |||
Named parameter | |||