Difference between revisions of "Template:LSR/doc"
Jump to navigation
Jump to search
(Add version codes for stable release) |
(Undid revision 873204120 by 72.142.23.138 (talk)) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{documentation subpage}} |
| − | + | {{high-use|1953}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | + | ==Function== | |
| − | + | Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]; intended to identify the '''latest stable release'''. | |
| − | [[Category:Latest stable software release templates| | + | ==Usage== |
| − | </ | + | ===Infobox=== |
| + | {| style="float: left; border: none;" | ||
| + | |<pre> | ||
| + | {{LSR | ||
| + | | article = | ||
| + | | latest release version = | ||
| + | | latest release date = <!-- {{Start date and age|YYYY|MM|DD}} --> | ||
| + | | edit = <!-- no --> | ||
| + | }} | ||
| + | </pre> | ||
| + | |} | ||
| + | {{-}} | ||
| + | |||
| + | ===Table=== | ||
| + | {| style="float: left; border: none;" | ||
| + | |<pre> | ||
| + | {{Latest stable software release/Linux}} | ||
| + | </pre> | ||
| + | |} | ||
| + | {{-}} | ||
| + | |||
| + | 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== | ||
| + | {{LSR | ||
| + | | article = MediaWiki | ||
| + | | latest_release_version = 1.20.3 | ||
| + | | latest_release_date = {{Start date and age|2013|03|04}} | ||
| + | }} | ||
| + | |||
| + | <pre style="overflow:auto;"> | ||
| + | {{LSR | ||
| + | | article = MediaWiki | ||
| + | | latest_release_version = 1.20.3 | ||
| + | | latest_release_date = {{Start date and age|2013|03|04}} | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
| + | ==Parameters== | ||
| + | The <code>article</code> parameter will default to <nowiki>{{PAGENAME}}</nowiki> if left empty. | ||
| + | |||
| + | If the <code>latest release version</code> parameter is empty this template will not display anything. | ||
| + | |||
| + | 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. | ||
| + | ==See also== | ||
| + | *{{tl|LPR}} – latest preview release | ||
| + | |||
| + | <includeonly>{{#ifeq:{{PAGENAME}}|LSR| | ||
| + | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
| + | [[Category:Software templates|LSR]] | ||
| + | [[Category:Latest stable software release templates| ]] | ||
| + | }}</includeonly> | ||
Revision as of 19:13, 11 December 2018
| This is a documentation subpage for Template:LSR. It contains usage information, categories and other content that is not part of the original template page. |
| 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|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 (Template:Start date and age) [±]
{{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 could be used to cancel the edit link.
See also
- {{LPR}} – latest preview release