Difference between revisions of "Template:LPR/doc"
Jump to navigation
Jump to search
imported>Neustradamus m |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (26 intermediate revisions by 22 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
| − | == Function == | + | ==Function== |
| − | Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]. | + | Format release version and date for display in [[Help:Infobox|infoboxes]] and [[Help:Table|wikitables]]; intended to identify the '''latest preview release'''. |
| − | == Usage == | + | ==Usage== |
| − | <pre> | + | {| style="float: left; border: none;" |
| + | |<pre> | ||
{{LPR | {{LPR | ||
| − | + | | article = | |
| − | + | | latest release version = | |
| − | + | | latest release date = <!-- {{Start date and age|YYYY|MM|DD}} --> | |
| + | | edit = <!-- no --> | ||
}} | }} | ||
</pre> | </pre> | ||
| + | |} | ||
| + | {{-}} | ||
| − | == Example == | + | ==Example== |
{{LPR | {{LPR | ||
| − | + | | article = MediaWiki | |
| − | + | | latest_release_version = 1.25 alpha | |
| − | + | | latest_release_date = {{start date and age|2014|09|18}} | |
}} | }} | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{LPR | {{LPR | ||
| − | + | | article = MediaWiki | |
| − | + | | latest_release_version = 1.25 alpha | |
| − | + | | latest_release_date = {{start date and age|2014|09|18}} | |
}} | }} | ||
</pre> | </pre> | ||
| − | |||
| − | == Parameters == | + | ==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> | + | The <code>latest release date</code> parameter is optional and if left empty no date will be shown. |
| − | == See also == | + | The <code>edit</code> parameter is optional and could be used to cancel the edit link. |
| − | * {{tl|LSR}} | + | ==See also== |
| + | *{{tl|LSR}} – latest stable release | ||
| + | *[[Special:PrefixIndex/Template:Latest_preview_software_release|Subpages of redirect "Latest preview software release"]] | ||
| + | *{{tl|Multiple releases}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other||{{#ifeq:{{PAGENAME}}|LPR| |
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category:Software templates|LPR]] | [[Category:Software templates|LPR]] | ||
[[Category:Latest preview software release templates| ]] | [[Category:Latest preview software release templates| ]] | ||
| − | + | }}}}</includeonly> | |
| − | |||
| − | |||
| − | |||
| − | </includeonly> | ||
Latest revision as of 00:22, 26 April 2020
| This is a documentation subpage for Template:LPR. It contains usage information, categories and other content that is not part of the original template page. |
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}}