Difference between revisions of "Template:LPR"
Jump to navigation
Jump to search
imported>Jonesey95 (Fix too small font per MOS:FONTSIZE. Renders at 75% in infoboxes.) |
imported>Jonesey95 (restore class statement without small) |
||
| 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 preview 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 preview software release/{{{article|{{PAGENAME}}}}}|action=edit}} [±]]</span>}} |
}}{{#ifeq:{{BASEPAGENAME}}|Latest preview 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 preview 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 06:01, 20 February 2020
Contents
Function
Format release version and date for display in infoboxes and wikitables; intended to identify the latest preview release.
Usage
{{LPR
| article =
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|MM|DD}} -->
| edit = <!-- no -->
}}
|
Example
1.25 alpha (Template:Start date and age) [±]
{{LPR
| article = MediaWiki
| latest_release_version = 1.25 alpha
| latest_release_date = {{start date and age|2014|09|18}}
}}
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 could be used to cancel the edit link.
See also
- {{LSR}} – latest stable release
- Subpages of redirect "Latest preview software release"
- {{Multiple releases}}
| The above documentation is transcluded from Template:LPR/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. |