Difference between revisions of "Template:Infobox/Version"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+more information;)
m (+article parameter; +description about date format; +description how to get the correct IDs;)
Line 6: Line 6:
 
{{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|Released|{{#time: {{#if: {{{format|}}}|{{{format}}}|{{lang|default=Y-m-d|en=n/j/Y|de=j.m.Y}}}}|{{{released<noinclude>|</noinclude>}}}}}}}
 
{{Infobox/Line|Released|{{#time: {{#if: {{{format|}}}|{{{format}}}|{{lang|default=Y-m-d|en=n/j/Y|de=j.m.Y}}}}|{{{released<noinclude>|</noinclude>}}}}}}}
{{Infobox/Line|Announcement|[[thread:{{{thread<noinclude>|53069</noinclude>}}}|{{{title|Forum post}}}]]}}{{if||{{{steam|}}}|
+
{{Infobox/Line|Announcement|[[{{#if: {{{article|}}}|article:{{{article}}}|thread:{{{thread<noinclude>|53069</noinclude>}}}}}|{{{title|Forum post}}}]]}}{{if||{{{steam|}}}|
 
{{Infobox/Line|Steam|[http://steamcommunity.com/games/220200/announcements/detail/{{{steam}}} {{{steam title|Steam Community}}}]}}}}
 
{{Infobox/Line|Steam|[http://steamcommunity.com/games/220200/announcements/detail/{{{steam}}} {{{steam title|Steam Community}}}]}}}}
 
{{Infobox/Line|1=<span style="float:left;">← [[{{{previous}}}]]</span> <span style="float:right;">{{#if: {{{next|}}}|[[{{{next}}}]]|Newest}} →</span>}}
 
{{Infobox/Line|1=<span style="float:left;">← [[{{{previous}}}]]</span> <span style="float:right;">{{#if: {{{next|}}}|[[{{{next}}}]]|Newest}} →</span>}}
Line 19: Line 19:
 
{{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.}}
 
{{Parameter Row|thread|Thread ID of the announcement in the forum.}}
 
{{Parameter Row|thread|Thread ID of the announcement in the forum.}}
 +
{{Parameter Row|article|Article ID of the announcement in the forum. This can be used instead of the thread ID.}}
 
{{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}}
Line 25: Line 26:
 
{{Parameter Row|next|The next version number.|Not set}}
 
{{Parameter Row|next|The next 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:
 +
* English: (M)M/(D)D/YYYY
 +
* German: DD.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 20:20, 17 April 2014

Infobox
Released 2024-04-27
Announcement Forum post
← [[{{{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