Template:Weekly site information/doc: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) (Created template documentation.) |
Dat Hack3r (talk | contribs) (Added TemplateData.) |
||
Line 8: | Line 8: | ||
* {{Tlx|Weekly site information|Weekly Briefing}} → | * {{Tlx|Weekly site information|Weekly Briefing}} → | ||
*: {{Weekly site information|Weekly Briefing}} | *: {{Weekly site information|Weekly Briefing}} | ||
== TemplateData == | |||
<templatedata> | |||
{ | |||
"description": "A template that generates a link to the most recent Weekly Briefing Release", | |||
"params": { | |||
"1": { | |||
"label": "Link text", | |||
"description": "Text to display for the generated link", | |||
"type": "string", | |||
"example": "Weekly Briefing", | |||
"default": "Weekly Site Information" | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata> |
Revision as of 17:40, 18 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
A template that 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 |