Difference between revisions of "Template:LSR"
Jump to navigation
Jump to search
imported>Jonesey95 (Fix too small font per MOS:FONTSIZE. Renders at 75% in infoboxes.) |
imported>Nardog (restore plainlinks class) |
||
Line 1: | Line 1: | ||
{{#if:{{{latest release version|{{{latest_release_version|}}}}}}| | {{#if:{{{latest release version|{{{latest_release_version|}}}}}}| | ||
− | {{{latest release version|{{{latest_release_version}}}}}} {{#if:{{{latest release date|{{{latest_release_date|}}}}}}|({{{latest release date|{{{latest_release_date}}}}}})}}{{#if:{{{edit|}}}|| [{{fullurl:Template:Latest stable software release/{{{article|{{PAGENAME}}}}}|action=edit}} [±]]}} | + | {{{latest release version|{{{latest_release_version}}}}}} {{#if:{{{latest release date|{{{latest_release_date|}}}}}}|({{{latest release date|{{{latest_release_date}}}}}})}}{{#if:{{{edit|}}}|| <span class="plainlinks">[{{fullurl:Template:Latest stable software release/{{{article|{{PAGENAME}}}}}|action=edit}} [±]]</span>}} |
}}{{#ifeq:{{BASEPAGENAME}}|Latest stable software release|{{#ifexist:{{#if:{{{article|}}}|{{{article|}}}|{{#titleparts:{{PAGENAME}}||2}}}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{#if:{{{article|}}}|{{{article|}}}|{{#titleparts:{{PAGENAME}}||2}}}}}}|yes|[[Category:Software release templates for redirects]]|}}|[[Category:Software release templates for nonexistent articles]]}}|}}<noinclude> | }}{{#ifeq:{{BASEPAGENAME}}|Latest stable software release|{{#ifexist:{{#if:{{{article|}}}|{{{article|}}}|{{#titleparts:{{PAGENAME}}||2}}}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{#if:{{{article|}}}|{{{article|}}}|{{#titleparts:{{PAGENAME}}||2}}}}}}|yes|[[Category:Software release templates for redirects]]|}}|[[Category:Software release templates for nonexistent articles]]}}|}}<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> |
Latest revision as of 04:12, 20 February 2020
![]() | This template is used on approximately 2,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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
- {{LPR}} – latest preview release
- Subpages of redirect "Latest stable software release"
- {{Multiple releases}}
The above documentation is transcluded from Template:LSR/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |