模板:Multiple releases/doc
外觀
此模板使用Lua語言: |
用法
[編輯]這個模板適用於在不同平台上擁有不同版本的的軟件。
這個模板接受三組參數:|branchn=
,|versionn=
及|daten=
,其中n是一個自然數。對於特定的n,必須有|branchn=
和|versionn=
。|daten=
則是可選的。
例子
[編輯]右側的信息框可以使用以下代碼生成:
當前版本 |
|
---|
{{Infobox web browser | name = Opera Mini (例子) | logo = Opera Mini logo horizontal.png | ver layout = stacked | latest release version = {{multiple releases | branch1 = Android | version1 = 13.0.2036.98649 | date1 = {{Start date and age|2015|12|9}} | branch2 = iOS | version2 = 13.0.0 | date2 = {{Start date and age|2016|03|01}} | branch3 = Windows Phone | version3 = 9.0.0.201 | date3 = {{Start date and age|2015|09|29}} | branch4 = BlackBerry | version4 = 8.0 | date4 = {{Start date and age|2014|03|12}} | branch5 = Java ME | version5 = 8.0 | date5 = {{Start date and age|2014|03|12}} | branch6 = Symbian | version6 = 7.1 | date6 = {{Start date and age|2013|01|25}} }} }}
In this certain example, the lengthy information placed in |latest release version=
can be placed into {{Latest stable software release/Opera Mini}} instead. {{Infobox web browser}} looks for it when |latest release version=
is absent. (Please consult with Template:Infobox software/doc to find out more.) This way, the same template may be used on other pages mentioning software versions, e.g.:
Browser | Vendor | Version |
---|---|---|
Opera Mini | Opera Software | Template:Latest stable software release/Opera Mini |
{| class="wikitable floatright" |- ! Browser ! Vendor ! Version |- | [[Opera Mini]] | [[Opera Software]] | {{Latest stable software release/Opera Mini}} |}