Template:Version Infobox: Difference between revisions

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
Raven.Familiar (talk | contribs)
Straight from HSR, no changes
 
m formatting
 
Line 1: Line 1:
<includeonly><infobox>
<includeonly><infobox>
  <title source="title">
<title source="title">
    <default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
  </title>
</title>
  <image source="image">
<image source="image">
    <caption source="caption"/>
<caption source="caption"/>
  </image>
</image>
  <data source="release_date">
<data source="release_date">
    <label>Release Date</label>
<label>Release Date</label>
    <format>{{#time:F d, Y|{{{release_date|}}}}}</format>
<format>{{#time:F d, Y|{{{release_date|}}}}}</format>
  </data>
</data>
  <group layout="horizontal">
<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:<!--
-->{{#DPL:<!--
              -->|title=Version/{{{prev}}}<!--
-->|title=Version/{{{prev}}}<!--
              -->|include={Version Infobox}:title,{Version Infobox}:title<!--
-->|include={Version Infobox}:title,{Version Infobox}:title<!--
              -->|allowcachedresults=true<!--
-->|allowcachedresults=true<!--
              -->|secseparators=²{#if:,¦ - ,,}²<!--
-->|secseparators=²{#if:,¦ - ,,}²<!--
              -->}}<!--
-->}}<!--
            -->]]<!--
-->]]<!--
        --></format>
--></format>
</data>
</data>
<data source="next">
<data source="next">
Line 30: Line 30:
<format><!--
<format><!--
-->[[Version/{{{next}}}|{{{next}}} <!--
-->[[Version/{{{next}}}|{{{next}}} <!--
  -->{{#DPL:<!--
-->{{#DPL:<!--
              -->|title=Version/{{{next}}}<!--
-->|title=Version/{{{next}}}<!--
              -->|include={Version Infobox}:title,{Version Infobox}:title<!--
-->|include={Version Infobox}:title,{Version Infobox}:title<!--
              -->|allowcachedresults=true<!--
-->|allowcachedresults=true<!--
              -->|secseparators=²{#if:,¦ - ,,}²<!--
-->|secseparators=²{#if:,¦ - ,,}²<!--
              -->}}<!--
-->}}<!--
            -->]]<!--
-->]]<!--
        --></format>
--></format>
</data>
</data>
  </group>
</group>
  <group layout="vertical">
<group layout="vertical">
  <data>
<data>
  <label>Links</label>
<label>Links</label>
<default><!--
<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>
--></default>
</data>
</data>
  </group>
</group>
</infobox><!--
</infobox><!--
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
  -->{{#ifeq:{{NAMESPACE}}||<!--
-->{{#ifeq:{{NAMESPACE}}||<!--
      -->{{#ifeq:{{FULLPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:Version {{SUBPAGENAME}}}}}}<!--
Display Name
  -->}}<!--
-->{{#ifeq:{{FULLPAGENAME}}|{{SUBPAGENAME}}||{{DISPLAYTITLE:Version {{SUBPAGENAME}}}}}}<!--
  -->[[Category:Version Info]]<!--
-->}}<!--
  -->{{#ifeq:{{SUBPAGENAME}}|Version||{{#if:{{{version|}}}|[[Category:Version|!{{{version}}}]]|[[Category:Version|!]]}}}}<!--
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

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

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

{{Version Infobox
|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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Version Nametitle

The name of the Version

Example
Nexus Bond Test
Stringsuggested
Version Numberversion

The Version's number

Example
0.3.0, 1.0
Numberrequired
Splash Screenimage

Version splash screen, usually "Splash Screen <Version Name>.png"

Contentrequired
Release Daterelease_date

Version release date, in the form YYYY-MM-DD

Daterequired
Previous Versionprev

Previous Version number

Numbersuggested
Next Versionnext

Next Version number

Numbersuggested
Patch Noteslink1

Link to the official Patch Notes

URLoptional
Update Noticelink2

Link to the official Update Notice

URLoptional
Preview Pagelink3

Link to the Version Preview Page

URLoptional
Websitelink4

Link to the Version website

URLoptional