Template:Todo: Difference between revisions

From SikhiWiki
Jump to navigationJump to search
(Blanked the page)
No edit summary
Line 1: Line 1:
 
{| class="{{talk other|demospace={{{demospace|}}}|tmbox tmbox-notice|ombox ombox-notice}} {{#ifeq:{{{small|}}}|yes|mbox-small}} {{#ifeq:{{{collapsed|}}}|yes|collapsible collapsed}} t-todo" style="border-collapse:separate; {{{style|}}}" cellspacing="4"
<tr><th class="mbox-text" style="text-align:left; padding:1px;">{{
  #if: {{{inner|}}}
  | <!--nothing-->
  | <span class="noprint plainlinks" style="float:right; text-align:right; font-size:{{#ifeq:{{{small|}}}|yes|100|88}}%; font-weight:normal;">[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=edit{{
    #ifeq: {{{nopreload}}} | yes | | &preload=Template:Tasks/Preload}}
  }} {{
    #ifeq: {{{small|}}} | yes | e | edit
  }}]&thinsp;<b>&middot;</b>&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=history}} {{
    #ifeq: {{{small|}}} | yes | h | history
  }}]&thinsp;<b>&middot;</b>&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=watch}} {{
    #ifeq: {{{small|}}} | yes | w | watch
  }}]&thinsp;<b>&middot;</b>&thinsp;[{{fullurl:{{#rel2abs:.}}|action=purge}} {{
    #ifeq: {{{small|}}} | yes | r&nbsp; | refresh&nbsp;
  }}]</span>
}}{{
  #ifeq: {{{image|}}} | none
  | <!--nothing-->
  | [[Image:{{{image|Stock post message.svg}}}|{{#ifeq:{{{small|}}}|yes|20|25}}px]]
}} [[Wikipedia:To-do list|To-do{{#ifeq:{{{small|}}}|yes||&#32;list}}]]{{
  #ifeq: {{#ifeq:{{{smallfor|}}}|yes|no|{{{small|}}}}}|yes||&#32;for {{{for|[[:{{{target|{{SUBJECTPAGENAME}}}}}]]}}}
}}:</th><td class="mbox-empty-cell"></td></tr>{{
  #if: {{{above|}}} | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>
}}
|-
| class="todo-box" colspan="2" style="{{talk other|demospace={{{demospace|}}}|background:#fffaef;}} border:1px dotted gray; padding: 2px 4px;" |{{{inner|{{
  #ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
  | <!--/to do exists, show it-->&#x20;
{{ {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }} }}
  | <!--it doesn't--> <small>''To-do list is empty: remove <nowiki>{{to do}}</nowiki> tag or click on edit to add an item.''</small>
}}}}}
|-
{{
  #if: {{{below|}}} | <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>
}}
|}<includeonly>{{
  #ifeq: {{{nocats}}} | yes | | {{{category|[[Category:Wikipedia pages with to-do lists|{{PAGENAME}}]]}}}{{
    #if: {{{inner|}}} | | {{
      #ifexist: {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} | | {{#switch:{{NAMESPACE}}
      |{{ns:2}}
      |{{ns:3}}=
      |#default=[[Category:Wikipedia pages with to-do lists, unused]]
      }}
    }}
  }}
}}</includeonly><noinclude>
{{Documentation}}
<!-- Please add interwikis to the /doc subpage, not here. -->
</noinclude>

Revision as of 12:53, 3 May 2012

{{#if: {{ #if: |

}}

{{ #if: |

}}{{

#if: |

}}

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"

{{
 #if: 
25}}px

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

 #ifeq: {{#ifeq:|yes|no|}}|yes|| for Template:Todo
}}:
{{{above}}}
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.

}}

{{{below}}}
Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}

This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the local /sandbox or your user space before changing anything here.