Jump to content

Template:LSR/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
MPK100 (talk | contribs)
interwiki
mNo edit summary
Line 5: Line 5:


== Usage ==
== Usage ==
<pre>
{| class="wikitable"
{{LSR
!Parameters:
| article =
|-
| latest_release_version =
|<pre style="font-size:90%">{{LSR
| latest_release_date = <!-- {{Start date and age|YYYY|MM|DD}} -->
| article =
}}
| latest_release_version =
</pre>
| latest_release_date = <!-- {{Start date and age|YYYY|MM|DD}} -->
}}</pre>
|}


Example:
== Example ==
{{LSR

| article = MediaWiki
<pre>{{LSR
| latest_release_version = 1.14.0
| article = MediaWiki
| latest_release_date = {{Start date and age|2009|02|22}}
| latest_release_version = 1.14.0
}}
| latest_release_date = {{Start date and age|2009|02|22}}
}}</pre>

Appears as:


<pre style="overflow:auto;">
{{LSR
{{LSR
| article = MediaWiki
| article = MediaWiki
| latest_release_version = 1.14.0
| latest_release_version = 1.14.0
| latest_release_date = {{Start date and age|2009|02|22}}
| latest_release_date = {{Start date and age|2009|02|22}}
}}
}}
</pre>
{{-}}


== Notes ==
== 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.



Revision as of 14:30, 30 September 2009

Function

Format release version and date for display in an Infobox.

Usage

{{LSR
 | article = 
 | latest_release_version = 
 | latest_release_date = <!-- {{Start date and age|YYYY|MM|DD}} -->
}}

Example

1.14.0 (February 22, 2009; 15 years ago (2009-02-22)) [±]

{{LSR
 | article = MediaWiki
 | latest_release_version = 1.14.0
 | latest_release_date = {{Start date and age|2009|02|22}}
}}

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.

See also