Open main menu

Changes

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

The {{tl|Monthyear}} template takes no parameters and returns the name of the month and the year, like this:

:{{tlc|Monthyear}} renders: {{Monthyear}}

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-1}} – renders this: {{Monthyear-1}}
* {{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}}</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]]

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