Template:Checklist/doc: Difference between revisions
Jump to navigation
Jump to search
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> | ||
Latest revision as of 22:40, 2 June 2020
This template creates a checklist. It relies on the gadgets MediaWiki:Gadget-checkboxList.js and MediaWiki:Gadget-checkboxList.css.
Usage
Checklists may be used when the player needs to complete a series of tasks in a mission or just general use in a to-do list on their user and/or sandbox page.
Do not use checklists if the list requires more than one column. These tables should use the standard lighttable class.
- The first unnamed parameter is required and only takes unordered lists, created with an asterisk (
*). - The
titleparameter is optional and allows you to add a heading to the checklist. - The
styleparameter is optional and allows you to add inline CSS to the parent div (not the individual list items). - The
notoggleparentparameter is optional and stops the parent checkbox being toggled when all the children are checked.
Examples
{{Checklist|title=Example heading|
* Go to Mars
* Buy 32 Martian Rocks
* Return to Earth
* Sell 32 Martian Rocks
* Return to Gemini Station
}}
Produces:
Example heading
- Go to Mars
- Buy 32 Martian Rocks
- Return to Earth
- Sell 32 Martian Rocks
- Return to Gemini Station
{{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
}}
Produces:
Example heading
- Complete first Objectives
- Go to Mars
- Buy 32 Martian Rocks
- Return to Earth
- Sell 32 Martian Rocks
- Return to Gemini Station
