Template:Weekly site information: Difference between revisions
Dat Hack3r (talk | contribs) m (Updated function name.) |
Dat Hack3r (talk | contribs) (Test successful, deploying new version.) |
||
Line 1: | Line 1: | ||
[[Weekly Briefing Release {{#ifexist: Weekly Briefing Release {{#invoke: | [[Weekly Briefing Release {{#ifexist:Weekly Briefing Release {{#invoke:Weekly Briefing Release|most_recent}}|{{#invoke:Weekly Briefing Release|most_recent}}|{{#invoke:Weekly Briefing Release|previous}}}}|{{{1|Weekly Site Information}}}]]<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:07, 27 November 2024
[[Weekly Briefing Release Script error: No such module "Weekly Briefing Release".|Weekly Site Information]]
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. To use it, transclude the template, and it will automatically insert a link to the most recent Weekly Briefing Release, determined automatically according to the release schedule. If the most recent Weekly Briefing Release is unavailable, the template automatically links to the last existing release.
{{Weekly site information}}
→- [[Weekly Briefing Release Script error: No such module "Weekly Briefing Release".|Weekly Site Information]]
By default, the link displays as "Weekly Site Information". To display custom text, pass the custom text as the first parameter:
{{Weekly site information|Weekly Briefing}}
→- [[Weekly Briefing Release Script error: No such module "Weekly Briefing Release".|Weekly Briefing]]
This template can also display a previous Weekly Briefing Release relative to the current Release using |offset=
:
{{Weekly site information|offset=-1}}
→- [[Weekly Briefing Release Script error: No such module "Weekly Briefing Release".|Weekly Site Information]]
{{Weekly site information|Weekly Briefing|offset=-1}}
→- [[Weekly Briefing Release Script error: No such module "Weekly Briefing Release".|Weekly Briefing]]
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 |
Offset | offset | How many releases prior to the current one to link to.
| Number | optional |