Difference between revisions of "Template:Infobox/Version"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Fixed title.)
(43 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
|file={{{file|}}}
+
|file={{{file|none}}}
|name=Version {{{name}}}
+
|file extra1={{{file extra1|}}}
 +
|thumb extra1={{{thumb extra1|}}}
 +
|file extra2={{{file extra2|}}}
 +
|thumb extra2={{{thumb extra2|}}}
 +
|icon={{{icon|}}}
 +
|icon width={{{icon width|}}}
 +
|name={{{name|}}}
 +
|subtitle={{{subtitle|{{#ifexpr:{{Check version/Rev|{{BASEPAGENAME}}}} > 48|{{lang|en=Official release|fr=Version officielle|ko=공식출시판|nl=Officiële versie|de=Offizielle version|tr=Resmi sürüm}}|{{lang|en=Beta release|fr=Version bêta|ko=베타시험판|nl=Bèta versie|de=Beta version|tr=Beta sürümü}}|{{lang|en=Alpha release|fr=Version alpha|ko=알파시험판|nl=Alfa versie|de=Alpha version|tr=Alfa sürümü}}}}}}}<!-- OLD SYNTAX : {{#ifexpr:{{lang|en=Version|ru=Версия|ja=バージョン|ko=버전|th=รุ่น|es=Versión|pl=Wersja|tr=Sürüm}}}} -->
 
|hovertext={{{hovertext|}}}
 
|hovertext={{{hovertext|}}}
|previous={{{previous|}}}
 
|next={{{next|}}}
 
 
|lines=
 
|lines=
{{if||{{{hovertext|}}}|{{ Infobox/Line|style=text-align:center; font-style:italic;|{{{hovertext}}}}}}}
+
{{if||{{{hovertext|}}}|{{Infobox/Line|style=text-align:center; font-style:italic;|{{{hovertext}}}}}}}
{{Infobox/Line|Previous|[[{{{previous}}}]]}}
+
{{Infobox/Line|{{Lang|en=Released|fr=Publié|ru=Дата публикации:|ja={{Nowrap|リリース}}|ko={{Nowrap|출시일}}|nl=Uitgebracht|de=Veröffentlicht|tr=Yayınlanmış}}|{{#ifeq: {{lc:{{{released}}}}}|no|{{No}}|{{#time: {{#if: {{{format|}}}|{{{format}}}|{{lang|default=Y-m-d|en=n/j/Y|fr=j/m/Y|de=j.m.Y|ru=j.m.Y|nl=j/m/Y|tr=j.m.Y}}}}|{{{released<noinclude>|</noinclude>}}}}}}}}}{{if||{{{article|}}}{{{thread|}}}|
{{Infobox/Line|Next|[[{{{next}}}]]}}
+
{{Infobox/Line|{{Lang|en=Announcement|fr=Annonce|ru=Официальное сообщение:|ja={{Nowrap|告知記事}}|ko={{Nowrap|공지}}|nl=Aankondiging|de=Ankündigung|tr=Duyuru}}|[[{{#if: {{{article|}}}|article:{{{article}}}|thread:{{{thread<noinclude>|53069</noinclude>}}}}}|{{{title|Forum post}}}]]}}}}{{if||{{{steam|}}}|
{{if||{{{lines|}}}|
+
{{Infobox/Line|{{Lang|en=Steam|fr=Steam|ru=Стим|ko={{Nowrap|스팀}}|nl=Steam|de=Steam}}|[http://steamcommunity.com/games/220200/announcements/detail/{{{steam}}} {{{steam title|{{Lang|en=Steam Community|fr=Communauté Steam|ru=Стим-сообщество|ja=Steamコミュニティ|ko={{Nowrap|스팀 커뮤니티}}|nl=Steam Community|de=Steam Community|tr=Steam Topluluğu}}}}}]}}}}
{{{lines}}}}}
+
{{Infobox/Line|1=<span style="float:left;">← [[{{{previous}}}{{if lang}}|{{{previous}}}]]</span> <span style="float:right;">{{#if: {{Booland|{{{next|}}}|{{#ifexpr: {{Check version/Rev|{{{next|}}}|{{#expr: {{Check version/Rev}}+1}}}} <= {{Check version/Rev}}|1}}}}|[[{{{next}}}{{if lang}}|{{{next}}}]]|{{Lang|en=Newest|fr=Plus récent|ru=Новейший|ja=最新|ko={{Nowrap|최신}}|nl=Niewste|de=Neueste|tr=En yeni}}}} →</span>}}
 +
{{#if: {{{previousmajor|}}}{{{nextmajor|}}}|{{Infobox/Line|1={{#if: {{{previousmajor|}}}|<span style="float:left;">⇐ [[{{{previousmajor}}}{{if lang}}|{{{previousmajor}}}]]</span>}}{{#if: {{{nextmajor|}}}|<span style="float:right;">[[{{{nextmajor}}}{{if lang}}|{{{nextmajor}}}]] ⇒</span>}}}}}}
 +
}}[[Category:Versions{{if lang}}]]{{#ifexpr:{{Check version/Rev|{{BASEPAGENAME}}}} > 47|{{#ifexpr:{{Check version/Rev|{{BASEPAGENAME}}}} > 48|{{if lang link|Category:Official releases}}|{{if lang link|Category:Beta versions}}}}|{{if lang link|Category:Alpha versions}}}}</includeonly>
 +
<noinclude>
 +
{{Infobox/Version
 +
|file=024_wallpaper.png
 +
|released=2014-07-17
 +
|article=295
 +
|title=Kerbal Space Program: First Contract Now Available
 +
|steam=169200510819871530
 +
|previous=0.23.5
 +
|next=0.24.1
 +
|previousmajor=0.23
 +
|nextmajor=0.25
 
}}
 
}}
<noinclude>
+
An infobox for [[:Category:Versions|version pages]].
An infobox for [[version history]] pages.
 
  
{{Parameter Table|parameters=
+
{{Parameter table|parameters=
{{Parameter Row|name|The exact version number.|Base page name}}
+
{{Parameter row|name|The exact version number.|Base page name}}
{{Parameter Row|file|A screenshot from that version.|[[:File:Image needed.svg]]}}
+
{{Parameter row|file|A screenshot from that version.|[[:File:Image needed.svg]]}}
{{Parameter Row|hovertext|The image's hovertext and subtitle.|Not set}}
+
{{Parameter row|file extra1|An extra image displayed below the first image|Not set}}
{{Parameter Row|previous|The previous version number.}}
+
{{Parameter row|thumb extra1|An image description displayed below the first extra image|Not set}}
{{Parameter Row|next|The next version number.|Not set}}
+
{{Parameter row|file extra2|An extra image displayed below the first image|Not set}}
 +
{{Parameter row|thumb extra2|An image description displayed below the second extra image|Not set}}
 +
{{Parameter row|hovertext|The image's hovertext and subtitle.|Not set}}
 +
{{Parameter row|format|Format of the time. It is recommended to change the format according to the language here.|Language depending}}
 +
{{Parameter row|released|The date when the version is released as ISO date: YYYY-MM-DD. Set to <tt>no</tt> for future releases.}}
 +
{{Parameter row|thread|Thread ID of the announcement in the forum.|Not set/Hidden}}
 +
{{Parameter row|article|Article ID of the announcement in the forum. This can be used instead of the thread ID.|Not set/Hidden}}
 +
{{Parameter row|title|Title of the announcement in the forum.|<tt>Forum post</tt>}}
 +
{{Parameter row|steam|Steam Community announcement ID.|Not set/Hidden}}
 +
{{Parameter row|steam title|Title of the announcement in the Steam Community.|<tt>Steam Community</tt>}}
 +
{{Parameter row|previous|The previous version number.}}
 +
{{Parameter row|next|The next version number.|Not set}}
 +
{{Parameter row|previousmajor|The previous major version number. (e.g., 0.24; not "minor" version numbers like 0.24.1)|Not set}}
 +
{{Parameter row|nextmajor|The next major version number.|Not set}}
 
}}
 
}}
 +
 +
== Date format ==
 +
This template automatically formats the released date. '''DO NOT''' use your own format. It might be recognized, but to keep it clean use the ISO format (YYYY-MM-DD). If the language is not supported it will use the ISO format to avoid ambiguities. It will show the ISO format on this template page and infobox subpages.
 +
 +
Currently supported:
 +
* Default: YYYY-MM-DD
 +
* English: (M)M/(D)D/YYYY
 +
* German: (D)D.MM.YYYY
 +
* French: (D)D/MM/YYYY
 +
* Russian: (D)D.MM.YYYY
 +
* Dutch: (D)D/MM/YYYY
 +
 +
It is possible with the format parameter to use a custom format. The {{[[mw:Help:Extension:ParserFunctions#.23time|#time:]]}} is used.
 +
 +
== Thread, article and Steam ID ==
 +
Only the ID is required, which is the highlighted text:
 +
* Thread ID: <nowiki>http://forum.kerbalspaceprogram.com/threads/</nowiki>'''53069'''-Update-0-22-is-now-LIVE! → ''53069''
 +
* Article ID: <nowiki>http://forum.kerbalspaceprogram.com/content/</nowiki>'''274'''-KSP-Asteroid-Redirect-Mission-is-Officially-Released! → ''274''
 +
* Steam ID: <nowiki>http://steamcommunity.com/games/220200/announcements/detail/</nowiki>'''1569794711402104158''' → ''1569794711402104158''
  
 
[[Category:Infobox templates|Version]]</noinclude>
 
[[Category:Infobox templates|Version]]</noinclude>

Revision as of 22:32, 11 January 2019


Infobox
Beta release
024 wallpaper.png
Released 2014-07-17
Announcement Kerbal Space Program: First Contract Now Available
Steam Steam Community
0.23.5 0.24.1
0.230.25

An infobox for version pages.

# Optional Description Default
name Yes The exact version number. Base page name
file Yes A screenshot from that version. File:Image needed.svg
file extra1 Yes An extra image displayed below the first image Not set
thumb extra1 Yes An image description displayed below the first extra image Not set
file extra2 Yes An extra image displayed below the first image Not set
thumb extra2 Yes An image description displayed below the second extra image Not set
hovertext Yes The image's hovertext and subtitle. Not set
format Yes Format of the time. It is recommended to change the format according to the language here. Language depending
released No The date when the version is released as ISO date: YYYY-MM-DD. Set to no for future releases.
thread Yes Thread ID of the announcement in the forum. Not set/Hidden
article Yes Article ID of the announcement in the forum. This can be used instead of the thread ID. Not set/Hidden
title Yes Title of the announcement in the forum. Forum post
steam Yes Steam Community announcement ID. Not set/Hidden
steam title Yes Title of the announcement in the Steam Community. Steam Community
previous No The previous version number.
next Yes The next version number. Not set
previousmajor Yes The previous major version number. (e.g., 0.24; not "minor" version numbers like 0.24.1) Not set
nextmajor Yes The next major version number. Not set

Date format

This template automatically formats the released date. DO NOT use your own format. It might be recognized, but to keep it clean use the ISO format (YYYY-MM-DD). If the language is not supported it will use the ISO format to avoid ambiguities. It will show the ISO format on this template page and infobox subpages.

Currently supported:

  • Default: YYYY-MM-DD
  • English: (M)M/(D)D/YYYY
  • German: (D)D.MM.YYYY
  • French: (D)D/MM/YYYY
  • Russian: (D)D.MM.YYYY
  • Dutch: (D)D/MM/YYYY

It is possible with the format parameter to use a custom format. The {{#time:}} is used.

Thread, article and Steam ID

Only the ID is required, which is the highlighted text:

  • Thread ID: http://forum.kerbalspaceprogram.com/threads/53069-Update-0-22-is-now-LIVE! → 53069
  • Article ID: http://forum.kerbalspaceprogram.com/content/274-KSP-Asteroid-Redirect-Mission-is-Officially-Released! → 274
  • Steam ID: http://steamcommunity.com/games/220200/announcements/detail/15697947114021041581569794711402104158