Template:Weekly site information/doc
| This template is a high priority for maintenance as it is original to the OWOT Wiki and used in articles. As such, this template may contain bugs and it should be a top priority of template maintainers to quickly fix any issues that arise with it. Discuss breaking changes on the talk page before implementing them. |
| This template uses Lua: |
{{Weekly site information}} generates links to Weekly Briefing releases. When transcluded, it will automatically display a link to the most recent Weekly Briefing release based on the release schedule. If the predicted release title is unavailable, the template automatically links to the last existing release. This functionality does not apply when |number= or |offset= are given.
By default, the link displays as "Weekly Site Information". To display custom text, pass the custom text as the first positional parameter.
{{Weekly site information|Weekly Briefing}}→
Use |number= to get a link to a specific release number.
{{Weekly site information|number=2}}→{{Weekly site information|The second Weekly Briefing release|number=2}}→
This template can also display a past, present, or future Weekly Briefing release if |offset= is specified. This offset applies to the number given by |number= if it is present; otherwise, the offset is relative to the current expected release. A link will be produced regardless of whether the predicted release exists.
{{Weekly site information|offset=-1}}→{{Weekly site information|The previous expected release|offset=-1}}→{{Weekly site information|The current expected release|offset=0}}→{{Weekly site information|The next expected release|offset=1}}→{{Weekly site information|The release after the second|number=2|offset=1}}→
TemplateData
This template generates links to Weekly Briefing releases.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Link text | 1 | Text to display for the generated link
| String | optional |
| Release number | number | The number of a specific release to link to
| Number | optional |
| Offset | offset | An offset that can specify a past, present, or future Weekly Briefing release by being applied to the "number" parameter if given or the current expected release otherwise, always producing a link even if the release does not exist
| Number | optional |