Template:Weekly site information: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) m (Forgot that you reference parameters with three curly braces.) |
Dat Hack3r (talk | contribs) m (Updated function name.) |
||
Line 1: | Line 1: | ||
[[Weekly Briefing Release {{#ifexist: Weekly Briefing Release {{#invoke:Last Weekly Briefing Release number| | [[Weekly Briefing Release {{#ifexist: Weekly Briefing Release {{#invoke:Last Weekly Briefing Release number|main}}|{{#invoke:Last Weekly Briefing Release number|main}}|{{#expr: {{#invoke:Last Weekly Briefing Release number|main}} - 1}}}}|{{{1|Weekly Site Information}}}]]<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 20:45, 17 November 2024
{{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.
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}}
→
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 |