Template:Lastupdated: Difference between revisions
Jump to navigation
Jump to search
(create template) |
(remove leading newline (since span does not imply breaks) -- breaks trailing span right embedding) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
See [[Template:T/span|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>{{t/span/use}}''Last updated:'' '''{{{date=|{{{1|}}}}}}'''{{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== | |||
* {{lastupdated|2026-03-12}} | * {{lastupdated|2026-03-12}} | ||
==Links Here / T== | ==Links Here / T== | ||
{{linkshere}} | {{linkshere}} | ||
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)