Difference between revisions of "Template:Todo"

(New page: {| class="messagebox {{#ifeq: {{{small}}} | yes |small|standard}}-talk" |- ! style="text-align: left; font-size: {{#ifeq: {{{small}}} | yes |small|large}}" | [[Image:Stock post message.svg...)
 
(Update template)
 
Line 1: Line 1:
{| class="messagebox {{#ifeq: {{{small}}} | yes |small|standard}}-talk"
+
<table 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; border-spacing: 4px; {{{style|}}}">
|-
+
<tr><th class="mbox-text" style="text-align: left; padding: 1px;">{{
! style="text-align: left; font-size: {{#ifeq: {{{small}}} | yes |small|large}}" | [[Image:Stock post message.svg|25px]]<!-- no reason to have special column just for pic, fits with text nicely
+
  #if: {{{inner|}}}
--> [[Wikipedia:To-do list|To-do list]]{{#ifeq: {{{small}}} | yes||&#32;for {{{for|[[:{{{target|{{SUBJECTPAGENAME}}}}}]]}}} }}:
+
  | <!--nothing-->
| style="text-align: right; font-size: {{#ifeq:{{{small|}}}|yes|x-}}small" class="plainlinks" | [{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=edit{{#ifeq: {{{nopreload}}} |yes ||&preload=Template:Tasks/Preload}}}} edit]{{·}} [{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=history}} history]{{·}} [{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=watch}} watch]&nbsp;'''·'''&nbsp;[{{fullurl:{{#rel2abs:.}}|action=purge}} refresh]
+
  | <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}}
| class="todo-box" colspan="2" style="background:#fffaef; padding:5px; margin: 5px; border: 1px dotted gray; {{#ifeq: {{{small}}} | yes |font-size: small}}" |
+
  }} {{
{{#ifexist:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|{{ {{#rel2abs:{{{list|./to do}}}|{{{target|}}}}} }}|{{#ifeq: {{{nopreload}}} | yes |<!-- if todo list nonexistent, we can use example -->|{{Template:Tasks/Preload}} }}}}
+
    #ifeq: {{{small|}}} | yes | e | edit
|-
+
  }}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=history}} {{
{{#if: {{{1|}}} |
+
    #ifeq: {{{small|}}} | yes | h | history
{{!}} colspan="2" style="text-align:right; font-size: {{#ifeq: {{{small}}} | yes |x}}x-small" {{!}} '''[[:Category:To do, by priority|Priority {{{1}}}]] {{#ifeq: {{{1}}} | 1 |(top)}}'''
+
  }}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=watch}} {{
 +
    #ifeq: {{{small|}}} | yes | w | watch
 +
  }}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:.}}|action=purge}} {{
 +
    #ifeq: {{{small|}}} | yes | r&#160; | refresh&#160;
 +
  }}]</span>
 +
}}{{
 +
  #ifeq: {{{image|}}} | none
 +
  | <!--nothing-->
 +
  | [[File:{{{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>
 
}}
 
}}
|}<includeonly>{{#ifeq: {{{nocats}}} |yes|
+
<tr><td class="todo-box" colspan="2" style="{{Talk other|demospace={{{demospace|}}}|background: #FFFAEF;}} border:1px dotted gray; padding: 2px 4px;" >{{#if:{{{maxheight|}}}|<div style="max-height: {{{maxheight}}}; overflow: auto;">}}
<!-- nothing -->|{{DEFAULTSORT:{{PAGENAME}}}}
+
{{{inner|{{
[[Category:To do]]
+
  #ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
[[Category:To do, priority {{#if: {{{1|}}} |{{{1}}}{{#ifeq: {{{1}}} |1|&#32;(Top)}}|undefined}}]]
+
  | <!--/to do exists, show it-->&#x20;
 +
{{ {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }} }}
 +
  | <!--it doesn't--> ''To-do list is empty: remove <nowiki>{{To do}}</nowiki> tag or click on edit to add an item.''
 +
}}}}}{{#if:{{{maxheight|}}}|</div>}}
 +
</td></tr>
 +
{{
 +
  #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>
 +
}}
 +
</table><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>
 
}}</includeonly><noinclude>
 
This template is a copy of [http://en.wikipedia.org/wiki/Template:Todo Template:Todo] on Wikipedia. Please go there for further information.
 
This template is a copy of [http://en.wikipedia.org/wiki/Template:Todo Template:Todo] on Wikipedia. Please go there for further information.
 
</noinclude>
 
</noinclude>

Latest revision as of 06:59, 24 September 2015

edit·history·watch·refresh 25px To-do list for Template:Todo:

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

This template is a copy of Template:Todo on Wikipedia. Please go there for further information.