Changes

Jump to navigation Jump to search
re-add beta fields for SMAPI 3.6 compatibility tracking
Line 13: Line 13:  
   {{#arrayindex:has_source|0}}    = set if a GitHub project name or custom source URL is set, else blank
 
   {{#arrayindex:has_source|0}}    = set if a GitHub project name or custom source URL is set, else blank
 
   {{#arrayindex:status|0}}        = compatibility status for the stable SMAPI/SDV release
 
   {{#arrayindex:status|0}}        = compatibility status for the stable SMAPI/SDV release
 +
  {{#arrayindex:beta_status|0}}    = compatibility status for the beta SMAPI/SDV release
 +
  {{#arrayindex:status_compare|0}} = whether the compatibility info is equivalent between main and beta ('same' or 'different'). If both statuses are 'unofficial', they match if their unofficial URLs do; else they match if their statuses do.
    
-->{{#arraydefine:has_source|{{#if:{{{github|}}}{{{source|}}}|1}}}}<!--
 
-->{{#arraydefine:has_source|{{#if:{{{github|}}}{{{source|}}}|1}}}}<!--
Line 25: Line 27:  
     }}
 
     }}
 
   }}
 
   }}
 +
}}}}<!--
 +
 +
-->{{#arraydefine:beta_status|{{#if:{{{beta status|}}}
 +
  |{{{beta status}}}
 +
  |{{#if:{{{beta unofficial url|}}}
 +
    |unofficial
 +
    |{{#if:{{{beta broke in|}}}
 +
      |broken
 +
      |{{#arrayindex:status|0}}
 +
    }}
 +
  }}
 +
}}}}<!--
 +
 +
-->{{#arraydefine:status_compare|{{#switch:{{#arrayindex:status|0}},{{#arrayindex:beta_status|0}}
 +
  |unofficial,unofficial = {{#ifeq:{{{unofficial url|}}}|{{#if:{{{beta unofficial url|}}}|{{{beta unofficial url}}}|{{{unofficial url|}}}}}|same|different}}
 +
  |#default = {{#ifeq:{{#arrayindex:status|0}}|{{#arrayindex:beta_status|0}}|same|different}}
 
}}}}<!--
 
}}}}<!--
   Line 54: Line 72:  
