Line 38: |
Line 38: |
| |- class="mod" style="line-height: 1em; {{#switch:{{#arrayindex:vars|3}} |ok|optional=background: #9F9; |workaround|unofficial=background: #CF9; |broken=background: #F99; |obsolete|abandoned=background: #999}}" <!-- | | |- class="mod" style="line-height: 1em; {{#switch:{{#arrayindex:vars|3}} |ok|optional=background: #9F9; |workaround|unofficial=background: #CF9; |broken=background: #F99; |obsolete|abandoned=background: #999}}" <!-- |
| -->id="{{anchorencode:{{#arrayindex:names|0}}}}" <!-- | | -->id="{{anchorencode:{{#arrayindex:names|0}}}}" <!-- |
| + | -->data-id="{{#arrayprint:ids|,|@@@|@@@}}" <!-- |
| + | -->data-name="{{#arrayprint:names|,|@@@|@@@}}" <!-- |
| + | -->data-author="{{#arrayprint:authors|,|@@@|@@@}}" <!-- |
| + | -->{{#if:{{{nexus id|}}}|data-nexus-id="{{{nexus id}}}"}} <!-- |
| + | -->{{#if:{{{cf id|}}}|data-cf-id="{{{cf id}}}"}} <!-- |
| + | -->{{#if:{{{github|}}}|data-github="{{{github}}}"}} <!-- |
| + | -->{{#if:{{{source|}}}|data-custom-source="{{#tag:nowiki|{{{source}}}}}"}} <!-- |
| + | -->data-url="{{#tag:nowiki|{{#if:{{{nexus id|}}}|{{nexus mod|{{{nexus id}}}}}|{{#if:{{{cf id|}}}|https://community.playstarbound.com/resources/{{urlencode:{{{cf id}}}}}|{{{url|}}}}}}}}}" <!-- |
| -->data-status="{{#arrayindex:vars|1}}" <!-- | | -->data-status="{{#arrayindex:vars|1}}" <!-- |
− | -->data-beta-status="{{#arrayindex:vars|3}}" <!-- | + | -->{{#if:{{{broke in|}}}|data-broke-in="{{{broke in}}}"}} <!-- |
− | -->{{#if:{{{github|}}}|data-github="{{{github}}}"}} <!-- | + | -->{{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} <!-- |
− | -->{{#if:{{{source|}}}|data-custom-source="{{{source|}}}"}} | + | -->{{#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|, |@@@|@@@}}"}} |
| | {{#if:{{{nexus id|}}}|[{{nexus mod|{{{nexus id}}}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|{{#if:{{{cf id|}}}|[https://community.playstarbound.com/resources/{{urlencode:{{{cf id}}}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|{{#if:{{{url|}}}|[{{{url}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|<span class="mod-name">{{#arrayindex:names|0}}</span>}}}}}}{{#ifexpr:{{#arraysize:altNames}} > 0|<br /><small style="font-size:0.75em;">(aka <span class="mod-name2">{{#arrayprint:altNames|, |@@@|@@@}}</span>)</small>}} | | | {{#if:{{{nexus id|}}}|[{{nexus mod|{{{nexus id}}}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|{{#if:{{{cf id|}}}|[https://community.playstarbound.com/resources/{{urlencode:{{{cf id}}}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|{{#if:{{{url|}}}|[{{{url}}} <span class="mod-name">{{#arrayindex:names|0}}</span>]|<span class="mod-name">{{#arrayindex:names|0}}</span>}}}}}}{{#ifexpr:{{#arraysize:altNames}} > 0|<br /><small style="font-size:0.75em;">(aka <span class="mod-name2">{{#arrayprint:altNames|, |@@@|@@@}}</span>)</small>}} |
| | <span class="mod-author">{{#arrayindex:authors|0}}</span>{{#ifexpr:{{#arraysize:altAuthors}} > 0|<br /><small style="font-size:0.75em;">(aka <span class="mod-author2">{{#arrayprint:altAuthors|, |@@@|@@@}}</span>)</small>}} | | | <span class="mod-author">{{#arrayindex:authors|0}}</span>{{#ifexpr:{{#arraysize:altAuthors}} > 0|<br /><small style="font-size:0.75em;">(aka <span class="mod-author2">{{#arrayprint:altAuthors|, |@@@|@@@}}</span>)</small>}} |
Line 176: |
Line 191: |
| | | |
| ==Usage== | | ==Usage== |
| + | ===Limitations=== |
| + | * Avoid using quotes (<code>"</code>) in argument values; use <code>&quot;</code> instead. |
| + | * The <nowiki>name</nowiki>, <nowiki>author</nowiki>, and <nowiki>id</nowiki> arguments are comma-separated. If the actual value contains a comma, use <code>&#44;</code> instead. |
| + | |
| ===Main fields (shown above)=== | | ===Main fields (shown above)=== |
| {| class="wikitable" | | {| class="wikitable" |