Template:To do/doc

From MasonicGenealogy
Jump to: navigation, search

{{#ifeq: to do/doc | doc

 | 

{{

   #ifeq: show | show
   | Template:Mbox
   }}{{
   #if: 
   | 
   | {{#ifexist:Template:To do/doc|[[Category:{{
     #switch: Template
     | Template  = Template
     | User      = User
     | #default  = Wikipedia
   }} documentation pages]]|}}
 }}

| }}

This template adds a to do list to a talk page. If you place this template, for example, on Talk:''Article name'', then type in the to do items on a Talk:''Article name''/to do page, then this template will automatically display them.

Note: Please do not spam this template speculatively to talk pages, as it should only be added when editors are actually going to use it. Unused templates may be removed by any editor without warning.

Usage

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – the normal, default to do list

|collapsed=yes }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – collapses the list

  • {{{{#if:|subst:}}To do{{#if:for=[[Wikipedia:WikiProject Foo|WikiProject Foo]]|

|for=[[Wikipedia:WikiProject Foo|WikiProject Foo]] }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – allows alternate project name

  • {{{{#if:|subst:}}To do{{#if:inner=Blah Blah Blah|

|inner=Blah Blah Blah }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – uses the contents of 'inner' as the to do list

|list=./TODO }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – uses the subpage ./TODO as the to do list, instead of subpage ./to do

|N }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – where N is a number from 1 to 9, defining its priority. (1 is the highest)

|nocats=yes }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – doesn't include categories

|nopreload=yes }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – doesn't include preloaded text

|small=yes }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – formats the to do list as the 'small' version

|target=Foo }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} – uses the to do list of page Foo instead

    • Use the |{{#if:target|target=|}} parameter for accessing another article's to do list, e.g., from a WikiProject page (can be seen in action at WP:TBT)

Parameters

General parameters:

{{To do
|collapsed=
|for=
|inner=
|list=
|nocats=
|nopreload=
|small=
|target=
}}

Parameters for use as a meta-template:

{{To do
...
|above=
|below=
|category=
|image=
|inner=
|smallfor= (if the |for= parameter should be displayed when small)
}}

Examples

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do |  }}

{{ {{ #rel2abs: ./to do | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


|9 }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: 9 | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority 9 {{ #ifeq: 9 | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do |  }}

{{ {{ #rel2abs: ./to do | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


|small=yes }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:yes|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:yes|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|yes}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do |  }}

{{ {{ #rel2abs: ./to do | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


|small=yes }}{{#if:9| |9 }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: 9 | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority 9 {{ #ifeq: 9 | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:yes|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:yes|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|yes}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do |  }}

{{ {{ #rel2abs: ./to do | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


|collapsed=yes }}{{#if:9| |9 }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: 9 | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority 9 {{ #ifeq: 9 | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:yes|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do |  }}

{{ {{ #rel2abs: ./to do | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


  • {{{{#if:|subst:}}To do{{#if:inner=<div>
    * To Prepare this article for FA status.
    * Addition of pictures and/or photographs to illustrate the relevant topics/sections.
    </div>|

|inner=<div>
* To Prepare this article for FA status.
* Addition of pictures and/or photographs to illustrate the relevant topics/sections.
</div> }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

#if:
  • To Prepare this article for FA status.
  • Addition of pictures and/or photographs to illustrate the relevant topics/sections.
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default = }} border:1px dotted gray; padding: 2px 4px;" |
  • To Prepare this article for FA status.
  • Addition of pictures and/or photographs to illustrate the relevant topics/sections.
{{
 #ifeq: yes | yes | |{{
#if:
  • To Prepare this article for FA status.
  • Addition of pictures and/or photographs to illustrate the relevant topics/sections.
| | {{
     #ifexist: {{#rel2abs:./to do|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


|list=./to do2 }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:To do/doc

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do2 |  }}

{{ {{ #rel2abs: ./to do2 | }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do2|}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}


  • {{{{#if:|subst:}}To do{{#if:target=Talk:Britney Spears|

|target=Talk:Britney Spears }}{{#if:1| |1 }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}}

{{#if: {{ #if: | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr> }}{{ #if: 1 | <tr class="todo-priority"><td colspan="2" style="text-align:right; font-size:smaller;">Priority 1 {{ #ifeq: 1 | 1 | (top) }}</td></tr> }}
Template talk talk other
   }} 
 }}
talk = tmbox tmbox-notice other #default = ombox ombox-notice

}} {{#ifeq:|yes|mbox-small}} {{#ifeq:|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; " cellspacing="4" <tr><th class="mbox-text" style="text-align:left; padding:1px;">{{

 #if: 
25}}px

}} To-do{{#ifeq:|yes|| list}}{{

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Talk:Britney Spears

}}:</th><td class="mbox-empty-cell"></td></tr>{{

 #if:  | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>

}}

class="todo-box" colspan="2" style="{{#switch:
 {{#if: 
Template talk talk other
   }} 
 }}
talk = background:#fffaef; other #default =

}} border:1px dotted gray; padding: 2px 4px;" |{{

 #ifexist: {{ #rel2abs: ./to do | Talk:Britney Spears }}

{{ {{ #rel2abs: ./to do | Talk:Britney Spears }} }}

To-do list is empty: remove {{to do}} tag or click on edit to add an item.

}}

{{
 #ifeq: yes | yes | |{{
   #if:  | | {{
     #ifexist: {{#rel2abs:./to do|Talk:Britney Spears}} | | {{#switch:Template
      |User
      |User talk=
      |#default=
      }}
   }}
 }}

}}

See also