Template:AsOf/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:AsOf. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{AsOf|1|2|3|4|5|6|7}}
- param 1 is the year
- optional param 2 is the month
- optional param 3 is the day of the month
- optional named parameter alt=[text] is alternative display text (may include wiki markup)
- optional named parameter df=US produces American date format in displayed text
- optional named parameter lc=on gives lower-case-first output
- optional named parameter url=[URL] gives statement reference
Default text displayed: "[A/a]s of [date]"
Adds several categories to the page:
- Category:All articles containing potentially dated statements - (hidden on article page)
- Category:Articles containing potentially dated statements from [year]
- Category:Articles with invalid date parameter in template - (hidden on article page) - This is set if one above doesn't exist.
Examples
{{AsOf|2021|1|2}}
: As of 2 January 2021[update]{{AsOf|2021|1}}
: As of January 2021[update]{{AsOf|2021|1|2|lc=on}}
: as of 2 January 2021[update]{{AsOf|2021|1|2|df=US}}
: As of January 2, 2021[update]