Jump to content

Template:LSR/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]; intended to identify the '''latest stable release'''.
Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]; intended to identify the '''latest stable release'''.


==Usage==javascript==
==Usage==


===Infobox===
===Infobox===
Line 13: Line 13:
| article =
| article =
| latest release version =
| latest release version =
| latest release date = <!-- {{Start date and age|2020|05|24}} -->
| latest release date = <!-- {{Start date and age|YYYY|MM|DD}} -->
| edit = <!-- yes -->
| edit = <!-- no -->
}}
}}
</syntaxhighlight>
</syntaxhighlight>
Line 28: Line 28:
{{-}}
{{-}}


If a page such as [[Template:Latest stable software release/Facebook Messenger]] exists then {{tlx|Infobox_software}} will automatically insert the contents in the corresponding article.
If a page such as [[Template:Latest stable software release/Facebook Messenger]] exists then {{tlx|Infobox software}} will automatically insert the contents in the corresponding article.


==Example==
==Example==
Line 52: Line 52:
The <code>latest release date</code> parameter is optional and if left empty no date will be shown.
The <code>latest release date</code> parameter is optional and if left empty no date will be shown.


The <code>edit</code> parameter is optional and can be set to "no" to cancel the edit link.
The <code>edit</code> parameter is optional and can be set to "no"
" to cancel the edit link.


==See also==
==See also==

Latest revision as of 15:40, 18 November 2024

Function

[edit]

Format release version and date for display in infoboxes and wikitables; intended to identify the latest stable release.

Usage

[edit]

Infobox

[edit]
{{LSR
| article = 
| latest release version = 
| latest release date = <!-- {{Start date and age|YYYY|MM|DD}} -->
| edit = <!-- no -->
}}

Table

[edit]
{{Latest stable software release/Linux}}

If a page such as Template:Latest stable software release/Facebook Messenger exists then {{Infobox software}} will automatically insert the contents in the corresponding article.

Example

[edit]

1.20.3 (May 24, 2020; 4 years ago (2020-05-24)) [±]

{{LSR
| article = MediaWiki
| latest release version = 1.20.3
| latest release date = {{Start date and age|2020|05|24}}
}}

Parameters

[edit]

The article parameter will default to {{PAGENAME}} if left empty.

If the latest release version parameter is empty this template will not display anything.

The latest release date parameter is optional and if left empty no date will be shown.

The edit parameter is optional and can be set to "no" " to cancel the edit link.

See also

[edit]