Difference between revisions of "Template:Infobox/Version"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+not yet released;)
Line 4: Line 4:
 
|hovertext={{{hovertext|}}}
 
|hovertext={{{hovertext|}}}
 
|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|{{Lang|en=Released|ru=Дата публикации:|ja={{Nowrap|リリース}}}}|{{#time: {{#if: {{{format|}}}|{{{format}}}|{{lang|default=Y-m-d|en=n/j/Y|de=j.m.Y|ru=j.m.Y}}}}|{{{released<noinclude>|</noinclude>}}}}}}}
+
{{Infobox/Line|{{Lang|en=Released|ru=Дата публикации:|ja={{Nowrap|リリース}}}}|{{#ifeq: {{lc:{{{released}}}}}|no|{{No}}|{{#time: {{#if: {{{format|}}}|{{{format}}}|{{lang|default=Y-m-d|en=n/j/Y|de=j.m.Y|ru=j.m.Y}}}}|{{{released<noinclude>|</noinclude>}}}}}}}}}{{if||{{{article|}}}{{{thread|}}}|
{{Infobox/Line|{{Lang|en=Announcement|ru=Официальное сообщение:|ja={{Nowrap|告知記事}}}}|[[{{#if: {{{article|}}}|article:{{{article}}}|thread:{{{thread<noinclude>|53069</noinclude>}}}}}|{{{title|Forum post}}}]]}}{{if||{{{steam|}}}|
+
{{Infobox/Line|{{Lang|en=Announcement|ru=Официальное сообщение:|ja={{Nowrap|告知記事}}}}|[[{{#if: {{{article|}}}|article:{{{article}}}|thread:{{{thread<noinclude>|53069</noinclude>}}}}}|{{{title|Forum post}}}]]}}}}{{if||{{{steam|}}}|
 
{{Infobox/Line|{{Lang|en=Steam|ru=Стим}}|[http://steamcommunity.com/games/220200/announcements/detail/{{{steam}}} {{{steam title|{{Lang|en=Steam Community|ru=Стим-сообщество|ja=Steamコミュニティ}}}}}]}}}}
 
{{Infobox/Line|{{Lang|en=Steam|ru=Стим}}|[http://steamcommunity.com/games/220200/announcements/detail/{{{steam}}} {{{steam title|{{Lang|en=Steam Community|ru=Стим-сообщество|ja=Steamコミュニティ}}}}}]}}}}
 
{{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|ru=Новейший|ja=最新}}}} →</span>}}
 
{{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|ru=Новейший|ja=最新}}}} →</span>}}
Line 17: Line 17:
 
{{Parameter Row|hovertext|The image's hovertext and subtitle.|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|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.}}
+
{{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.}}
+
{{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.}}
+
{{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|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|Steam Community announcement ID.|Not set/Hidden}}

Revision as of 22:32, 19 October 2014

Infobox
Released 2024-04-19
← [[{{{previous}}}|{{{previous}}}]] Newest →

An infobox for version pages.

Template:Parameter Table

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:

  • English: (M)M/(D)D/YYYY
  • German: DD.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