Template:As of

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search

As of 25 April 2024 (2024-04-25)[ref]

Template documentation (View · Edit · History · Purge)

Usage[edit source]

The template {{as of}} is used to mark potentially dated statements, and will add an article to the appropriate sub-category of Category:All articles containing potentially dated statements. This allows editors to catalogue statements that may become dated over time. The date used for a given statement should be the current date (for currently valid statements) or the date on which the cited reference was produced (for example, when using census data). Unlike the {{update after}} template, {{as of}} does not require the editor to give a full date. This template should not be subst'd.

Syntax[edit source]

The template can be used in the following forms:

{{As of|year|month|day}}
{{As of|year|month}}
{{As of|year}}

Several additional named parameters can also be used (see below).

Parameters[edit source]

Required

  • year (first parameter) – must be in full numerical format (yyyy)

Optional

  • month (second parameter) – full, abbreviated or numerical formats supported (mm recommended)
  • day (third parameter) – numerical format only, not included in link (dd)

Named

  • alt – optional; allows substitution of different wording and case for the visible text output; if present but no value defined, this parameter is ignored; if a value is defined, values for df and lc parameters are ignored
  • df – optional; allows use of American date format with df=US
  • lc – optional; gives lower case "as of date" when defined; recommended syntax is lc=y
  • url – optional; adds an inline external link (hidden by default) suggesting a webpage for future editors to check for updates to the statement; use the full URL with no spaces. See Wikipedia:As of for displaying links.

TemplateData[edit source]

This is the TemplateData documentation for this template used by the VisualEditor and other tools.

TemplateData for As of

Used to mark potentially dated statements.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Year1

Year, in full numerical format (yyyy)

Example
2019
Numberrequired
Month2

Month, in full, abbreviated or numerical format (mm recommended)

Example
04
Numbersuggested
Day3

Day in numerical format, not included in link (dd)

Example
20
Numbersuggested
Alternative textalt

Allows substitution of different wording and case for the visible text output; if present but no value defined, this parameter is ignored; if a value is defined, values for df and lc parameters are ignored

Stringoptional
Lowercaselc

Returns a lower case "as of date" when defined

Example
y
Stringoptional
Date formatdf

If set to US, allows use of American date format

Example
US
Stringoptional
URLurl

Adds an inline external link (hidden by default) suggesting a webpage for future checks for updates; use the full URL with no spaces.

Example
https://www.thesimswiki.com
URLoptional

See also[edit source]


Visit Template:As of/doc to edit this text! (How does this work?) (Refresh this text - why?)