Template:Lastupdated: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
Mcint (talk | contribs)
make template conditional
Mcint (talk | contribs)
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/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>
* <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.

Missing date= parameter.

  • Please use {{lastupdated|2026-03-30}} 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

[edit source]
Special:WhatLinksHere/Template:Lastupdated ({{linkshere}} A·M·C·T):