-->{{#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:status_compare|0}}|different|<!--
 +
  -->data-beta-status="{{#arrayindex:beta_status|0}}" <!--
 +
  -->{{#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}}}}}"}}<!--
 +
-->}} <!--
 
-->{{#if:{{{pull request|}}}|data-pr="{{#tag:nowiki|{{{pull request}}}}}"}} <!--
 
-->{{#if:{{{pull request|}}}|data-pr="{{#tag:nowiki|{{{pull request}}}}}"}} <!--
 
-->{{#ifexpr:{{#arraysize:warnings}} > 0|data-warnings="{{#arrayprint:warnings|, |@@@|@@@}}"}} <!--
 
-->{{#ifexpr:{{#arraysize:warnings}} > 0|data-warnings="{{#arrayprint:warnings|, |@@@|@@@}}"}} <!--
Line 64: Line 88:  
|<!--
 
|<!--
   −
stable label (if different)-->{{#ifeq:{{#arrayindex:status_compare|0}}|different|'''{{version|stable|link=0}}:'''&#32;}}<!--
+
stable label (if different)-->{{#ifeq:{{#arrayindex:status_compare|0}}|different|'''<!--{{version|stable|link=0}}-->SMAPI 3.5:'''&#32;}}<!--
    
summary--><span class="mod-summary">{{#switch:{{#arrayindex:status|0}}
 
summary--><span class="mod-summary">{{#switch:{{#arrayindex:status|0}}
Line 75: Line 99:  
  |abandoned  = ✖ {{#if:{{{summary|}}}|{{{summary}}}|remove this mod (no longer maintained).}}
 
  |abandoned  = ✖ {{#if:{{{summary|}}}|{{{summary}}}|remove this mod (no longer maintained).}}
 
}}</span>{{#ifeq:{{#arrayindex:status|0}}|optional|<ref name="optional-update" />}}<!--
 
}}</span>{{#ifeq:{{#arrayindex:status|0}}|optional|<ref name="optional-update" />}}<!--
 +
 +
beta summary (if different)-->{{#ifeq:{{#arrayindex:status_compare|0}}|different|<br />'''SMAPI 3.6 (upcoming)<!--{{version|beta|link=0}}-beta-->:'''&#32;<span class="mod-beta-summary">{{#switch:{{#arrayindex:beta_status|0}}
 +
|ok        = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use latest version.}}
 +
|optional  = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use optional download.}}
 +
|unofficial = ⚠ broken{{#if:{{{beta unofficial url|}}}|, use [{{{beta unofficial url}}} unofficial update]{{#if:{{{beta unofficial version|}}}|&#32;(<small>{{{beta unofficial version}}}</small>)}}|{{{beta unofficial url}}}}}.
 +
|workaround = ⚠ broken, {{{beta summary}}}
 +
|broken    = ↻ broken, {{#if:{{{beta summary|}}}|{{{beta summary}}}|{{#if:{{#arrayindex:has_source|0}}|not updated yet.|not open-source.}}}}
 +
|obsolete  = ✖ {{#if:{{{beta summary|}}}|{{{beta summary}}}|remove this mod (obsolete).}}
 +
|abandoned  = ✖ {{#if:{{{beta summary|}}}|{{{beta summary}}}|remove this mod (no longer maintained).}}
 +
}}</span>{{#ifeq:{{#arrayindex:beta_status|0}}|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>}}}}
 
| class="no-wrap"|<small><!--
 
| class="no-wrap"|<small><!--
Line 177: Line 211:  
   |unofficial version = 1.18.2-unofficial.1-example
 
   |unofficial version = 1.18.2-unofficial.1-example
 
   |pull request      = https://github.com/Pathoschild/Example/pull/1
 
   |pull request      = https://github.com/Pathoschild/Example/pull/1
 +
}}
 +
|}
 +
 +
===Different beta status===
 +
<pre>
 +
{{Modding:Mod compatibility/entry
 +
  |name    = Lookup Anything
 +
  |author  = Pathoschild
 +
  |id      = Pathoschild.LookupAnything
 +
  |nexus id = 541
 +
  |github  = Pathoschild/StardewMods
 +
  |summary  =
 +
  |broke in = Stardew Valley 1.2
 +
  |unofficial url    = https://community.playstarbound.com/attachments/201345000
 +
  |unofficial version = 1.18.2-unofficial.1-example
 +
 +
  |beta broke in = Stardew Valley 1.3
 +
}}
 +
</pre>
 +
 +
{| class="wikitable plainlinks"
 +
|-
 +
! mod name
 +
! author
 +
! compatibility
 +
! broke in
 +
! source
 +
! &nbsp;
 +
{{Modding:Mod compatibility/entry
 +
  |name    = Lookup Anything
 +
  |author  = Pathoschild
 +
  |id      = Pathoschild.LookupAnything
 +
  |nexus id = 541
 +
  |github  = Pathoschild/StardewMods
 +
  |summary  =
 +
  |broke in = Stardew Valley 1.2
 +
  |unofficial url    = https://community.playstarbound.com/attachments/201345000
 +
  |unofficial version = 1.18.2-unofficial.1-example
 +
 +
  |beta broke in = Stardew Valley 1.3
 
}}
 
}}
 
|}
 
|}
Line 270: Line 344:  
| <code>map local version</code>
 
| <code>map local version</code>
 
| Equivalent to <code>map remote version</code>, but for the manifest version.
 
| Equivalent to <code>map remote version</code>, but for the manifest version.
 +
|}
 +
 +
===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,403

edits

Navigation menu