Difference between revisions of "Template:LSR"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(wrap in noinclude tags)
imported>Codename Lisa
(Committing requested changes per Template talk:LSR#Optimization for mobile page. More input from people familiar with the subject is needed. Flash-tested on Opera (web browser).)
Line 1: Line 1:
 
<noinclude>{{Template for discussion/dated|page=LSR|link=Wikipedia:Templates for discussion/Log/2016 January 21#Template:LSR|help=off}}</noinclude>{{#if:{{{latest release version|{{{latest_release_version|}}}}}}|
 
<noinclude>{{Template for discussion/dated|page=LSR|link=Wikipedia:Templates for discussion/Log/2016 January 21#Template:LSR|help=off}}</noinclude>{{#if:{{{latest release version|{{{latest_release_version|}}}}}}|
{{{latest release version|{{{latest_release_version}}}}}} {{#if:{{{latest release date|{{{latest_release_date|}}}}}}|<small>({{{latest release date|{{{latest_release_date}}}}}})</small>}} <small class="plainlinks">[{{#ifexist:Template:Multiple stable software releases/{{{article|{{PAGENAME}}}}}|{{fullurl:Template:Multiple stable software releases/{{{article|{{PAGENAME}}}}}|action=edit}}|{{fullurl:Template:Latest stable software release/{{{article|{{PAGENAME}}}}}|action=edit}}}} &#91;±&#93;]</small>
+
{{{latest release version|{{{latest_release_version}}}}}} {{#if:{{{latest release date|{{{latest_release_date|}}}}}}|<small>({{{latest release date|{{{latest_release_date}}}}}})</small>}} <small class="plainlinks">[{{#ifexist:Template:Multiple stable software releases/{{{article|{{PAGENAME}}}}}|{{fullurl:Template:Multiple stable software releases/{{{article|{{PAGENAME}}}}}}}?action=edit|{{fullurl:Template:Latest stable software release/{{{article|{{PAGENAME}}}}}}}?action=edit}} &#91;±&#93;]</small>
 
}}<noinclude>
 
}}<noinclude>
{{documentation}}<!-- place categories and language links on the /doc page, not here! -->
+
{{documentation}}<!-- place categories and language links on the /doc page, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 11:17, 2 February 2016

Template:Template for discussion/dated

Template documentation[view] [edit] [history] [purge]

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|2020|05|24}} -->
| edit = <!-- yes -->
}}

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 (Template:Start date and age) [±]

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

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