Template:Checklist/doc: Difference between revisions
Created page with "{{Documentation}} This template creates a checklist. It relies on the gadgets MediaWiki:Gadget-checkboxList.js and MediaWiki:Gadget-checkboxList.css. ==Usage== Chec..." |
mNo edit summary |
||
| Line 14: | Line 14: | ||
* The <code>notoggleparent</code> parameter is optional and stops the parent checkbox being toggled when all the children are checked. | * The <code>notoggleparent</code> parameter is optional and stops the parent checkbox being toggled when all the children are checked. | ||
== | ==Examples== | ||
<pre>{{Checklist|title=Example heading| | <pre>{{Checklist|title=Example heading| | ||
* Go to Mars | * Go to Mars | ||
| Line 31: | Line 31: | ||
* Sell 32 Martian Rocks | * Sell 32 Martian Rocks | ||
* Return to Gemini Station | * Return to Gemini Station | ||
}} | |||
<pre>{{Checklist|title=Example heading| | |||
*Complete first Objectives | |||
** Go to Mars | |||
** Buy 32 Martian Rocks | |||
** Return to Earth | |||
** Sell 32 Martian Rocks | |||
** Return to Gemini Station | |||
}}</pre> | |||
Produces: | |||
{{Checklist|title=Example heading| | |||
*Complete first Objectives | |||
** Go to Mars | |||
** Buy 32 Martian Rocks | |||
** Return to Earth | |||
** Sell 32 Martian Rocks | |||
** Return to Gemini Station | |||
}} | }} | ||
<includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly> | <includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly> | ||