Module:BucketDate/doc

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search

This is the documentation page for Module:BucketDate

This is a documentation subpage for Module:BucketDate.
It contains usage information, categories, and other content that is not part of the original module page.
Module:BucketDate's function main is invoked by Template:BucketReleaseDate.
Module:BucketDate's function main is invoked by Template:BucketRemovalDate.
Module:BucketDate is required by Module:Infobox.
Module:BucketDate is required by Module:Infobox/sandbox.
Function list
L 4 — p.main
L 10 — p._main

Used to parse the common infobox date wikicode format of [[27 February]] [[2002]], split it into its components, and then populate a target date Bucket. For examples, see Bucket:release_date or Bucket:removal_date.

Can be used directly (such as in modules) or via a template (such as {{BucketReleaseDate}} or {{BucketRemovalDate}}). The former should pass the target Bucket name as the third parameter, while the latter should add an invoke arg of bucket_name, e.g. {{#invoke:BucketDate|main|bucket_name=prom_date}}.