Template:Lastupdated: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(update with header, try styling, add minimal explainer)
(remove leading newline (since span does not imply breaks) -- breaks trailing span right embedding)
 
(One intermediate revision by the same user not shown)
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}}''Last updated:'' '''{{{date=|{{{1|}}}}}}'''{{t/span/end|lastupdated}}
{{t/span/use}}
</onlyinclude -->
''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==
==Example==

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):