Template:Version Infobox: Difference between revisions
Straight from HSR, no changes |
m formatting |
||
| Line 1: | Line 1: | ||
<includeonly><infobox> | <includeonly><infobox> | ||
<title source="title"> | |||
<default>{{PAGENAME}}</default> | |||
</title> | |||
<image source="image"> | |||
<caption source="caption"/> | |||
</image> | |||
<data source="release_date"> | |||
<label>Release Date</label> | |||
<format>{{#time:F d, Y|{{{release_date|}}}}}</format> | |||
</data> | |||
<group layout="horizontal"> | |||
<data source="prev"> | <data source="prev"> | ||
<label>Previous</label> | <label>Previous</label> | ||
<default>{{#if:{{{next|}}}|N/A}}</default> | <default>{{#if:{{{next|}}}|N/A}}</default> | ||
<format><!-- | <format><!-- | ||
-->[[Version/{{{prev}}}|{{{prev}}} <!-- | -->[[Version/{{{prev}}}|{{{prev}}}<!-- | ||
-->{{#DPL:<!-- | |||
-->|title=Version/{{{prev}}}<!-- | |||
-->|include={Version Infobox}:title,{Version Infobox}:title<!-- | |||
-->|allowcachedresults=true<!-- | |||
-->|secseparators=²{#if:,¦ - ,,}²<!-- | |||
-->}}<!-- | |||
-->]]<!-- | |||
--></format> | |||
</data> | </data> | ||
<data source="next"> | <data source="next"> | ||
| Line 30: | Line 30: | ||
<format><!-- | <format><!-- | ||
-->[[Version/{{{next}}}|{{{next}}} <!-- | -->[[Version/{{{next}}}|{{{next}}} <!-- | ||
-->{{#DPL:<!-- | |||
-->|title=Version/{{{next}}}<!-- | |||
-->|include={Version Infobox}:title,{Version Infobox}:title<!-- | |||
-->|allowcachedresults=true<!-- | |||
-->|secseparators=²{#if:,¦ - ,,}²<!-- | |||
-->}}<!-- | |||
-->]]<!-- | |||
--></format> | |||
</data> | </data> | ||
</group> | |||
<group layout="vertical"> | |||
<data> | |||
<label>Links</label> | |||
<default><!-- | |||
-->{{#if:{{{link1|}}}|{{{link1|}}}<br />}}<!-- | -->{{#if:{{{link1|}}}|{{{link1|}}}<br />}}<!-- | ||
-->{{#if:{{{link2|}}}|{{{link2|}}}<br />}}<!-- | -->{{#if:{{{link2|}}}|{{{link2|}}}<br />}}<!-- | ||
| Line 49: | Line 49: | ||
-->{{#if:{{{link4|}}}|{{{link4|}}}<br />}}<!-- | -->{{#if:{{{link4|}}}|{{{link4|}}}<br />}}<!-- | ||
-->{{#if:{{{link5|}}}|{{{link5|}}}<br />}}<!-- | -->{{#if:{{{link5|}}}|{{{link5|}}}<br />}}<!-- | ||
--></default> | |||
</data> | |||
</group> | |||
</infobox><!-- | </infobox><!-- | ||
-->{{Namespace|main=<!-- | -->{{Namespace|main=<!-- | ||
-->{{#ifeq:{{NAMESPACE}}||<!-- | |||
Display Name | |||
-->{{#ifeq:{{FULLPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:Version {{SUBPAGENAME}}}}}}<!-- | |||
-->}}<!-- | |||
Main Category | |||
-->[[Category:Version Info]]<!-- | |||
Version Category | |||
-->{{#ifeq:{{SUBPAGENAME}}|Version||{{#if:{{{version|}}}|[[Category:Version|!{{{version}}}]]|[[Category:Version|!]]}}}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><!-- | --></includeonly><!-- | ||
--><noinclude>{{Documentation|type=Infobox}}</noinclude> | --><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Latest revision as of 18:11, 20 September 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Infobox for Versions.
Syntax
{{Version Infobox
|title =
|version = {{subst:SUBPAGENAME}}
|image = <!--Splash Screen ?.png-->
|release_date = <!--YYYY-MM-DD-->
|prev =
|next =
|link1 = <!--[https://hna.hoyoverse.com/en-us/news/ Patch Notes]-->
|link2 = <!--[https://hna.hoyoverse.com/en-us/news/ Update Notice]-->
|link3 = <!--[https://act.hoyoverse.com/na/event/ Preview Page]-->
|link4 = <!--[https://act.hoyoverse.com/na/event/ Website]-->
}}
Example
|title = Nexus Bond Test
|version = 0.3.0
|image = Splash Screen Nexus Bond Test.png
|release_date = 2025-9-17
|prev =
|next =
|link1 = Official Website
}}
Template Data
Infobox for Versions.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Version Name | title | The name of the Version
| String | suggested |
| Version Number | version | The Version's number
| Number | required |
| Splash Screen | image | Version splash screen, usually "Splash Screen <Version Name>.png" | Content | required |
| Release Date | release_date | Version release date, in the form YYYY-MM-DD | Date | required |
| Previous Version | prev | Previous Version number | Number | suggested |
| Next Version | next | Next Version number | Number | suggested |
| Patch Notes | link1 | Link to the official Patch Notes | URL | optional |
| Update Notice | link2 | Link to the official Update Notice | URL | optional |
| Preview Page | link3 | Link to the Version Preview Page | URL | optional |
| Website | link4 | Link to the Version website | URL | optional |