Jump to content

Template:To do and Template:To do/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Add Template:clear before dotted box to allow for very long article names. See "Very long article name" on testcases page, and talk page discussion.
 
Technical 13 (talk | contribs)
HTML5 compliance.
 
Line 1: Line 1:
{{mbox|demospace={{{demospace|}}}|small={{{small|}}}|name=To do|image=none|style={{{style|}}}|text=<div class="mw-notalk">
{| 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;">{{
{{#ifeq:{{{collapsed|}}}|yes|<div class="mw-collapsible mw-collapsed">}}
{{
#ifeq: {{{image|}}} | none
| <!--nothing-->
| [[File:{{{image|Stock post message.svg}}}|link=|alt=|{{#ifeq:{{{small|}}}|yes|20|25}}px]]
}}{{sp}}'''[[Wikipedia:To-do list|{{{To-do|{{{to-do|To-do}}}}}}{{#ifeq:{{{small|}}}|yes||{{sp}}list}}]]{{
#ifeq: {{#ifeq:{{{smallfor|}}}|yes|no|{{{small|}}}}}|yes||&#32;for {{{for|[[:{{{target|{{SUBJECTPAGENAME}}}}}]]}}}
}}:'''{{sp}}{{
#if: {{{inner|}}}
#if: {{{inner|}}}
| <!--nothing-->
| <!--nothing-->
| <span class="noprint plainlinks" style="float: right; text-align: right; {{#if:{{{small|}}}||font-size: 88%}}">[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=edit{{
| <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: {{{nopreload}}} | yes | | &preload=Template:Tasks/Preload}}
}} {{
}} {{
#ifeq: {{{small|}}} | yes | E | edit
#ifeq: {{{small|}}} | yes | e | edit
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=history}} {{
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=history}} {{
#ifeq: {{{small|}}} | yes | H | history
#ifeq: {{{small|}}} | yes | h | history
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=watch}} {{
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:{{{list|./to do}}}|{{{target|}}}}}|action=watch}} {{
#ifeq: {{{small|}}} | yes | W | watch
#ifeq: {{{small|}}} | yes | w | watch
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:.}}|action=purge}} {{
}}]&thinsp;'''&middot;'''&thinsp;[{{fullurl:{{#rel2abs:.}}|action=purge}} {{
#ifeq: {{{small|}}} | yes | R | refresh
#ifeq: {{{small|}}} | yes | r&#160; | refresh&#160;
}}]{{
}}]</span>
}}{{
#ifeq: {{{lmd|yes}}} | no || {{
#ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
#ifeq: {{{image|}}} | none
| <!--nothing-->
| {{#ifeq:{{{small|}}}|yes||&thinsp;'''&middot;'''&thinsp;Updated {{#time:Y-m-d| {{REVISIONTIMESTAMP:{{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }} }} }}}}
| [[File:{{{image|Stock post message.svg}}}|{{#ifeq:{{{small|}}}|yes|20|25}}px]]
| <!-- no LMD -->
}} [[Wikipedia:To-do list|To-do{{#ifeq:{{{small|}}}|yes||&#32;list}}]]{{
}}
#ifeq: {{#ifeq:{{{smallfor|}}}|yes|no|{{{small|}}}}}|yes||&#32;for {{{for|[[:{{{target|{{SUBJECTPAGENAME}}}}}]]}}}
}}</span>{{
}}:</th><td class="mbox-empty-cell"></td></tr>{{
#ifeq: {{{lmd|yes}}} | no || {{
#if: {{{above|}}} | <tr class="todo-abovebelow"><td colspan="2">{{{above}}}</td></tr>
#ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
| {{#ifeq:{{{small|}}}|yes|<div>Updated {{#time:Y-m-d| {{REVISIONTIMESTAMP:{{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }} }} }}</div>}}
| <!-- no LMD -->
}}
}}
}}
}}
|-
{{clear}}
| 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;">}}
{{#ifeq:{{{collapsed|}}}|yes|<div class="mw-collapsible-content">}}<!--
-->{{#if: {{{above|}}} | <div class="todo-abovebelow">{{{above}}}</div>}}<!--
--><div class="todo-box" style="{{Talk other|demospace={{{demospace|}}}|background: #FFFAEF;}} border:1px dotted gray; padding: 2px 4px;"
>{{#if:{{{maxheight|}}}|<div style="max-height: {{{maxheight}}}; overflow: auto;">}}
{{{inner|{{
{{{inner|{{
#ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
#ifexist: {{ #rel2abs: {{{list|./to do}}} | {{{target|}}} }}
Line 45: Line 31:
| <!--it doesn't--> ''To-do list is empty: remove <nowiki>{{To do}}</nowiki> tag or click on edit to add an item.''
| <!--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>}}
}}}}}{{#if:{{{maxheight|}}}|</div>}}
|-
</div><!--
{{
-->{{#if: {{{below|}}}|<div class="todo-abovebelow">{{{below}}}</div>}}<!--
#if: {{{below|}}} | <tr class="todo-abovebelow"><td colspan="2">{{{below}}}</td></tr>
-->{{#if: {{{1|}}}|<div class="todo-priority" style="text-align: right; font-weight: bold; {{#ifeq:{{{small|}}}|yes||font-size:88%;}}">Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}</div>}}<!--
}}{{
-->{{#ifeq:{{{collapsed|}}}|yes|</div></div>}}
#if: {{{1|}}} | <tr class="todo-priority"><td colspan="2" style="text-align: right; font-size: smaller;">'''Priority {{{1}}} {{ #ifeq: {{{1}}} | 1 | (top) }}'''</td></tr>
</div>}}<includeonly>{{
}}
|}<includeonly>{{
#ifeq: {{{nocats}}} | yes | | {{{category|[[Category:Wikipedia pages with to-do lists|{{PAGENAME}}]]}}}{{
#ifeq: {{{nocats}}} | yes | | {{{category|[[Category:Wikipedia pages with to-do lists|{{PAGENAME}}]]}}}{{
#if: {{{inner|}}} | | {{
#if: {{{inner|}}} | | {{
Line 55: Line 43:
|{{ns:2}}
|{{ns:2}}
|{{ns:3}}=
|{{ns:3}}=
|#default={{#ifeq: {{lc:{{{nocat|false}}}}} | false |[[Category:Wikipedia pages with to-do lists, unused]]|<!-- Category suppressed -->}}
|#default=[[Category:Wikipedia pages with to-do lists, unused]]
}}
}}
}}
}}
Line 61: Line 49:
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
<!-- Please add categories to the /doc subpage, not here. -->
</noinclude>
</noinclude>