Difference between revisions of "Template:Outdated"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
m (Small fix)
(Updated template to use WarningBox)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
+
__NOTOC__<noinclude>
 
'''Template:Outdated''' is a template which is meant to be put on pages or sections where information ''might'' be outdated, no more accurate or relevant as a precaution for users until the page is updated.
<noinclude>
 
= Template:Outdated =
 
'''Template:Outdated''' is a template which is meant to be put on pages where information ''might'' be outdated, no more accurate or relevant as a precaution for users until the page is updated.
 
   
To use this template, use <code><nowiki>{{Outdated|year|month|day}}</nowiki></code> on the target page. You can use <code><nowiki>{{Outdated|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}</nowiki></code> to automatically insert the current date.
+
To use this template, use <code><nowiki>{{Outdated|reason=...|year|month|day}}</nowiki></code> on the target page. The date arguments are mandatory. Pages with this template are automatically added to the category [[:Category:Pages with outdated information|Pages with outdated information]].
   
  +
{{WarningBox
Using this template on a page results in the following box being placed:
 
{{Outdated|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
+
|text=<nowiki>Avoid using {{CURRENTYEAR}}, {{CURRENTMONTH}} and {{CURRENTDAY}}.</nowiki>
  +
}}
</noinclude>
 
  +
<includeonly>
 
  +
==Example==
{{Box|Information found here might be outdated!|This page has been marked as having outdated and/or no more relevant information.<br>Please regard information in this page with extra caution.<br><small>This warning was placed on {{{1}}}/{{{2}}}/{{{3}}}.</small>|#FFFAB4|#FFF700}}
 
  +
</includeonly>
 
  +
<syntaxhighlight lang="html+handlebars">
  +
{{Outdated
  +
|reason=Some good reason.
  +
|2022|01|06
  +
}}
  +
</syntaxhighlight>
  +
 
{{WarningBox|caption=Information found here might be outdated!|text=This page or section has been marked as having outdated and/or no more relevant information. Please regard information in this page with extra caution. </small><br><small>This warning was placed on 2022/01/06. ('''Reason:''' Some good reason.)</small>|icon=Clock.png}}
  +
  +
</noinclude><includeonly>{{WarningBox|caption=Information found here might be outdated!|text=This page or section has been marked as having outdated and/or no more relevant information. Please regard information in this page with extra caution. </small><br><small>This warning was placed on {{{1}}}/{{{2}}}/{{{3}}}. ('''Reason:''' {{{reason}}})</small>|icon=Clock.png}}[[Category:Pages with outdated information]]</includeonly>

Latest revision as of 15:03, 6 January 2022

Template:Outdated is a template which is meant to be put on pages or sections where information might be outdated, no more accurate or relevant as a precaution for users until the page is updated.

To use this template, use {{Outdated|reason=...|year|month|day}} on the target page. The date arguments are mandatory. Pages with this template are automatically added to the category Pages with outdated information.

Messagebox warning.png
Warning!
Avoid using {{CURRENTYEAR}}, {{CURRENTMONTH}} and {{CURRENTDAY}}.

Example

{{Outdated
 |reason=Some good reason.
 |2022|01|06
}}
Clock.png
Information found here might be outdated!
This page or section has been marked as having outdated and/or no more relevant information. Please regard information in this page with extra caution.
This warning was placed on 2022/01/06. (Reason: Some good reason.)