Difference between revisions of "Template:Auto Edit"
Jump to navigation
Jump to search
imported>TheTVExpert |
imported>TheTVExpert |
||
Line 1: | Line 1: | ||
− | {{#ifeq: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}|0| {{{3}}} | {{#ifexpr: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}>0| {{{4}}} | {{#ifexpr: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}<0| {{{3}}}{{Main other|[[Category:Pages using Auto Edit unnecessarily]]|{{Template other|[[Category:{{{5|Pages using Auto Edit unnecessarily}}}]] | + | {{#ifeq: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}|0| {{{3}}} | {{#ifexpr: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}>0| {{{4}}} | {{#ifexpr: {{DATEDIFF2|{{Simple now}}|{{{1}}} {{{2}}}}}<0| {{{3}}}{{Main other|[[Category:Pages using Auto Edit unnecessarily]]|{{Template other|[[Category:{{{5|Pages using Auto Edit unnecessarily}}}]]}}}} | <!--none--> }} }} }}<noinclude>{{documentation}}</noinclude> |
Revision as of 02:56, 26 March 2020
Expression error: Unrecognized punctuation character "[".
Usage
Use this template to show some text before a certain time, and after that time show something else.
Full Set of Blank Parameters
{{Auto Edit|1=|2=|3=|4=}}
Example
{{Auto Edit|1=March 15, 2020|2=17:00|3=Yes|4=No}} {{Auto Edit|1=March 15, 2021|2=17:00|3=Yes|4=No}} {{Auto Edit|1={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}|2={{CURRENTTIME}}|3=Yes|4=No}}
which produces:
Expression error: Unrecognized punctuation character "[".
Expression error: Unrecognized punctuation character "[".
Expression error: Unrecognized punctuation character "[".
Parameters
Parameter | Required? | Usage |
---|---|---|
1 |
Yes | The date. (In the form "Month Day, Year") |
2 |
Yes | The time in UTC. (In the form "HH:MM") |
3 |
Yes | What to show after the date passes. |
4 |
Yes | What to show until the date happens. |
5 |
Template:Optional | Tracking category to use. (Make sure to include only the unlinked category name, not: "[[Category:category name]]") |
Tracking categories
The above documentation is transcluded from Template:Auto Edit/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |