Template:RefDate/doc

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 "{{documentation}} __NOTOC__ 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== <pre>{{RefDate|{{{date|}}}|alternate duration}}</pre> ===First input=== This is set above as <code><nowiki>{{{date|}}}</nowik..."). 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
This is a documentation subpage for Template:RefDate.
It contains usage information, categories, and other content that is not part of the original template page.


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;}