Template:RefDate

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:43, 17 October 2024 (Created page with "<includeonly>{{#if:{{{1|}}}|{{#ifexpr:({{#time:z}}-{{#time:z|{{{1}}}}}+365*({{#time:Y}}-{{#time:Y|{{{1}}}}}))>{{{2|90}}}|<span class="outdate-ref" style="color:red; font-size:larger;" title="This reference has not been verified for over {{{2|90}}} days - It may be outdated.">*</span>*{{#time:c|{{{1}}}}}}}|<span class="outdate-ref" style="color:red; font-size:larger;" title="This reference has not been verified - It may be ou..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:RefDate/doc. [edit] [history] [purge]


The RefDate template is used for adding a red asterisk to references when they become unverified for a certain period of time (see examples). Its primary use is for citation templates. See the references and citations style guide for more information.

Usage

{{RefDate|{{{date|}}}|alternate duration}}

First input

This is set above as {{{date|}}} intentionally. All current citation templates use the input date=~~~~~ as the date of last verification, so this should be used as the input. If the template uses a different named input, use that name instead.

Second input

Optional - specifies the number of days the template should wait before displaying the asterisk. Defaults to 90 days. Some areas of the RuneScape website changes less often than other areas (for example, the Forums are a lot more dynamic than the Game Guide).

Examples

Note - the following are static examples

If the first input does not exist - a date has not been given.

*

Category:References that need verification is added.

If the first input is a date of over 180 days ago

*

Category:References that need verification is added, and is sorted by the date given. Note the difference in hover text between this and the above examples.

Customisation

The asterisk is given the class outdate-ref. This can be used to customise the colour and behaviour of the asterisk. Some examples:

Add to this page:

  • Make the asterisk green instead of red:
.outdate-ref {color:green !important;}
  • Hide all outdated-reference asterisks:
.outdate-ref {display:none !important;}