Line 16: |
Line 16: |
| {{#arrayindex:vars|2}} = beta status | | {{#arrayindex:vars|2}} = beta status |
| {{#arrayindex:vars|3}} = beta status (no subtag) | | {{#arrayindex:vars|3}} = beta status (no subtag) |
− | {{#arraydefine:statuscompare|0}} = whether the compatibility info is equivalent between main and beta ('same' or 'different') | + | {{#arrayindex:statuscompare|0}} = whether the compatibility info is equivalent between main and beta ('same' or 'different') |
| | | |
| -->{{#arraydefine:vars|<!-- | | -->{{#arraydefine:vars|<!-- |
Line 30: |
Line 30: |
| | | |
| --> | | --> |
− | |- class="mod" id="{{{name}}}" data-id="{{#if:{{{id|}}}{{{old ids|}}}|{{#ifeq:{{{id}}}|none||{{{id}}}{{#if:{{{old ids|}}}|,}}}}{{{old ids|}}}}}" {{#if:{{{nexus id|}}}|data-nexus-id="{{{nexus id|}}}"}} {{#if:{{{cf id|}}}|data-chucklefish-id="{{{cf id|}}}"}} {{#if:{{{github|}}}|data-github="{{{github}}}"}} {{#if:{{{source|}}}|data-custom-source="{{{source|}}}"}} {{#if:{{{url|}}}|data-custom-url="{{{url}}}"}} data-status="{{#arrayindex:vars|1}}" data-beta-status="{{#arrayindex:vars|3}}" {{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} {{#if:{{{beta unofficial version|}}}|data-beta-unofficial-version="{{{beta unofficial version}}}"}} style="line-height: 1em; {{#switch:{{#arrayindex:vars|3}} |ok|optional=background: #9F9; |workaround|unofficial=background: #CF9; |broken=background: #F99; |obsolete|abandoned=background: #999}}" data-test="{{#arrayprint:vars}}#{{#arrayprint:statuscompare}}" | + | |- class="mod" id="{{{name}}}" data-id="{{#if:{{{id|}}}{{{old ids|}}}|{{#ifeq:{{{id}}}|none||{{{id}}}{{#if:{{{old ids|}}}|,}}}}{{{old ids|}}}}}" {{#if:{{{nexus id|}}}|data-nexus-id="{{{nexus id|}}}"}} {{#if:{{{cf id|}}}|data-chucklefish-id="{{{cf id|}}}"}} {{#if:{{{github|}}}|data-github="{{{github}}}"}} {{#if:{{{source|}}}|data-custom-source="{{{source|}}}"}} {{#if:{{{url|}}}|data-custom-url="{{{url}}}"}} data-status="{{#arrayindex:vars|1}}" data-beta-status="{{#arrayindex:vars|3}}" {{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} {{#if:{{{beta unofficial version|}}}|data-beta-unofficial-version="{{{beta unofficial version}}}"}} style="line-height: 1em; {{#switch:{{#arrayindex:vars|3}} |ok|optional=background: #9F9; |workaround|unofficial=background: #CF9; |broken=background: #F99; |obsolete|abandoned=background: #999}}" |
| | {{#if:{{{nexus id|}}}|[{{nexus mod|{{{nexus id}}} {{{name|}}}]}}|{{#if:{{{cf id|}}}|[https://community.playstarbound.com/resources/{{urlencode:{{{cf id}}}}} {{{name}}}]|{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}}}}}{{#if:{{{name2|}}}|<br /><small style="font-size:0.75em;">(aka {{{name2}}})</small>}} | | | {{#if:{{{nexus id|}}}|[{{nexus mod|{{{nexus id}}} {{{name|}}}]}}|{{#if:{{{cf id|}}}|[https://community.playstarbound.com/resources/{{urlencode:{{{cf id}}}}} {{{name}}}]|{{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|{{{name}}}}}}}}}{{#if:{{{name2|}}}|<br /><small style="font-size:0.75em;">(aka {{{name2}}})</small>}} |
| | {{{author}}}{{#if:{{{author2|}}}|<br /><small style="font-size:0.75em;">(aka {{{author2}}})</small>}} | | | {{{author}}}{{#if:{{{author2|}}}|<br /><small style="font-size:0.75em;">(aka {{{author2}}})</small>}} |
| |class="summary"|<!-- | | |class="summary"|<!-- |
| | | |
− | stable label (if different)-->{{#ifeq:{{#arraydefine:statuscompare|0}}|different|'''1.3.28:''' }}<!-- | + | stable label (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|'''1.3.28:''' }}<!-- |
| | | |
| stable summary--><span class="data-summary">{{#switch:{{#arrayindex:vars|0}} | | stable summary--><span class="data-summary">{{#switch:{{#arrayindex:vars|0}} |
Line 48: |
Line 48: |
| }}</span><!-- | | }}</span><!-- |
| | | |
− | beta summary (if different)-->{{#ifeq:{{#arraydefine:statuscompare|0}}|different|<br />'''1.3.29-beta:''' <span class="data-beta-summary">{{#switch:{{#arrayindex:vars|2}} | + | beta summary (if different)-->{{#ifeq:{{#arrayindex:statuscompare|0}}|different|<br />'''1.3.29-beta:''' <span class="data-beta-summary">{{#switch:{{#arrayindex:vars|2}} |
| |ok = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use latest version.}} | | |ok = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use latest version.}} |
| |optional = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use optional download<ref name="optional-update" />.}} | | |optional = ✓ {{#if:{{{beta summary|}}}|{{{beta summary}}}|use optional download<ref name="optional-update" />.}} |