Template:Checklist: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "<includeonly><div class="lighttable checklist {{#if: {{{notoggleparent|}}} | no-toggle-parent }}" style="{{{style|}}}">{{#if: {{{title|}}} | <p style="font-weight: bold; margi..."
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="lighttable checklist {{#if: {{{notoggleparent|}}} | no-toggle-parent }}" style="{{{style|}}}">{{#if: {{{title|}}} | <p style="font-weight: bold; margin-left: 1.5em; margin-bottom: .25em">{{{title}}}</p> }}
<includeonly><div class="lighttable checklist {{#if: {{{notoggleparent|}}} | no-toggle-parent }}" style="{{{style|}}}">{{#if: {{{title|}}} | <p style="font-weight: bold; margin-left: 1.5em; margin-bottom: .25em">{{{title}}}</p> }}
{{{1}}}
{{{1}}}
</div>{{Ctg|Pages with a checklist}}</includeonly><noinclude>{{/doc}}</noinclude>
</div></includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 21:32, 14 June 2020

Template documentation
This documentation is transcluded from Template:Checklist/doc. [edit] [purge]

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 title parameter is optional and allows you to add a heading to the checklist.
  • The style parameter is optional and allows you to add inline CSS to the parent div (not the individual list items).
  • The notoggleparent parameter 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