Changes

Jump to navigation Jump to search
+ support for special 'none' ID, validation check, document support for multiple IDs
Line 8: Line 8:  
! source
 
! source
 
! &nbsp;</noinclude>
 
! &nbsp;</noinclude>
|- class="mod" id="{{{name}}}" {{#if:{{{id|}}}|data-id="{{{id|}}}"}} {{#if:{{{nexus id|}}}|data-nexus-id="{{{nexus id|}}}"}} {{#if:{{{cf id|}}}|data-chucklefish-id="{{{cf id|}}}"}} data-status="{{{status|{{#if:{{{unofficial url|}}}|workaround|{{#if:{{{broke in|}}}|broken|ok}}}}}}}" {{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} {{#if:{{{github|}}}|data-github="{{{github}}}"}} {{#if:{{{source|}}}|data-custom-source="{{{source|}}}"}} style="line-height: 1em; {{#switch:{{{status|{{#if:{{{unofficial url|}}}|workaround|{{#if:{{{broke in|}}}|broken|ok}}}}}}} |ok|optional=background: #9F9; |workaround=background: #CF9; |broken={{#if:{{{unofficial url|}}}|background: #CF9;|background: #F99;}} |obsolete|abandoned=background: #999}}"
+
|- class="mod" id="{{{name}}}" {{#if:{{{id|}}}|data-id="{{#ifeq:{{{id}}}|none||{{{id|}}}}}"}} {{#if:{{{nexus id|}}}|data-nexus-id="{{{nexus id|}}}"}} {{#if:{{{cf id|}}}|data-chucklefish-id="{{{cf id|}}}"}} data-status="{{{status|{{#if:{{{unofficial url|}}}|workaround|{{#if:{{{broke in|}}}|broken|ok}}}}}}}" {{#if:{{{unofficial version|}}}|data-unofficial-version="{{{unofficial version}}}"}} {{#if:{{{github|}}}|data-github="{{{github}}}"}} {{#if:{{{source|}}}|data-custom-source="{{{source|}}}"}} style="line-height: 1em; {{#switch:{{{status|{{#if:{{{unofficial url|}}}|workaround|{{#if:{{{broke in|}}}|broken|ok}}}}}}} |ok|optional=background: #9F9; |workaround=background: #CF9; |broken={{#if:{{{unofficial url|}}}|background: #CF9;|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>}}
Line 20: Line 20:  
| <small>{{{broke in|}}}</small>
 
| <small>{{{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>}}}}
| {{#if:{{{hide-url|}}}|&#32;[{{{hide-url}}} <sup>o</sup>]}}{{#if:{{{links|}}}|&#32;{{#arraydefine:linkArray|{{{links}}}}}{{#arrayprint:linkArray|&#32;|@@@@|<sup>[@@@@ {{#expr:{{#arraysearch:linkArray|@@@@}} + 1}}]</sup>}}}}<noinclude>
+
| {{#if:{{{hide-url|}}}|&#32;[{{{hide-url}}} <sup>o</sup>]}}{{#if:{{{links|}}}|&#32;{{#arraydefine:linkArray|{{{links}}}}}{{#arrayprint:linkArray|&#32;|@@@@|<sup>[@@@@ {{#expr:{{#arraysearch:linkArray|@@@@}} + 1}}]</sup>}}}}{{#if:{{{id|}}}||<small>⚠ no id</small>}}<noinclude>
 
|}
 
|}
   Line 68: Line 68:  
|-
 
|-
 
| <code>id</code>
 
| <code>id</code>
| The unique mod ID, as listed in its <tt>manifest.json</tt> file.
+
| The latest unique mod ID, as listed in its <tt>manifest.json</tt> file. In rare cases where there are parallel current releases with different IDs, this can be comma-delimited. For very old mods with no ID, use <tt>none</tt> to disable validation checks.
 
|-
 
|-
 
| <code>nexus id</code>
 
| <code>nexus id</code>
translators
8,445

edits

Navigation menu