Open main menu

Changes

subcat
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

The {{tl|Monthyear-1}} template takes no parameters and returns the name of the month and the year as they were a month ago, like this:

:{{tlc|Monthyear-1}} renders: {{Monthyear-1}}

Note that the same date can be shown for up to a week on a page since Wikipedia caches pages and only re-renders them under one of the follow circumstances:
# Someone visits the page and it has not been re-rendered in a week;
# Someone visits the page and manually [[Wikipedia:Purge|purges]] or edits it.

=== See also ===

* {{tl|Monthyear}} – renders this: {{Monthyear}}
* {{tl|Monthyear+1}} – renders this: {{Monthyear+1}}

=== You can do this yourself ===

The code for this template is very simple! Just type <pre>{{#time:F Y|-1 month}}</pre>

See [[mw:Help:Extension:ParserFunctions#.23time:|here]] to learn more about time parser functions.

<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Date-computing templates based on current time|Monthyear-1]]

<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
Anonymous user