Template:Weekly site information: Difference between revisions
Dat Hack3r (talk | contribs) (Added a failsafe in case the weekly briefing hasn't been created yet.) |
Dat Hack3r (talk | contribs) (Added ability to display custom link text.) |
||
Line 1: | Line 1: | ||
[[Weekly Briefing Release {{#ifexist: Weekly Briefing Release {{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}}|{{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}}|{{#expr: {{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}} - 1}}}}|Weekly Site Information]]<noinclude> | [[Weekly Briefing Release {{#ifexist: Weekly Briefing Release {{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}}|{{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}}|{{#expr: {{#invoke:Last Weekly Briefing Release number|lastReleaseNumber}} - 1}}}}|{{1|Weekly Site Information}}]]<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 11:14, 15 November 2024
[[Weekly Briefing Release Expression error: Unexpected < operator.|Template:1]]
{{Weekly site information}}
generates a link to the most recent Weekly Briefing Release. To use it, transclude the template, and it will automatically insert a link to the most recent Weekly Briefing Release, evaluated based on the release schedule. If the expected most recent Weekly Briefing Release does not exist, it will fall back to the previous Weekly Briefing Release.
{{Weekly site information}}
→- [[Weekly Briefing Release Expression error: Unexpected < operator.|Template:1]]
The default text displayed by the link is "Weekly Site Information". To display custom text, pass the custom text as the first parameter:
{{Weekly site information|Weekly Briefing}}
→- [[Weekly Briefing Release Expression error: Unexpected < operator.|Template:1]]
TemplateData
This template generates a link to the most recent Weekly Briefing Release.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link text | 1 | Text to display for the generated link
| String | optional |