Template:Lastupdated: Difference between revisions
Jump to navigation
Jump to search
(update with header, try styling, add minimal explainer) |
(make template conditional) |
||
| Line 1: | Line 1: | ||
See [[Template:T/span|T/span]]. | See [[Template:T/span|T/span]]. | ||
Use as <code><nowiki>{{lastupdated|2026-03-26}}</nowiki></code>. ''Future versions may parse this date.'' | |||
''Further inspiration: [[mw:template:date]].'' | |||
==[[onlyinclude]]d Definition== | ==[[onlyinclude]]d Definition== | ||
<onlyinclude> | <!-- onlyinclude> | ||
{{t/span/use}} | {{t/span/use}} | ||
''Last updated:'' '''{{{date=|{{{1|}}}}}}''' | ''Last updated:'' '''{{{date=|{{{1|}}}}}}''' | ||
{{t/span/end|lastupdated}}</onlyinclude> | {{t/span/end|lastupdated}} | ||
</onlyinclude --> | |||
<onlyinclude><small> | |||
{{#if: {{{caller|{{{1|}}}}}} | |||
| {{t/span/use}}''Last updated:'' '''{{{date=|{{{1|}}}}}}''' | |||
{{t/span/end|Lastupdated}} | |||
| <span class="error">Missing date= parameter. | |||
* <span class="error">Please use <code><nowiki>{{lastupdated|</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki>}}</nowiki></code> in the current template, <small>''to include the calling templates name in this "sub-routine" template's output''</small>.</span> | |||
}}</small></onlyinclude> | |||
==Example== | ==Example== | ||
Revision as of 02:57, 26 March 2026
See T/span.
Use as {{lastupdated|2026-03-26}}. Future versions may parse this date.
Further inspiration: mw:template:date.
onlyincluded Definition
Missing date= parameter.
- Please use
{{lastupdated|2026-03-31}}in the current template, to include the calling templates name in this "sub-routine" template's output.
Example
Last updated: 2026-03-12 see T:Lastupdated
Links Here / T
Special:WhatLinksHere/Template:Lastupdated (
{{linkshere}} A·M·C·T):
- SafeSpaceWG (transclusion) (← links | edit)
- Volunteer (transclusion) (← links | edit)
- Channels (transclusion) (← links | edit)
- SafeSpace (transclusion) (← links | edit)
- SafeSpaceWG/Advocates (transclusion) (← links | edit)
- Template:Updateneeded (transclusion) (← links | edit)
- Template:Maintainers (transclusion) (← links | edit)
- Template:Lastupdated (transclusion) (← links | edit)
- Category:Maintainers (transclusion) (← links | edit)
- Category:SafeSpaceWG (transclusion) (← links | edit)