Changes

Jump to navigation Jump to search
restore beta handling for current 1.3.33-beta
Line 14: Line 14:  
   {{#arrayindex:vars|0}} = main status
 
   {{#arrayindex:vars|0}} = main status
 
   {{#arrayindex:vars|1}} = main status (no subtag)
 
   {{#arrayindex:vars|1}} = main status (no subtag)
 +
  {{#arrayindex:vars|2}} = beta status
 +
  {{#arrayindex:vars|3}} = beta status (no subtag)
 +
  {{#arrayindex:statuscompare|0}} = whether the compatibility info is equivalent between main and beta ('same' or 'different')
    
-->{{#arraydefine:vars|<!--
 
-->{{#arraydefine:vars|<!--
 
   0-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}}},<!--
 
   0-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}}},<!--
   1-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}|no subtag=1}},
+
   1-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}|no subtag=1}},<!--
 +
  2-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}|beta unofficial={{{beta unofficial url|}}}|beta broke in={{{beta broke in|}}}|beta status={{{beta status|}}}}},<!--
 +
  3-->{{Modding:SMAPI compatibility/entry/status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}|beta unofficial={{{beta unofficial url|}}}|beta broke in={{{beta broke in|}}}|beta status={{{beta status|}}}|no subtag=1}}
 +
}}{{#arraydefine:statuscompare|<!--
 +
0-->{{Modding:SMAPI compatibility/entry/compare status|source={{#if:{{{github|}}}|{{{github}}}|{{{source|}}}}}|unofficial={{{unofficial url|}}}|broke in={{{broke in|}}}|status={{{status|}}}|beta unofficial={{{beta unofficial url|}}}|beta broke in={{{beta broke in|}}}|beta status={{{beta status|}}}}}
 
}}<!--
 
}}<!--
   Line 45: Line 52:  
-->{{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} <!--
 
-->{{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} <!--
 
-->{{#if:{{{unofficial url|}}}|data-unofficial-url="{{#tag:nowiki|{{{unofficial url}}}}}"}} <!--
 
-->{{#if:{{{unofficial url|}}}|data-unofficial-url="{{#tag:nowiki|{{{unofficial url}}}}}"}} <!--
 +
-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|<!--
 +
  -->data-beta-status="{{#arrayindex:vars|3}}" <!--
 +
  -->{{#if:{{{beta broke in|}}}|data-beta-broke-in="{{{beta broke in}}}"}} <!--
 +
  -->{{#if:{{{beta unofficial version|}}}|data-beta-unofficial-version="{{{beta unofficial version}}}"}} <!--
 +
  -->{{#if:{{{beta unofficial url|}}}|data-beta-unofficial-url="{{#tag:nowiki|{{{beta unofficial url}}}}}"}}<!--
 +
-->}} <!--
 
-->{{#ifexpr:{{#arraysize:warnings}} > 0|data-warnings="{{#arrayprint:warnings|, |@@@|@@@}}"}} <!--
 
-->{{#ifexpr:{{#arraysize:warnings}} > 0|data-warnings="{{#arrayprint:warnings|, |@@@|@@@}}"}} <!--
 
-->data-smapi-3-status="{{#switch:{{{3.0 ready|}}}|yes=ok |no=broken |#default={{#if:{{{3.0 ready|}}}|soon|unknown}}}}" <!--
 
-->data-smapi-3-status="{{#switch:{{{3.0 ready|}}}|yes=ok |no=broken |#default={{#if:{{{3.0 ready|}}}|soon|unknown}}}}" <!--
Line 60: Line 73:  
   |unofficial version = {{{unofficial version|}}}
 
   |unofficial version = {{{unofficial version|}}}
 
}}</span>{{#ifeq:{{#arrayindex:vars|0}}|optional|<ref name="optional-update" />}}<!--
 
}}</span>{{#ifeq:{{#arrayindex:vars|0}}|optional|<ref name="optional-update" />}}<!--
 
+
beta summary (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|<br />'''{{version|beta|link=0}}-beta:'''&#32;<span class="mod-beta-summary">{{Modding:SMAPI compatibility/entry/summary
 +
  |status            = {{#arrayindex:vars|2}}
 +
  |summary            = {{{beta summary|}}}
 +
  |unofficial url    = {{{beta unofficial url|}}}
 +
  |unofficial version = {{{beta unofficial version|}}}
 +
}}</span>{{#ifeq:{{#arrayindex:vars|2}}|optional|<ref name="optional-update" />}}}}<!--
 
warnings-->{{#if:{{{warnings|}}}|<br />⚠&#32;{{#arrayprint:warnings|<br />⚠&#32;}}}}
 
warnings-->{{#if:{{{warnings|}}}|<br />⚠&#32;{{#arrayprint:warnings|<br />⚠&#32;}}}}
| <small>{{{broke in|}}}</small>
+
| <small>{{#if:{{{beta broke in|}}}|{{{beta broke in}}}|{{{broke in|}}}}}</small>
 
| {{#if:{{{github|}}}|[https://github.com/{{{github}}} source]|{{#if:{{{source|}}}|[{{{source}}} source]|<span style="color: red; font-size: 0.85em; opacity: 0.5;">closed source</span>}}}}
 
| {{#if:{{{github|}}}|[https://github.com/{{{github}}} source]|{{#if:{{{source|}}}|[{{{source}}} source]|<span style="color: red; font-size: 0.85em; opacity: 0.5;">closed source</span>}}}}
 
| <small>[[#{{#arrayindex:names|0}}|#]] {{#switch:{{#arrayindex:vars|0}}|ok|optional|unofficial=({{#switch:{{{3.0 ready|}}}|yes=3.0 ✓ |no=3.0 ⚠ |#default={{#if:{{{3.0 ready|}}}|[{{{3.0 ready}}} 3.0 ↻]|3.0 ?}}}})}}</small><noinclude>
 
| <small>[[#{{#arrayindex:names|0}}|#]] {{#switch:{{#arrayindex:vars|0}}|ok|optional|unofficial=({{#switch:{{{3.0 ready|}}}|yes=3.0 ✓ |no=3.0 ⚠ |#default={{#if:{{{3.0 ready|}}}|[{{{3.0 ready}}} 3.0 ↻]|3.0 ?}}}})}}</small><noinclude>
Line 219: Line 237:  
| <code>3.0 ready</code>
 
| <code>3.0 ready</code>
 
| Whether the mod is compatible with the upcoming SMAPI 3.0. Possible values are <tt>yes</tt>, <tt>no</tt>, or a URL to a pull request.
 
| Whether the mod is compatible with the upcoming SMAPI 3.0. Possible values are <tt>yes</tt>, <tt>no</tt>, or a URL to a pull request.
 +
|}
 +
 +
===Beta fields===
 +
When there's a Stardew Valley beta, some mods may have different compatibility statuses for stable vs beta. You can specify these optional fields to specify a different beta status.
 +
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! purpose
 +
|-
 +
| <code>beta summary</code>
 +
| Specify custom notes or instructions about the mod's compatibility. Should usually be blank.
 +
|-
 +
| <code>beta broke in</code>
 +
| The SMAPI or Stardew Valley update which broke this mod (if applicable).
 +
|-
 +
| <code>beta status</code>
 +
| Whether the mod is compatible with the latest versions of Stardew Valley and SMAPI (see [[#Valid statuses]]). If not specified, it defaults to <code>unofficial</code> if an unofficial URL is given, else <code>broken</code> if <code>broke in</code> is specified, else <code>ok</code>.
 +
|-
 +
| <code>beta unofficial url</code>
 +
| A page URL where the player can download an unofficial update, if any.
 +
|-
 +
| <code>beta unofficial version</code>
 +
| The unofficial update's version number, if any.
 
|}
 
|}
  
translators
8,447

edits

Navigation menu