Template:Weekly site information/doc: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Created template documentation.)
 
(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:

TemplateData

A template that generates a link to the most recent Weekly Briefing Release

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link text1

Text to display for the generated link

Default
Weekly Site Information
Example
Weekly Briefing
Stringoptional