Template:LSR/doc: Difference between revisions
Appearance
Content deleted Content added
Neustradamus (talk | contribs) mNo edit summary |
m →Table |
||
(44 intermediate revisions by 33 users not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
{{high-use|1953}} |
|||
== |
==Function== |
||
Format release version and date for display in |
Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]; intended to identify the '''latest stable release'''. |
||
== |
==Usage== |
||
<pre> |
|||
===Infobox=== |
|||
{| style="float: left; border: none;" |
|||
|<syntaxhighlight lang="wikitext"> |
|||
{{LSR |
{{LSR |
||
| article = |
|||
| latest release version = |
|||
| latest_release_version = |
|||
| latest release date = <!-- {{Start date and age|YYYY|MM|DD}} --> |
|||
| edit = <!-- no --> |
|||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
|} |
|||
⚫ | |||
== |
===Table=== |
||
{| style="float: left; border: none;" |
|||
|<syntaxhighlight lang="wikitext"> |
|||
{{Latest stable software release/Linux}} |
|||
</syntaxhighlight> |
|||
|} |
|||
{{-}} |
|||
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 |
{{LSR |
||
| article = MediaWiki |
|||
| latest release version = 1.20.3 |
|||
| latest release date = {{Start date and age|2020|05|24}} |
|||
}} |
}} |
||
< |
<syntaxhighlight lang="wikitext" style="overflow:auto;"> |
||
{{LSR |
{{LSR |
||
| article = MediaWiki |
|||
| latest release version = 1.20.3 |
|||
| latest release date = {{Start date and age|2020|05|24}} |
|||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
⚫ | |||
== |
==Parameters== |
||
The <code>article</code> parameter will default to <nowiki>{{PAGENAME}}</nowiki> if left empty. |
The <code>article</code> parameter will default to <nowiki>{{PAGENAME}}</nowiki> if left empty. |
||
If the <code> |
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> |
The <code>edit</code> parameter is optional and can be set to "no" |
||
" to cancel the edit link. |
|||
== |
==See also== |
||
* {{tl|LPR}} |
* {{tl|LPR}} – latest preview release |
||
* [[Special:PrefixIndex/Template:Latest_stable_software_release|Subpages of redirect "Latest stable software release"]] |
|||
* {{tl|Multiple releases}} |
|||
<includeonly> |
<includeonly>{{Sandbox other||{{#ifeq:{{PAGENAME}}|LSR| |
||
<!-- ADD CATEGORIES BELOW THIS LINE --> |
<!-- ADD CATEGORIES BELOW THIS LINE --> |
||
[[Category:Software templates|LSR]] |
[[Category:Software templates|LSR]] |
||
[[Category:Latest stable software release templates| ]] |
[[Category:Latest stable software release templates| ]] |
||
<!-- ADD INTERWIKIS BELOW THIS LINE --> |
|||
⚫ | |||
[[pl:Template:OSW]] |
|||
[[ja:Template:LSR]] |
|||
[[zh:Template:LSR]] |
|||
⚫ |
Latest revision as of 15:40, 18 November 2024
This is a documentation subpage for Template:LSR. It may contain 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. |
Function
[edit]Format release version and date for display in infoboxes and wikitables; intended to identify the latest stable release.
Usage
[edit]Infobox
[edit]{{LSR
| article =
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|MM|DD}} -->
| edit = <!-- no -->
}}
|
Table
[edit]{{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
[edit]1.20.3 (May 24, 2020[±]
){{LSR
| article = MediaWiki
| latest release version = 1.20.3
| latest release date = {{Start date and age|2020|05|24}}
}}
Parameters
[edit]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
[edit]- {{LPR}} – latest preview release
- Subpages of redirect "Latest stable software release"
- {{Multiple releases}}