Jump to content

Template:LSR/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 873204120 by 72.142.23.138 (talk)
Elaborate on the use of the edit= parameter.
Line 6: Line 6:


==Usage==
==Usage==

===Infobox===
===Infobox===
{| style="float: left; border: none;"
{| style="float: left; border: none;"
Line 28: Line 29:


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==
{{LSR
{{LSR
| article = MediaWiki
| article = MediaWiki
| latest_release_version = 1.20.3
| latest release version = 1.20.3
| latest_release_date = {{Start date and age|2013|03|04}}
| latest release date = {{Start date and age|2013|03|04}}
}}
}}


Line 38: Line 40:
{{LSR
{{LSR
| article = MediaWiki
| article = MediaWiki
| latest_release_version = 1.20.3
| latest release version = 1.20.3
| latest_release_date = {{Start date and age|2013|03|04}}
| latest release date = {{Start date and age|2013|03|04}}
}}
}}
</pre>
</pre>
Line 50: 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 could be used 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==
*{{tl|LPR}} – latest preview release
* {{tl|LPR}} – latest preview release


<includeonly>{{#ifeq:{{PAGENAME}}|LSR|
<includeonly>{{#ifeq:{{PAGENAME}}|LSR|

Revision as of 00:56, 27 January 2019

Function

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

Usage

Infobox

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

Table

{{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

1.20.3 (March 4, 2013; 11 years ago (2013-03-04)) [±]

{{LSR
| article = MediaWiki
| latest release version = 1.20.3
| latest release date = {{Start date and age|2013|03|04}}
}}

Parameters

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

  • {{LPR}} – latest preview release