Difference between revisions of "Template:Auto Edit/doc"
Jump to navigation
Jump to search
imported>TheTVExpert |
imported>TheTVExpert |
||
Line 39: | Line 39: | ||
| <code>4</code> || {{yes}} || What to show until the date happens. | | <code>4</code> || {{yes}} || What to show until the date happens. | ||
|- | |- | ||
− | | <code>5</code> || {{optional}} || | + | | <code>5</code> || {{optional}} || Tracking category to use. <small>(Make sure to include only the unlinked category name, not: "<nowiki>[[Category:</nowiki>''category name''<nowiki>]]</nowiki>")</small> |
|} | |} | ||
Revision as of 23:37, 1 April 2020
![]() | This is a documentation subpage for Template:Auto Edit. It contains usage information, categories and other content that is not part of the original template page. |
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