Changes

Jump to navigation Jump to search
merge in summary logic to reduce subtemplates
Line 66: Line 66:  
stable label (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|'''{{version|stable|link=0}}:'''&#32;}}<!--
 
stable label (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|'''{{version|stable|link=0}}:'''&#32;}}<!--
   −
summary--><span class="mod-summary">{{Modding:Mod compatibility/entry/summary
+
summary--><span class="mod-summary">{{#switch:{{#arrayindex:status|0}}
  |status            = {{#arrayindex:status|0}}
+
|ok        = ✓ {{#if:{{{summary|}}}|{{{summary}}}|use latest version.}}
  |summary           = {{{summary|}}}
+
|optional  = ✓ {{#if:{{{summary|}}}|{{{summary}}}|use optional download.}}
  |unofficial url    = {{{unofficial url|}}}
+
|unofficial = ⚠ broken{{#if:{{{unofficial url|}}}|, use [{{{unofficial url}}} unofficial update]{{#if:{{{unofficial version|}}}|&#32;(<small>{{{unofficial version}}}</small>)}}|{{{unofficial url}}}}}.
  |unofficial version = {{{unofficial version|}}}
+
|workaround = ⚠ broken, {{{summary}}}
  |source            = {{#arrayindex:sourceUrl|0}}
+
|broken    = ↻ broken, {{#if:{{{summary|}}}|{{{summary}}}|{{#if:{{#arrayindex:sourceUrl|0}}|not updated yet.|not open-source.}}}}
 +
|obsolete  = ✖ {{#if:{{{summary|}}}|{{{summary}}}|remove this mod (obsolete).}}
 +
|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:statuscompare|0}}|different|<br />'''1.4 (upcoming)<!--{{version|beta|link=0}}-beta-->:'''&#32;<span class="mod-beta-summary">{{Modding:Mod compatibility/entry/summary
+
beta summary (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|<br />'''1.4 (upcoming)<!--{{version|beta|link=0}}-beta-->:'''&#32;<span class="mod-beta-summary">{{#switch:{{#arrayindex:status|1}}
  |status            = {{#arrayindex:status|1}}
+
|ok        = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use latest version.}}
  |summary           = {{{beta summary|}}}
+
|optional  = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use optional download.}}
  |unofficial url    = {{{beta unofficial url|}}}
+
|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}}}}}.
  |unofficial version = {{{beta unofficial version|}}}
+
|workaround = ⚠ broken, {{{beta summary}}}
  |source            = {{#arrayindex:sourceUrl|0}}
+
|broken    = ↻ broken, {{#if:{{{beta summary|}}}|{{{beta summary}}}|{{#if:{{#arrayindex:sourceUrl|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:status|1}}|optional|<ref name="optional-update" />}}}}<!--
 
}}</span>{{#ifeq:{{#arrayindex:status|1}}|optional|<ref name="optional-update" />}}}}<!--
  
translators
8,403

edits

Navigation menu