Jump to content

Template:Version Infobox: Difference between revisions

From The Petit Planet Wiki
m Stevium moved page Template:Version to Template:Version Infobox without leaving a redirect: Renamed for consistent infobox naming
Replaced PortableInfobox with DRUID Infobox
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><div style="display: none"><infobox>
|kind = Version
<title data="title">
|sep = ,
        <default>Version {{{version}}}</default>
|title = {{{title|{{{name|}}}}}}
        <format></format>
|subtitle = {{{subtitle|{{#if:{{{version|}}}|Version {{{version|}}}}}}}}
    </title>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:Splashscreen {{{title|{{{name|}}}}}}.png]]}}
<header name="secondary_title">{{{title|}}}</header>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
<panel>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
<section>
|sections = Information, Chronology, Details
<label>{{#if:{{{image2|}}}|First}}</label>
 
<image source="image1" />
|Information_nolabel = Yes
</section>
|Information = Release Date, Expected Release Date
<section>
|Release Date = {{#if:{{{date|}}}|{{#iferror:{{#time:xg j, Y|{{{date|}}}}}|TBA|{{#time:xg j, Y|{{{date|}}}}}}}<br>{{Time Ago|{{{date|}}}|last=month}}}}
<label>Second</label>
|Expected Release Date = {{#if:{{{expected|}}}|{{#iferror:{{#time:xg j, Y|{{{expected|}}}}}|TBA|{{#time:xg j, Y|{{{expected|}}}}}}}<br>In {{#expr: (({{#time:U|{{{expected|}}}}} - {{#time:U|now}}) / 86400) round 0}} days<ref>Extrapolated based on the assumption that version updates take place every six weeks on Wednesday.</ref>}}
<image source="image2" />
 
</section>
|Chronology_nolabel = Yes
<section>
|Chronology_columns = 2
<label>Third</label>
|Chronology = Previous, Next
<image source="image3" />
|Previous = {{#if:{{{previous|{{{prev|}}}}}}|[[Version/{{{previous|{{{prev|}}}}}}|{{{previous|{{{prev|}}}}}}]]|''N/A''}}
</section>
|Next = {{#if:{{{next|}}}|[[Version/{{{next|}}}|{{{next|}}}]]|''N/A''}}
</panel>
 
    <data source="date">
|Details_collapsible = Yes
        <label>Release Date</label>
|Details = Links
        <format>{{#iferror:{{#time:xg j, Y|{{{date|}}}}}|TBA|{{#time:xg j, Y|{{{date|}}}}}}}</format>
|Links_wide = Yes
    </data>
|Links = {{#if:{{#explode:{{{details|{{{links|}}}}}}|;|1}}|{{List|{{{details|{{{links|}}}}}}}}|{{{details|{{{links|}}}}}}}}
    <data source="expected">
}}<!--
        <label>Expected Release Date</label>
 
        <format>{{#iferror:{{#time:xg j, Y|{{{expected|}}}}}|TBA|{{#time:xg j, Y|{{{expected|}}}}}}} (in {{#expr: (({{#time:U|{{{expected|}}}}} - {{#time:U|now}}) / 86400) round 0}} days)</format>
-->{{#if:{{{description|}}}|<!--
    </data>
  -->{{Quote|{{{description|}}}}}<!--
    <group layout="horizontal">
-->}}<!--
        <header>Details</header>
 
        <data source="link1">
-->{{Namespace|main=<!--
        <format><ul><!--
        -->{{#if:{{{link1|}}}|<li>({{{link1|}}})</li>}}<!--
-->{{#if:{{{link2|}}}|<li>({{{link2|}}})</li>}}<!--
-->{{#if:{{{link3|}}}|<li>({{{link3|}}})</li>}}<!--
-->{{#if:{{{link4|}}}|<li>({{{link4|}}})</li>}}<!--
-->{{#if:{{{link5|}}}|<li>({{{link5}}})</li>}}<!--
-->{{#if:{{{link6|}}}|<li>({{{link6|}}})</li>}}<!--
-->{{#if:{{{link7|}}}|<li>({{{link7|}}})</li>}}<!--
-->{{#if:{{{link8|}}}|<li>({{{link8|}}})</li>}}<!--
-->{{#if:{{{link9|}}}|<li>({{{link9|}}})</li>}}<!--
-->{{#if:{{{link10|}}}|<li>({{{link10}}})</li>}}<!--
-->{{#if:{{{link11|}}}|<li>({{{link11}}})</li>}}<!--
-->{{#if:{{{link12|}}}|<li>({{{link12}}})</li>}}<!--
        --></ul></format>
        <default>{{#if:{{{link1|}}}{{{link2|}}}{{{link3|}}}{{{link4|}}}{{{link5|}}}{{{link6|}}}{{{link7|}}}{{{link8|}}}{{{link9|}}}{{{link10|}}}{{{link11|}}}{{{link12|}}}|<ul><!--
        -->{{#if:{{{link1|}}}|<li>({{{link1|}}})</li>}}<!--
-->{{#if:{{{link2|}}}|<li>({{{link2|}}})</li>}}<!--
-->{{#if:{{{link3|}}}|<li>({{{link3|}}})</li>}}<!--
-->{{#if:{{{link4|}}}|<li>({{{link4|}}})</li>}}<!--
-->{{#if:{{{link5|}}}|<li>({{{link5}}})</li>}}<!--
-->{{#if:{{{link6|}}}|<li>({{{link6|}}})</li>}}<!--
-->{{#if:{{{link7|}}}|<li>({{{link7|}}})</li>}}<!--
-->{{#if:{{{link8|}}}|<li>({{{link8|}}})</li>}}<!--
-->{{#if:{{{link9|}}}|<li>({{{link9|}}})</li>}}<!--
-->{{#if:{{{link10|}}}|<li>({{{link10}}})</li>}}<!--
-->{{#if:{{{link11|}}}|<li>({{{link11}}})</li>}}<!--
-->{{#if:{{{link12|}}}|<li>({{{link12}}})</li>}}<!--
        --></ul>}}</default>
        </data>
    </group>
    <group layout="horizontal">
        <data source="prev">
            <label>Previous</label>
            <format>[[Version/{{{prev|}}}|{{{prev|}}}]]</format>
            <default>{{#if:{{{next|}}}|N/A}}</default>
        </data>
        <data source="next">
            <label>Next</label>
            <format>[[Version/{{{next|}}}|{{{next|}}}]]</format>
            <default>{{#if:{{{prev|}}}|N/A}}</default>
        </data>
    </group>
    <data source="description">
    <label>Description</label>
    </data>
</infobox></div><!--
--><div class="hidden"><div style="text-align: center;"><!--
-->{{#if:{{{title|}}}|<div style="font-size: xx-large;">'''{{{title}}}'''</div>}}<!--
-->{{#if:{{{title2|}}}|<div style="font-size: xx-large;">'''{{{title2}}}'''</div>}}<!--
-->{{#if:{{{image1|}}}|<div>{{#tag:gallery|
{{{image1|}}}
{{{image2|}}}
{{{image3|}}}
{{{image4|}}}
|widths=300|spacing=small|position=center|captionalign=center|hideaddbutton=true|bordersize=none}}</div>}}<!--
-->{{#if:{{{date|}}}|<div>Release Date: '''{{#iferror:{{#time:xg j, Y|{{{date}}}}}|TBA|{{#time:xg j, Y|{{{date}}}}}}}'''</div> {{#iferror:{{#time:xg j, Y|{{{date}}}}}||{{Countdown|StartText=Version has released. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge this page]|EndText=Version is over. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge this page]|TimeStartOffset=GMT+8|TimeEndOffset=GMT+8|TimeStart={{#if:{{{date}}}|{{{date}}} 11:00}}|TimeEnd={{#if:{{{next|}}}|{{Exists|Version/{{{next}}}|{{#DPL:
|title=Version/{{{next}}}
|include={Version}:date
|resultsfooter= 06:00
|noresultsfooter=
}}}}}}}}}}}}<!--
-->{{#if:{{{expected|}}}|<div>Expected Date:<ref>Extrapolated based on the [https://www.hoyolab.com/article/38231 Future Versions and Events] post, where version updates are said to be expected every six weeks on Wednesday, which has been consistent thus far, with [[Version 2.6]] as the sole exception due to extraordinary circumstances.</ref> '''{{#iferror:{{#time:xg j, Y|{{{expected}}}}}|TBA|{{#time:xg j, Y|{{{expected}}}}}}} (in {{#expr: (({{#time:U|{{{expected|}}}}} - {{#time:U|now}}) / 86400) round 0}} days)'''}}<!--
-->{{#if:{{{prev|}}}
|<div>Previous: [[Version/{{{prev}}}|{{{prev}}} {{#DPL:
|title=Version/{{{prev}}}
|include={Version}:title,{Version}:title
|secseparators=²{#if:,¦<nowiki> </nowiki>-<nowiki> </nowiki>,,}²
}}]]</div>}}<!--
-->{{#if:{{{next|}}}
|<div>Next: [[Version/{{{next}}}|{{{next}}} {{#DPL:
|title=Version/{{{next}}}
|include={Version}:title,{Version}:title
|secseparators=²{#if:,¦<nowiki> </nowiki>-<nowiki> </nowiki>,,}²
}}]]</div>}}<!--
-->{{#if:{{{link1|}}}{{{link2|}}}{{{link3|}}}{{{link4|}}}{{{link5|}}}{{{link6|}}}{{{link7|}}}{{{link8|}}}{{{link9|}}}{{{link10|}}}{{{link11|}}}{{{link12|}}}|<div><!--
-->{{#if:{{{link1|}}}|<span style="white-space: nowrap;">({{{link1}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link2|}}}|<span style="white-space: nowrap;">({{{link2}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link3|}}}|<span style="white-space: nowrap;">({{{link3}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link4|}}}|<span style="white-space: nowrap;">({{{link4}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link5|}}}|<span style="white-space: nowrap;">({{{link5}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link6|}}}|<span style="white-space: nowrap;">({{{link6}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link7|}}}|<span style="white-space: nowrap;">({{{link7}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link8|}}}|<span style="white-space: nowrap;">({{{link8}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link9|}}}|<span style="white-space: nowrap;">({{{link9}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link10|}}}|<span style="white-space: nowrap;">({{{link10}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link11|}}}|<span style="white-space: nowrap;">({{{link11}}})</span><nowiki> </nowiki>}}<!--
-->{{#if:{{{link12|}}}|<span style="white-space: nowrap;">({{{link12}}})</span><nowiki> </nowiki>}}<!--
--></div>}}<!--
--></div><!--
-->{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
--></div><!--
--></div>{{Namespace|main=<!--
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#ifeq:{{FULLPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:Version {{SUBPAGENAME}}}}}}<!--
  -->{{#ifeq:{{FULLPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:Version {{SUBPAGENAME}}}}}}<!--
-->}}<!--
-->{{#ifeq:{{SUBPAGENAME}}|Version||<!--
  -->{{#if:{{{version|}}}<!--
    -->|[[Category:Version|!{{{version}}}]][[Category:Version Info|{{{version}}}]]<!--
    -->|[[Category:Version|!]][[Category:Version Info]]<!--
  -->}}<!--
-->}}<!--
-->}}<!--
-->{{#ifeq:{{SUBPAGENAME}}|Version||{{#if:{{{version|}}}
-->}}</includeonly><noinclude>{{Documentation|type=Infobox|content=
|[[Category:Version|!{{{version}}}]][[Category:Version Info|{{{version}}}]]
 
|[[Category:Version|!]][[Category:Version Info]]
==Syntax==
}}}}
<pre>
}}</includeonly><noinclude>{{Documentation|type=Design}}</noinclude>
{{Version Infobox
|title  =
|version =
|date    =
|prev    =
|next    =
|details =
|description =
}}
</pre>
 
==Example==
<pre>
{{Version Infobox
|title  = Coziness Test
|version = 0.83.5
|date    = 2025-11-07 09:00
|next    = Stardrift Test
|details = [https://planet.hoyoverse.com/en-us/news/detail/159678 Announcement];[https://planet.hoyoverse.com/en-us/news/detail/159689 Sign-Up Event Notes & FAQ]
|description = Beyond the hustle and bustle, the Starsea whispers. Deep within the Petit Planet Universe, seeds of hope and life are stirring awake.<br>And you shall bring forth your own "star" with your very hands.<br>Let's begin! Our journey to the Starsea awaits—<br>Are you ready to plant a planet?
}}
</pre>
{{Version Infobox
|title  = Coziness Test
|version = 0.83.5
|date    = 2025-11-07 09:00
|next    = Stardrift Test
|details = [https://planet.hoyoverse.com/en-us/news/detail/159678 Announcement];[https://planet.hoyoverse.com/en-us/news/detail/159689 Sign-Up Event Notes & FAQ]
|description = Beyond the hustle and bustle, the Starsea whispers. Deep within the Petit Planet Universe, seeds of hope and life are stirring awake.<br>And you shall bring forth your own "star" with your very hands.<br>Let's begin! Our journey to the Starsea awaits—<br>Are you ready to plant a planet?
}}
}}</noinclude>

Revision as of 07:23, 6 April 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Syntax

{{Version Infobox
|title   = 
|version = 
|date    = 
|prev    = 
|next    = 
|details = 
|description = 
}}

Example

{{Version Infobox
|title   = Coziness Test
|version = 0.83.5
|date    = 2025-11-07 09:00
|next    = Stardrift Test
|details = [https://planet.hoyoverse.com/en-us/news/detail/159678 Announcement];[https://planet.hoyoverse.com/en-us/news/detail/159689 Sign-Up Event Notes & FAQ]
|description = Beyond the hustle and bustle, the Starsea whispers. Deep within the Petit Planet Universe, seeds of hope and life are stirring awake.<br>And you shall bring forth your own "star" with your very hands.<br>Let's begin! Our journey to the Starsea awaits—<br>Are you ready to plant a planet?
}}
Coziness Test
Version 0.83.5
Release Date
November 7, 2025
4 months ago
Previous
N/A

Beyond the hustle and bustle, the Starsea whispers. Deep within the Petit Planet Universe, seeds of hope and life are stirring awake.
And you shall bring forth your own "star" with your very hands.
Let's begin! Our journey to the Starsea awaits—
Are you ready to plant a planet?