Template:Lastupdated: Difference between revisions
Jump to navigation
Jump to search
(make template conditional) |
(remove leading newline (since span does not imply breaks) -- breaks trailing span right embedding) |
||
| Line 6: | Line 6: | ||
==[[onlyinclude]]d Definition== | ==[[onlyinclude]]d Definition== | ||
<!-- onlyinclude> | <!-- onlyinclude>{{t/span/use}}''Last updated:'' '''{{{date=|{{{1|}}}}}}'''{{t/span/end|lastupdated}} | ||
{{t/span/use}} | |||
''Last updated:'' '''{{{date=|{{{1|}}}}}}''' | |||
{{t/span/end|lastupdated}} | |||
</onlyinclude --> | </onlyinclude --> | ||
<onlyinclude><small> | <onlyinclude><small>{{#if: {{{caller|{{{1|}}}}}} | {{t/span/use}}''Last updated:'' '''{{{date=|{{{1|}}}}}}'''{{t/span/end|Lastupdated}} | <span class="error">Missing date= parameter. | ||
{{#if: {{{caller|{{{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> | * <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> | }}</small></onlyinclude> | ||
Latest revision as of 02:59, 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[edit source]
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[edit source]
- Last updated: 2026-03-12
see T:Lastupdated
Links Here / T[edit source]
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)